Re: [OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Toomas Soome via openindiana-discuss



> On 1. Mar 2021, at 16:00, Thebest videos  wrote:
> 
> I'm sorry, I didn't get an appropriate solution. i shouldn't install any 
> package on my freebsd but i should know the disk type as first priority. I 
> should install package on worst case to fix my solution then please let me 
> know package name
> 


oh, but this is openindiana list, not freebsd:) for freebsd, see zfsd(8).

rgds,
toomas


> On Mon, Mar 1, 2021 at 4:44 PM Toomas Soome via openindiana-discuss 
>  > wrote:
> 
> 
> > On 1. Mar 2021, at 11:28, Thebest videos  > > wrote:
> > 
> > Hi Team,
> > 
> > i need to set an alert system(prometheus) for if any disk failures in RAIDZ
> > like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org 
> > 
> > https://openindiana.org/mailman/listinfo/openindiana-discuss 
> > 
> 
> 
> see svcs smtp-notify; we do not have manual for it, but you can also check 
> https://docs.oracle.com/cd/E36784_01/html/E36871/smtp-notify-1m.html 
>  
>  >
> 
> rgds,
> toomas
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org 
> 
> https://openindiana.org/mailman/listinfo/openindiana-discuss 
> 

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Thebest videos
I'm sorry, I didn't get an appropriate solution. i shouldn't install any
package on my freebsd but i should know the disk type as first priority. I
should install package on worst case to fix my solution then please let me
know package name

On Mon, Mar 1, 2021 at 4:44 PM Toomas Soome via openindiana-discuss <
openindiana-discuss@openindiana.org> wrote:

>
>
> > On 1. Mar 2021, at 11:28, Thebest videos 
> wrote:
> >
> > Hi Team,
> >
> > i need to set an alert system(prometheus) for if any disk failures in
> RAIDZ
> > like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
> see svcs smtp-notify; we do not have manual for it, but you can also check
> https://docs.oracle.com/cd/E36784_01/html/E36871/smtp-notify-1m.html <
> https://docs.oracle.com/cd/E36784_01/html/E36871/smtp-notify-1m.html>
>
> rgds,
> toomas
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Toomas Soome via openindiana-discuss



> On 1. Mar 2021, at 11:28, Thebest videos  wrote:
> 
> Hi Team,
> 
> i need to set an alert system(prometheus) for if any disk failures in RAIDZ
> like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss


see svcs smtp-notify; we do not have manual for it, but you can also check 
https://docs.oracle.com/cd/E36784_01/html/E36871/smtp-notify-1m.html 


rgds,
toomas
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Thebest videos
I need one help,

i need to setup a RAIDZ based on type of disk. if the disks are HDD then
normal RAIDZ configuration should be created, if disks are types are
SDD/NVM then it should be part of the cache pool. But how can I
differentiate the type of  disk. any commands to check HDD,SDD or NVM?

On Mon, Mar 1, 2021 at 3:33 PM Richard L. Hamilton 
wrote:

> I would think that
>
> fmadm faulty
>
> would show that (and various other problems, too), or nothing if there was
> nothing wrong.
>
> Or something like
>
> zpool list|nawk 'BEGIN {bad=0} NR==1 {header=$0} NR>1 {if ($7!="ONLINE")
> {bad++;saved[bad]=$0}} END {if (bad>0) {print header;for (x in saved) print
> saved[x]}}'
>
> should produce output (including the header) only if there are lines after
> the header where the 7th field is not "ONLINE".
>
> Use sudo or RBAC if you choose the fmadm faulty command (because it needs
> privileges), and do that from a cron job; that will generate email (you do
> have your email set up correctly, right? :-) ) only if it generates output.
>
> That's the easiest, probably. If you already have Xymon set up (or are
> willing to set it up, which requires some work for a server plus setup on
> each client), see https://wiki.xymonton.org/doku.php/monitors:bb-zfs
>
> You were expecting maybe that the system would magically know who you are
> and send a telepathic message or at least a text message? :-) Good luck
> with that.
>
>
> > On Mar 1, 2021, at 04:28, Thebest videos 
> wrote:
> >
> >
> > Hi Team,
> >
> > i need to set an alert system(prometheus) for if any disk failures in
> RAIDZ
> > like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Richard L. Hamilton
I would think that

fmadm faulty

would show that (and various other problems, too), or nothing if there was 
nothing wrong.

Or something like

zpool list|nawk 'BEGIN {bad=0} NR==1 {header=$0} NR>1 {if ($7!="ONLINE") 
{bad++;saved[bad]=$0}} END {if (bad>0) {print header;for (x in saved) print 
saved[x]}}'

should produce output (including the header) only if there are lines after the 
header where the 7th field is not "ONLINE".

Use sudo or RBAC if you choose the fmadm faulty command (because it needs 
privileges), and do that from a cron job; that will generate email (you do have 
your email set up correctly, right? :-) ) only if it generates output.

That's the easiest, probably. If you already have Xymon set up (or are willing 
to set it up, which requires some work for a server plus setup on each client), 
see https://wiki.xymonton.org/doku.php/monitors:bb-zfs

You were expecting maybe that the system would magically know who you are and 
send a telepathic message or at least a text message? :-) Good luck with that.


> On Mar 1, 2021, at 04:28, Thebest videos  wrote:
> 
> 
> Hi Team,
> 
> i need to set an alert system(prometheus) for if any disk failures in RAIDZ
> like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Stephan Althaus

On 03/01/21 10:28 AM, Thebest videos wrote:

Hi Team,

i need to set an alert system(prometheus) for if any disk failures in RAIDZ
like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Hi!

Do you like scripting ?


#!/usr/bin/bash
while :
do
 poolstatus=$(zpool status poolname)
 if echo "$poolstatus"|grep -E 'OFFLINE|DEGRAD' ; then
  echo "POOL IS OFFLINE OR DEGRADED"|sendmail -v my.email@my.domain
 fi
 sleep 30
done


Greetings,

Stephan


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Monitor RAIDZ disk failure

2021-03-01 Thread Thebest videos
Hi Team,

i need to set an alert system(prometheus) for if any disk failures in RAIDZ
like DEGRADED/OFFLINE. How can I set ? Any help would be appreciated?
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss