write-refresh md array (feature request)
(please CC me on replies).
I've been in several situations where it would have been helpful to be able to refresh weak sectors by rewriting the whole md raid component device, without the need to increase array failure risk through a fail+remove+add cycle for the component device.
How difficult would it be to implement a "refresh" as a Linux md driver sync_action, pigging back on "check" ?
Are there any drawbacks to write-refreshing component devices?
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Quoted 7 lines · Henrique de Moraes Holschuh
(please CC me on replies).
I've been in several situations where it would have been helpful to be able to refresh weak sectors by rewriting the whole md raid component device, without the need to increase array failure risk through a fail+remove+add cycle for the component device.
Quoted 5 lines
How difficult would it be to implement a "refresh" as a Linux md driver
sync_action, pigging back on "check" ?Are there any drawbacks to write-refreshing component devices?
Why is "check" insufficient? If it trips over any bad sectors it will re-write them.
--
Dan
Hello!
You can achieve this with a bit inderect way - there are sync_min and sync_max params which can be used to operate on certain borders of array, more info
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/md.txt?id=refs/tags/v3.11#n579
.
Quoted 21 lines · Henrique de Moraes Holschuh
(please CC me on replies).
I've been in several situations where it would have been helpful to be able to refresh weak sectors by rewriting the whole md raid component device, without the need to increase array failure risk through a fail+remove+add cycle for the component device.
How difficult would it be to implement a "refresh" as a Linux md driver
sync_action, pigging back on "check" ?Are there any drawbacks to write-refreshing component devices?
--
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
--
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
Signature · 2 lines
Best regards, [COOLCOLD-RIPN]
Quoted 8 lines · Dan Williams
Quoted 6 lines · Henrique de Moraes Holschuh
(please CC me on replies).
I've been in several situations where it would have been helpful to be able to refresh weak sectors by rewriting the whole md raid component device, without the need to increase array failure risk through a fail+remove+add cycle for the component device.
Quoted 8 lines
Quoted 5 lines
How difficult would it be to implement a "refresh" as a Linux md driver
sync_action, pigging back on "check" ?Are there any drawbacks to write-refreshing component devices?
Why is "check" insufficient? If it trips over any bad sectors it will re-write them.
The idea is to rewrite the sector _before_ it goes bad.
Consumer SATA HDDs nowadays not only apparently fail to properly remap sectors because they don't track anymore that some sectors in that subtrack were reported uncorrect a number of times (and thus are "weak"). They also appear to not write-refresh sectors that required ECC correction, except maybe during an offline SMART test routine.
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Quoted 4 lines · CoolCold
You can achieve this with a bit inderect way - there are
sync_minandsync_maxparams which can be used to operate on certain borders of array, more info
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/md.txt?id=refs/tags/v3.11#n579.
Doesn't do anything close to what I requested. Neither check nor repair will re-write sectors that appear to be good (and are actually returning the correct data after ECC correction by the component device, but will eventually fail if not rewritten to soon).
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Quoted 10 lines · Henrique de Moraes Holschuh
Quoted 4 lines · CoolCold
You can achieve this with a bit inderect way - there are
sync_minandsync_maxparams which can be used to operate on certain borders of array, more info
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/md.txt?id=refs/tags/v3.11#n579.Doesn't do anything close to what I requested. Neither check nor repair will re-write sectors that appear to be good (and are actually returning the correct data after ECC correction by the component device, but will eventually fail if not rewritten to soon).
Sounds like a modification of the "replace" code to allow replacing the with self-same drive. Something like "want_refresh" would mark the drive as a soft replacement to mark that slot to be re-written. But if the drive is expected to be "weak" you could just rotate in a spare drive without degrading the array with the existing code.
Quoted 8 lines · Dan Williams
Quoted 6 lines · Henrique de Moraes Holschuh
Quoted 4 lines · CoolCold
You can achieve this with a bit inderect way - there are
sync_minandsync_maxparams which can be used to operate on certain borders of array, more info
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/md.txt?id=refs/tags/v3.11#n579.
Quoted 7 lines
Quoted 4 lines
Doesn't do anything close to what I requested. Neither check nor repair will re-write sectors that appear to be good (and are actually returning the correct data after ECC correction by the component device, but will eventually fail if not rewritten to soon).
Sounds like a modification of the "replace" code to allow replacing the with self-same drive. Something like "
want_refresh" would mark the
That would do it, if the system considers that the component device is still valid while it is being replaced in-place with itself :)
Quoted 3 lines
drive as a soft replacement to mark that slot to be re-written. But if the drive is expected to be "weak" you could just rotate in a spare drive without degrading the array with the existing code.
Well, that requires a spare device, which is often not the case in small setups (which are the ones more likely to be using md raid with SATA, instead of SAS).
Although I really don't know if SAS nearline devices are any better than the current crop of untrustworthy crap that passes for SATA HDDs.
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Quoted 18 lines · On Wed, 11 Sep 2013 09:32:23 -0300 Henrique de Moraes Holschuh…
Quoted 8 lines · Dan Williams
Quoted 6 lines · Henrique de Moraes Holschuh
(please CC me on replies).
I've been in several situations where it would have been helpful to be able to refresh weak sectors by rewriting the whole md raid component device, without the need to increase array failure risk through a fail+remove+add cycle for the component device.Quoted 8 lines
Quoted 5 lines
How difficult would it be to implement a "refresh" as a Linux md driver
sync_action, pigging back on "check" ?Are there any drawbacks to write-refreshing component devices?
Why is "check" insufficient? If it trips over any bad sectors it will re-write them.
Quoted 8 lines
The idea is to rewrite the sector _before_ it goes bad.
Consumer SATA HDDs nowadays not only apparently fail to properly remap sectors because they don't track anymore that some sectors in that subtrack were reported uncorrect a number of times (and thus are "weak"). They also appear to not write-refresh sectors that required ECC correction, except maybe during an offline SMART test routine.
My view on this is that it has nothing to do with RAID. If it is valuable to "write-refresh" a device in a RAID array, then it would equally make sense to write-refresh a device that wasn't in a RAID array.
So any solution to this should try to address the whole problem.
NeilBrown