public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* Why do Pending sectors disappear without writing to them?
@ 2026-01-10  0:35 Eyal Lebedinsky
  2026-01-12 14:05 ` Damien Le Moal
  0 siblings, 1 reply; 5+ messages in thread
From: Eyal Lebedinsky @ 2026-01-10  0:35 UTC (permalink / raw)
  To: list linux-ide

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.

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.

TIA

-- 
Eyal at Home (eyal@eyal.emu.id.au)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-13  7:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-10  0:35 Why do Pending sectors disappear without writing to them? Eyal Lebedinsky
2026-01-12 14:05 ` Damien Le Moal
2026-01-13  1:34   ` Eyal Lebedinsky
2026-01-13  7:02     ` Damien Le Moal
2026-01-13  7:34       ` Eyal Lebedinsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox