On Wednesday January 29, danci@agenda.si wrote: > Hi! > > I'm trying to use mdadm to monitor my Linux RAID stuff, but it fails to > send an email and/or run the program: > > /etc/mdadm.conf > > DEVICE /dev/hd* > ARRAY /dev/md0 uuid=9338f6b6:ccadf20b:0fd08433:8285e108 > ARRAY /dev/md1 uuid=91bdf2b7:f6e83922:49437c5e:da5d7930 > ARRAY /dev/md2 uuid=5f7f8c33:a492a6a3:4129ff63:ac152b4b > MAILADDR raidalert > PROGRAM /usr/local/sbin/raidalert > > 'raidalert' is an alias for my account. If I do 'ls | mail raidalert', I > get a mail containin the directory listing... > > /usr/local/sbin/raidalert is very simple (for now) and it works: > > #!/bin/bash > /usr/bin/logger -p user.crit -t raidalert $@ > > So I guess I'm all set. I try 'mdadm --fail /dev/md0 /dev/hdg1' and wait. > On the console, where 'mdadm --monitor' is running, I get this: Try adding "--scan" to the "mdadm --monitor" command. I can see this is not intuitive - I'll try to tidy up for mdadm-1.1 NeilBrown > > Jan 29 15:48:25: FailSpare on /dev/md0 /dev/hdg1 > > But why doesn't it send the mail and/or run the program?? > > Thanks, D. > > - > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html