system: gentoo linux k8_sse3, linux 3.0.80
cpu: 2* opteron 265, 14GB ram
situation:
I have a 3-disk RAID5 array with a MD 1.2 superblock over /dev/sdb1, /sdd1 and /dev/sdf1.
/dev/sdb1 got kicked out a few weeks ago because the SATA cable apparently needed a replacement. I tested the drive with smartctl -a, and it was fine. I didn't notice it a few weeks ago because it's on my NAS server and the SMTP server was filled incorrectly.
I tried the following things to re-attach /dev/sdb1 to /dev/md0:
-> mdadm --manage --re-add /dev/md0 /dev/sdb1
-> mdadm --manage --remove /dev/md0 2 (the disk number in the array)
mdadm --manage --re-add /dev/md0 /dev/sdb1
in all of those cases, mdadm responded with "sdb1: device or resource busy"
so I continued with:
-> mdadm --stop /dev/md0
mdadm --assemble -f /dev/sdb1 /sdd1 /dev/sdf1
mdadm responded with failed to start array
-> mdadm --stop /dev/md0
mdadm --assemble -f --uuid=(uuid of the raid)
mdadm only included /dev/sdd1 and /dev/sdf1
so, at this point, I gave up re-attaching /dev/sdb1, and cleared the superblock on /dev/sdb1.
But, when I tried to add the drive to /dev/md0, it still gave me the error message "/dev/sdb1: device or resource busy".
However; after a server reboot, I could add /dev/sdb1 back into the array, and it started rebuilding.
what happened here? linux should not need a reboot for a software raid issue!
cpu: 2* opteron 265, 14GB ram
situation:
I have a 3-disk RAID5 array with a MD 1.2 superblock over /dev/sdb1, /sdd1 and /dev/sdf1.
/dev/sdb1 got kicked out a few weeks ago because the SATA cable apparently needed a replacement. I tested the drive with smartctl -a, and it was fine. I didn't notice it a few weeks ago because it's on my NAS server and the SMTP server was filled incorrectly.
I tried the following things to re-attach /dev/sdb1 to /dev/md0:
-> mdadm --manage --re-add /dev/md0 /dev/sdb1
-> mdadm --manage --remove /dev/md0 2 (the disk number in the array)
mdadm --manage --re-add /dev/md0 /dev/sdb1
in all of those cases, mdadm responded with "sdb1: device or resource busy"
so I continued with:
-> mdadm --stop /dev/md0
mdadm --assemble -f /dev/sdb1 /sdd1 /dev/sdf1
mdadm responded with failed to start array
-> mdadm --stop /dev/md0
mdadm --assemble -f --uuid=(uuid of the raid)
mdadm only included /dev/sdd1 and /dev/sdf1
so, at this point, I gave up re-attaching /dev/sdb1, and cleared the superblock on /dev/sdb1.
But, when I tried to add the drive to /dev/md0, it still gave me the error message "/dev/sdb1: device or resource busy".
However; after a server reboot, I could add /dev/sdb1 back into the array, and it started rebuilding.
what happened here? linux should not need a reboot for a software raid issue!