Rui Santos wrote:
Rui Santos wrote:
James Knott wrote:
I've now got SUSE 10.2 set up with RAID and LVM on my server. However, I don't seem to be able to re-add a "failed" drive, without rebooting. The drives are hot-swapable. When I use the command mdadm /dev/md0/ -add /dev/sdxx I get a "device busy" error message. Even removing the drive with the --remove option, before the add command doesn't help. I still have to reboot to add the drive. Is there something I'm missing?
If a drive/partition is marked as "failed", you need to remove it from the RAID first with:
Sorry - forgot this:
mdadm --manage --set-faulty /dev/mdx /dev/sdxx
mdadm --manage --remove /dev/mdx /dev/sdxx
Then you can add it again with:
mdadm --manage --add /dev/mdx /dev/sdxx
Hope it helps.
tnx jk
If I go through the --set-faulty, --fail, --add sequence from the command line, I have no problem adding the drive back. However, if I simulate a drive failure by pulling the drive, that sequence fails with the error message "mdadm: add new device failed for /dev/sdd2 as 4: Invalid argument". If I then reboot the computer, I can then use --add to add the drive again. So, there appears to be some difference between using commands to remove a drive and an actual hardware failure. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org