New features?
Hi,
Quoted 9 lines · Mike Hardy
Quoted 7 lines
Quoted 4 lines
1 "Warm swap" - replacing drives without taking down the array but maybe having to type in a few commands. Presumably a sata or sata/raid interface issue. (True hot swap is nice but not worth delaying warm- swap.)
I believe that 2.6.18 has SATA hot-swap, so this should be available know ... providing you can find out what commands to use.
I forgot 2.6.18 has SATA hot-swap, has anyone tested that?
Yeah, I've tracked the sata EH patches and now 2.6.18 for a while and hotswap works. However if you pull the disk on a raidset the disk is set as faulty and the device (/dev/sda for example) dissapears. If you replug it, the device does not regain it's original devicename but but will use the latest free 'slot' available (in a four disk layout that's /dev/sde). Also trying to --remove the disk doesn't work since the devicefile is gone. So be sure to --remove disks _before_ you pull it.
Anyone know if there's work being done to fix this issue, does this also happen on scsi ?
Regards,
-- Frido
Quoted 21 lines · On Tuesday October 31, [email protected] wrote:
Hi,
Quoted 9 lines · Mike Hardy
Quoted 7 lines
Quoted 4 lines
1 "Warm swap" - replacing drives without taking down the array but maybe having to type in a few commands. Presumably a sata or sata/raid interface issue. (True hot swap is nice but not worth delaying warm- swap.)
I believe that 2.6.18 has SATA hot-swap, so this should be available know ... providing you can find out what commands to use.
I forgot 2.6.18 has SATA hot-swap, has anyone tested that?
Yeah, I've tracked the sata EH patches and now 2.6.18 for a while and hotswap works. However if you pull the disk on a raidset the disk is set as faulty and the device (
/dev/sdafor example) dissapears. If you replug it, the device does not regain it's original devicename but but will use the latest free 'slot' available (in a four disk layout that's/dev/sde). Also trying to --remove the disk doesn't work since the devicefile is gone. So be sure to --remove disks _before_ you pull it.
Quoted 2 lines
Anyone know if there's work being done to fix this issue, does this also happen on scsi ?
The 'correct' way to fix "--remove doesn't work after" is to get udev to do the "mdadm --remove" before deleting the entry from /dev.
mdadm could probably be changed to be able to remove the device anyway. The only difficulty is: how do you tell it which device to remove", given that there is no name in /dev to use. Suggestions?
Having the device come back with a different name shouldn't really be a problem. You can still find it an re-add it.
NeilBrown
Quoted 4 lines · Neil Brown
mdadm could probably be changed to be able to remove the device anyway. The only difficulty is: how do you tell it which device to remove", given that there is no name in /dev to use. Suggestions?
Major:minor? If /sys/block still holds an entry for the removed disk, then the user can figure it out from the name. Or mdadm could just accept a path under /sys/block instead of a device node.
Gabor
Signature · 4 lines
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
---------------------------------------------------------Quoted 10 lines · On Friday November 3, [email protected] wrote:
Quoted 4 lines · Neil Brown
mdadm could probably be changed to be able to remove the device anyway. The only difficulty is: how do you tell it which device to remove", given that there is no name in /dev to use. Suggestions?
Major:minor? If
/sys/blockstill holds an entry for the removed disk, then the user can figure it out from the name. Or mdadm could just accept a path under/sys/blockinstead of a device node.
I like the /sys/block idea. So if given a directory we look for a 'dev' file and read major:minor from that.
I guess I could also just allow
mdadm /dev/mdX --remove failed
and all failed devices get removed.
Thanks for the suggestion.
NeilBrown