Re: Why mdadm --monitor --program sometimes only gives 2 command-line arguments to the program?

2008-01-07 Thread Neil Brown
On Saturday January 5, [EMAIL PROTECTED] wrote: Hi all, I need to monitor my RAID and if it fails, I'd like to call my-script to deal with the failure. I did: mdadm --monitor --program my-script --delay 60 /dev/md1 And then, I simulate a failure with mdadm --manage --set-faulty

Re: Why mdadm --monitor --program sometimes only gives 2 command-line arguments to the program?

2008-01-06 Thread Nagilum
- Message from [EMAIL PROTECTED] - Date: Sat, 5 Jan 2008 18:11:38 -0800 (PST) From: Hxsrmeng [EMAIL PROTECTED] I hope the mdadm monitor function can pass all three command-line arguments to my-script, including the name of the event, the name of the md device and the name of

Why mdadm --monitor --program sometimes only gives 2 command-line arguments to the program?

2008-01-05 Thread Hxsrmeng
Hi all, I need to monitor my RAID and if it fails, I'd like to call my-script to deal with the failure. I did: mdadm --monitor --program my-script --delay 60 /dev/md1 And then, I simulate a failure with mdadm --manage --set-faulty /dev/md1 /dev/sda2 mdadm /dev/md1 --remove /dev/sda2 I hope