One of my HDD has some damaged sectors, which stay as pending. I want to force relocation.
From the question Reallocate bad sector [Linux] I know I can use sudo hdparm --yes-i-know-what-i-am-doing --write-sector 215040 /dev/sda but how to interpret the line:
# 1 Extended offline Completed: read failure 90% 31807 1362407718
considering that the disk has 4 KB sectors? 31807 is the lifetime hours (wrapped at 65k...), 1362407718 is the LBA which caused an error and with it the end of the SMART "long test".
The disk has 512b logical sectors, 4 KB physical sectors.
Sector Sizes: 512 bytes logical, 4096 bytes physical
I tried sg_verify as recommended in https://www.smartmontools.org/wiki/BadBlockHowto#Badblockreassignment but it doesn't provide any output:
# sg_verify -v --lba=1362407718 /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T1033727
#
How should I proceed to force remapping of the bad sector?
I'm running Ubuntu 22.04 LTS and the disk is formatted using ZFS.