From: Damien Le Moal <dlemoal@kernel.org>
To: "Eyal Lebedinsky (emu)" <eyal@eyal.emu.id.au>,
list linux-ide <linux-ide@vger.kernel.org>
Subject: Re: Why do Pending sectors disappear without writing to them?
Date: Mon, 12 Jan 2026 15:05:30 +0100 [thread overview]
Message-ID: <211e1d4e-7ecd-4f83-b437-a4a09ebcf035@kernel.org> (raw)
In-Reply-To: <a41dafec-2ab8-4e6f-83f6-628104ee9b7b@eyal.emu.id.au>
On 1/10/26 01:35, Eyal Lebedinsky wrote:
> This happens with some regularity. This disk (/dev/sdf1) is part of a raid6. It seems to be unhealthy (another story).
> What I saw, a few times recently, is a smart report like
> 197 Current_Pending_Sector -O--C- 100 100 000 - 8
> 198 Offline_Uncorrectable ----C- 100 100 000 - 8
> and at the end of the smart report
> Pending Defects log (GP Log 0x0c)
> Index LBA Hours
> 0 22791960168 54593
> 1 22791960169 54593
> 2 22791960170 54593
> 3 22791960171 54593
> 4 22791960172 54593
> 5 22791960173 54593
> 6 22791960174 54593
> 7 22791960175 54593
> This stays for some time. For example this morning it started just after midnight
> until I checked the logs this morning.
>
> I reacted by running
> $ sudo raid6check /dev/md127 $(((22791960168-2048-262144)/1024-1)) 2
> BTW, I convert sector number to fs block:
> 2048 (sdf1 start from fdisk)
> 262144 'Data Offset : 262144 sectors' from 'mdadm --examine'
> 1024 'Chunk Size : 512K' [1024s] from 'mdadm --examine'
> I expected an issue to be reported, but none were.
> However ... the above 197/198 smart attributes went to zero, and the 'Pending Defects log' was cleared.
>
> My question is: raid6check is running in read-only mode, yet the disk cleared the pending reports. Why?
> I thought that you need to write to it for that.
Most likely, the drive was slow to remap the failed sectors, so they showed up
in the smart report. Your raid6check may have rewritten these and the drive
these time remapped the sectors and the error went away. Probably, your remapped
sector count increased. Not sure if you have the old values.
> Maybe the disk attempts to read the block (8 sectors) anyway and decides it is actually good?
> In other words: first read failure is logged as Pending, a following good read clears it?
> A failed write counts it as Reallocated_Sector_Ct.
>
> Interestingly, there is no indication of the reason for the initial failure (197/198 0->8).
> No i/o error. No md report. No program failure.
> The first log is from a regular 30m smart check.
That is odd. I would have expected a failed write. But that said, these days, if
you get a failed write from a disk, you can pretty much consider the disk dead
since bad sector remapping inside the disk is automatic and you'll get a failed
write only if that fails.
>
> TIA
>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-01-12 14:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-10 0:35 Why do Pending sectors disappear without writing to them? Eyal Lebedinsky
2026-01-12 14:05 ` Damien Le Moal [this message]
2026-01-13 1:34 ` Eyal Lebedinsky
2026-01-13 7:02 ` Damien Le Moal
2026-01-13 7:34 ` Eyal Lebedinsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=211e1d4e-7ecd-4f83-b437-a4a09ebcf035@kernel.org \
--to=dlemoal@kernel.org \
--cc=eyal@eyal.emu.id.au \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox