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

Re: Raid 1, can't get the second disk added back in.

2008-01-06 Thread Jim
Nagilum wrote: Since /dev/hdb5 has been part of this array before you should use --re-add instead of --add. Kind regards, Alex. OK [EMAIL PROTECTED]:~# mdadm /dev/md0 --re-add /dev/hdb5 mdadm: Cannot open /dev/hdb5: Device or resource busy Jim - To unsubscribe from this list: send the

Re: Raid 1, can't get the second disk added back in.

2008-01-06 Thread Nagilum
- Message from [EMAIL PROTECTED] - Date: Sun, 06 Jan 2008 06:13:06 -0500 From: Jim [EMAIL PROTECTED] [EMAIL PROTECTED]:~# mdadm /dev/md0 --re-add /dev/hdb5 mdadm: Cannot open /dev/hdb5: Device or resource busy Have you tried stopping (-S) /dev/md0 and then re-assemble the

Re: Raid 1, can't get the second disk added back in.

2008-01-06 Thread Jim
Nagilum wrote: - Message from [EMAIL PROTECTED] - Date: Sun, 06 Jan 2008 06:13:06 -0500 From: Jim [EMAIL PROTECTED] [EMAIL PROTECTED]:~# mdadm /dev/md0 --re-add /dev/hdb5 mdadm: Cannot open /dev/hdb5: Device or resource busy Have you tried stopping (-S) /dev/md0 and then

Re: PROBLEM: RAID5 reshape data corruption

2008-01-06 Thread Nagilum
- Message from [EMAIL PROTECTED] - Date: Sun, 06 Jan 2008 00:31:46 +0100 From: Nagilum [EMAIL PROTECTED] At the moment I'm thinking about writing a small perl program that will generate me a shell script or makefile containing dd commands that will copy the chunks from the

Re: Raid 1, can't get the second disk added back in.

2008-01-06 Thread Neil Brown
On Saturday January 5, [EMAIL PROTECTED] wrote: Since /dev/hdb5 has been part of this array before you should use --re-add instead of --add. Kind regards, Alex. That is not correct. --re-add is only needed for arrays without metadata, for which you use --build to start them. NeilBrown -

Re: Raid 1, can't get the second disk added back in.

2008-01-06 Thread Neil Brown
On Saturday January 5, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:~# mdadm /dev/md0 --add /dev/hdb5 mdadm: Cannot open /dev/hdb5: Device or resource busy All the solutions I've been able to google fail with the busy. There is nothing that I can find that might be using /dev/hdb5 except