Kernel 3.7.9 RAID6 hot replace success
G'day all,
I have a RAID6 of 10 2TB drives. One started to grow bad sectors at an alarming rate, so rather than fail and replace the drive I thought I'd use the hot replace method.
Add spare to array
echo want_replacement > /sys/block/md0/md/dev-sdm/state Wait 6 hours
Remove failed drive
Job done.
Last time I tried this (lots of kernel versions ago) I had all sorts of issues with removing the failed drive and other sticky stuff that required rebooting to clean up. This "just worked".
Regards,
Brad
Quoted 10 lines
Add spare to array
echowant_replacement>/sys/block/md0/md/dev-sdm/stateWait 6 hours
Remove failed drive
Job done.Last time I tried this (lots of kernel versions ago) I had all sorts of
issues with removing the failed drive and other sticky stuff that required rebooting to clean up. This "just worked".
This is great. Any idea when that came in?
Btw, with as many as 10 drives in a RAID-6, I'd keep at least one spare permanently there…
Vennlige hilsener / Best regards
roy
--
Roy Sigurd Karlsbakk
(+47) 98013356
[email protected]
http://blogg.karlsbakk.net/
GPG Public key: http://karlsbakk.net/roysigurdkarlsbakk.pubkey.txt
--
I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er et elementært imperativ for alle pedagoger å unngå eksessiv anvendelse av idiomer med xenotyp etymologi. I de fleste tilfeller eksisterer adekvate og relevante synonymer på norsk. --
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · Roy Sigurd Karlsbakk
Quoted 6 lines
Add spare to array
echowant_replacement>/sys/block/md0/md/dev-sdm/stateWait 6 hours
Remove failed drive
Job done.
Quoted 9 lines
Quoted 4 lines
Last time I tried this (lots of kernel versions ago) I had all sorts of
issues with removing the failed drive and other sticky stuff that required rebooting to clean up. This "just worked".This is great. Any idea when that came in?
Btw, with as many as 10 drives in a RAID-6, I'd keep at least one spare permanently there…
Im pretty sure I last tested it about 3.2 or 3.3.
I do keep a permanent spare drive, but with 3 arrays I manually allocate it in the rare event it is required. This drive had not failed out of the array, so the spare sat idle until I proactively replaced the dodgy drive.-- To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Brad Campbell
I do keep a permanent spare drive, but with 3 arrays I manually allocate it in the rare event it is required. This drive had not failed out of the array, so the spare sat idle until I proactively replaced the dodgy drive.--
Are you using the spare-group attribute of arrays in mdadm.conf? If so, how well has it worked in your scenario?
--keith
Signature · 1 line
[email protected]
Quoted 5 lines · Keith Keller
Quoted 2 lines · Brad Campbell
I do keep a permanent spare drive, but with 3 arrays I manually allocate it in the rare event it is required. This drive had not failed out of the array, so the spare sat idle until I proactively replaced the dodgy drive.--
Are you using the spare-group attribute of arrays in mdadm.conf?
No, have not got that advanced yet. I just keep on top of the monitoring e-mails and manage things manually. Thanks for the reminder though. I do need to have a look at that a bit closer when I get some more time.
Would not have helped in this application though.
Regards,
Brad