Re: Subject: RFC: Read repair for md RAID1 after mirror read failures
Roger Heflin <[email protected]> Fri, 17 Jul 2026 13:11:48 -0500
| Newsgroups | org.kernel.vger.linux-raid |
|---|---|
| Message-ID | <CAAMCDefN+a_mMWByAMPEkCo6sT2iyi-b8J2et5LsJpxZtZBzQQ@mail.gmail.com> |
The drives are said to do refreshes when it finds a weak sector when doing a long media test. The manufactures do not seem to document any disk internals, they never have. All manufactures claim their magic firmware/processes give them a competitive advantage and so don't disclose what goes on. Pretty much all of the hardware is handled this way, with poor external documentation. Smart seems to only disclose the common settings/errors, and don't seem to allow anything except setting changes, and to run defined tests (short, long and similar). I have been told by a WD engineer that their internal tools have the ability to read out a number of other parameters that aren't exposed to SMART, and may also be able to do other things. Those tools are not externally available and the when I had access to one of those tools (for a few hours so I could get it into a high security site with the WD engineer) I had to agree to not keep it. I watched one of the tools be used on some disks by a WD engineer that went onsite (but I don't remember if I saw any non-SMART like data on the screen--it was 20 years ago) to check for errors and determine if WD would RMA/replace (without media return) around 1000 disks. I have been reading smart data for as long as smart has been around, and outside of maybe at most 10 parameters, most of the rest of the parms are rather useless because the manufacturer does not supply a decoder ring to make any sense of what said parameter is really measuring. And whatever the manufactures document would be what was documented before the disk firmware was completely finished, and may or may not have really worked in the given firmware. I have ran into disks that would refuse to relocate most bad sectors (even though older disk by the same company did this just fine), and a number of other weird disk actions indicating that the firmware does not always even implement the features that they are supposed to correctly in all disks. Basically if the smart tools team actually knows anything about the disk internals, they are almost certainly under an NDA and cannot tell you (likely this is not the case), and if they aren't under an NDA they were not told anything. And contrary to what other experts claim (that disks regularly will return bad data--ie 1 in 1e15 sectors), I have never seen the disk itself return bad data(I have seen raid controllers deliver corrupted data many times from both hardware failures and defective raid controller firmware), if the sector is read successfully it is the right data simply because the disks ECC correction uses so many bits that the chance of a corrupted sector being corrupted and still passing ECC is so low as to not be worried about. On Fri, Jul 17, 2026 at 10:48 AM G.W. Kant - Hunenet B.V. <[email protected]> wrote: > > On 7/17/26 12:55 PM, Roger Heflin wrote: > > On Fri, Jul 17, 2026 at 1:42 AM G.W. Kant - Hunenet B.V. > > <[email protected]> wrote: > >> > >> On 7/15/26 8:04 PM, Abd-Alrhman Masalkhi wrote: > >>> On Wed, Jul 15, 2026 at 19:41 +0200, Abd-Alrhman Masalkhi wrote: > >>>> Hi Dion, > >>>> > >>> > >>> I'm not entirely sure about the media refresh part on modern drives..., > >>> I'll have to look into that first. > >>> > >> > >> Maybe, we could ask the smartmontools people about this. They should > >> know this. But I have never read about a refresh action in their > >> documentation. > >> > >> Best regards, > >> > >> Dion > > > > I am not sure why you believe the smartmontools people would have ANY > > idea about the refresh action. Smartmontools simply exposes the > > internal drive counters that the drive manufacturer exposes and/or > > documents. > > > > The refresh action is 100% entirely controlled by the drive's firmware > > and has nothing to do with the smartmontools, and the smart counters > > may not show any of the internal ECC forced rewrites. > > > > As far as I can tell in general the drive does what it wants to > > (refresh or not, relocation bad sectors or not) and there is NO way > > that I have ever found to force the firmware do do something else. > > When you refer to "the refresh action", are you referring to a > documented firmware mechanism that periodically rewrites successfully > readable sectors, or are you using the term more generally for any > internal media maintenance the drive may perform? > > I have not yet found documentation describing such a refresh mechanism > for commodity HDDs. That is why I mentioned the smartmontools > developers: not because I expect smartmontools to implement or control > such a mechanism, but because they are familiar with the capabilities > that modern drives expose through SMART and related standards. > > I'm trying to understand what is publicly known about this. > > Best regards, > > Dion Kant >