hortageno |
11-05-2017 03:09 PM |
Did bad sectors disappear?
Hi,
smartmontools reported
Code:
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 1
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 1
I don't recall what the value of Reallocated_Sector_Ct was, but I think it was 0.
I currently run a extended self test with smartmontools, which has still 70% to go after a few hours. In the meantime I ran badblocks, which reported 4 bad blocks at around 99% of the test at 4 consecutive blocks 236723952 - 236723955.
Code:
fdisk -lu /dev/sde
Disk /dev/sde: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6868a76b
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 2046 488396799 488394754 232.9G 5 Extended
/dev/sde5 472772608 488396799 15624192 7.5G 82 Linux swap / Solaris
/dev/sde6 2048 472772607 472770560 225.4G 83 Linux
Partition table entries are not in disk order.
I'm a bit confused how to translate this. Is the output of badblocks the same as the "LBA of first error" of smartmontools? Since the errors happened at ~99% of the test I would have thought the problem lies in the swap partition at the end of the disk. To be on the safe side I checked the whole space in both partitions.
sde6 has a btrfs filesystem, so I can't run debugfs. I ran
Code:
btrfs scrub start -Bd /dev/sde6
which didn't report any errors. Then I filled the free space in sde6 and the complete swap partition with zeroes. Now the Current_Pending_Sector and Offline_Uncorrectable went down to 0 and the Reallocated_Sector_Ct is (still?) 0 too. Syslog also says
Code:
Nov 5 20:08:14 server smartd[842]: Device: /dev/sde [SAT], No more Currently unreadable (pending) sectors, warning condition reset after 4 emails
Nov 5 20:08:14 server smartd[842]: Device: /dev/sde [SAT], No more Offline uncorrectable sectors, warning condition reset after 4 emails
Did the bad sectors/blocks just disappear?
|