#777710 smartmontools: strange LBA numbers in reports

Package:
smartmontools
Source:
smartmontools
Description:
control and monitor storage systems using S.M.A.R.T.
Submitter:
Ian Zimmerman
Date:
2015-11-21 18:09:06 UTC
Severity:
normal
#777710#5
Date:
2015-02-11 18:44:32 UTC
From:
To:
I see conflicting (and probably both wrong) LBA numbers with -l selftest and -l xselftest:

# smartctl -l selftest /dev/sda
smartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-4-686-pae] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Selective offline   Completed without error       00%     17620         -
# 2  Extended offline    Completed without error       00%     17619         -
# 3  Short offline       Completed without error       00%     17618         -
# 4  Short offline       Completed without error       00%     17618         -
# 5  Short offline       Completed without error       00%     17616         -
# 6  Short offline       Completed without error       00%     17616         -
# 7  Short offline       Completed without error       00%     17615         -
# 8  Selective offline   Completed without error       00%     17614         -
# 9  Selective offline   Completed without error       00%     17614         -
#10  Selective offline   Completed: read failure       90%     17613         20399756
#11  Extended offline    Completed: read failure       90%     17611         20399756
2 of 2 failed self-tests are outdated by newer successful extended offline self-test # 2

# smartctl -l xselftest /dev/sda
smartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-4-686-pae] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Selective offline   Completed without error       00%     17620         -
# 2  Extended offline    Completed without error       00%     17619         -
# 3  Short offline       Completed without error       00%     17618         -
# 4  Short offline       Completed without error       00%     17618         -
# 5  Short offline       Completed without error       00%     17616         -
# 6  Short offline       Completed without error       00%     17616         -
# 7  Short offline       Completed without error       00%     17615         -
# 8  Selective offline   Completed without error       00%     17614         -
# 9  Selective offline   Completed without error       00%     17614         -
#10  Selective offline   Completed: read failure       90%     17613         138688809354892
#11  Extended offline    Completed: read failure       90%     17611         244890465683084
2 of 2 failed self-tests are outdated by newer successful extended offline self-test # 2

Here's the partition table:

# fdisk -l -u=sectors /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Disk identifier: 0x000dc758

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048        4095        1024   83  Linux
/dev/sda2   *        4096      503807      249856   83  Linux
/dev/sda3          503808     1503231      499712   82  Linux swap / Solaris
/dev/sda4         1505278   312580095   155537409    5  Extended
/dev/sda5         1505280    24940543    11717632   83  Linux
/dev/sda6        24942592    32753663     3905536   83  Linux
/dev/sda7        32755712    48377855     7811072   83  Linux
/dev/sda8        48379904   312580095   132100096   83  Linux

And I know the error was on sda8, so neither LBA number seems right.

Here's the drive info:

# smartctl -i /dev/sda
smartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-4-686-pae] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Momentus 5400.4
Device Model:     ST9160827AS
Serial Number:    5RF14CZ4
LU WWN Device Id: 5 000c50 00dfb068e
Firmware Version: 3.AAA
User Capacity:    160,041,885,696 bytes [160 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:    Wed Feb 11 10:43:26 2015 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

#777710#10
Date:
2015-03-25 21:41:06 UTC
From:
To:
There is random garbage in the upper bytes of the 48-bit LBA field:

000000312581807 = 0x000012A19EAF (Max possible LBA)
000000020399756 = 0x....0137468C (Self-test Log #10/#11)
138688809354892 = 0x7E230137468C (Extended Self-test Log #10)
244890465683084 = 0xDEBA0137468C (Extended Self-test Log #11)

Possibly a drive firmware issue: 4 byte LBA value from old self-test log
copied to 6 byte field of extended self-test log entry without zeroing
the upper bytes.