Bug#777710: smartmontools: strange LBA numbers in reports

2015-03-25 Thread Christian Franke

There is random garbage in the upper bytes of the 48-bit LBA field:

00312581807 = 0x12A19EAF (Max possible LBA)
00020399756 = 0x0137468C (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.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#777710: smartmontools: strange LBA numbers in reports

2015-02-11 Thread Ian Zimmerman
Package: smartmontools
Version: 5.41+svn3365-1
Severity: normal

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_DescriptionStatus  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Selective offline   Completed without error   00% 17620 -
# 2  Extended offlineCompleted 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 offlineCompleted: 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_DescriptionStatus  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Selective offline   Completed without error   00% 17620 -
# 2  Extended offlineCompleted 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 offlineCompleted: 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/sda1204840951024   83  Linux
/dev/sda2   *4096  503807  249856   83  Linux
/dev/sda3  503808 1503231  499712   82  Linux swap / Solaris
/dev/sda4 1505278   312580095   1555374095  Extended
/dev/sda5 15052802494054311717632   83  Linux
/dev/sda62494259232753663 3905536   83  Linux
/dev/sda73275571248377855 7811072   83  Linux
/dev/sda848379904   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

-- Package-specific info:
Output of /usr/share/bug/smartmontools:

-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages