mdadm and --program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I want to use mdadm to email me with all of the events, not just the Fail and 
FailSpare events. So I need to use --program. On another terminal, I fail, 
remove, and add one of the raid5 disks. I try using mdadm like this:

# mdadm --follow --program /etc/handle-mdadm-events  --delay 1 /dev/md0

where handle-mdadm-events is (culled from previous posts):

echo $*
logger -p kern.crit -t RAID $*

but I never get anything at my terminal or in the log. If I don't use the 
--program, it gives me:


linuxsc:/home/pcpao # mdadm --follow  --delay 1 /dev/md0
Oct  3 09:47:52: FailSpare on /dev/md0 /dev/sdf

anyone have any ideas? can I do --program "echo $*" ? just to get it to do 
something?

linuxsc:/etc # cat /proc/version
Linux version 2.4.18-64GB-SMP (root@SMP_X86.suse.de) (gcc version 2.95.3 
20010315 (SuSE)) #1 SMP Wed Mar 27 13:58:12 UTC 2002


jeff b

-
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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux