HDD serial number truncated to just 8 chars

Experiences with hard disks, SSDs, USB devices, hard disk controllers, motherboards and so.
i3v
Posts: 10
Joined: 2016.06.11. 18:05

HDD serial number truncated to just 8 chars

Post by i3v »

HDSentinel shows an incorrect (just truncated?) serial number for some of my HDDs (Seagete ST8000NM0075).
For example, for «/dev/sdbx» it shows «ZA1DT0PT» (in text output or in html or in xml), while all other tools show «ZA1DT0PT0000C911FE0V».
This, of course, could be a bit misleading (when you search for specific serial number in the report and there's no match).

Short HDSentinel output:

Code: Select all

[root@dell-storage ivarf]# /storage/HDSentinel -dev /dev/sdbx
Hard Disk Sentinel for LINUX console 0.20b-x64.10851 (c) 2023 info@hdsentinel.com
Start with -r [reportfile] to save data to report, -h for help

Examining hard disk configuration ...

HDD Device  0: /dev/sdbx
HDD Model ID : SEAGATE ST8000NM0075
HDD Serial No: ZA1DT0PT
HDD Revision : E004
HDD Size     : 7630885 MB
Interface    : SCSI
Temperature  : 35 °C
Highest Temp.: 35 °C
Health       : 100 %
Performance  : 100 %
Power on time: 1891 days, 13 hours, 56 minutes
Est. lifetime: more than 100 days
Total written: 10.62 TB
  The status of the hard disk is perfect.
    No actions needed.



HDSentinel full report txt:

Code: Select all

  -- General Information --

   Application Information
   -------------------------
    Installed Version . . . . . . . . . . . . . . . . : Hard Disk Sentinel 0.20b-x64
    Current Date And Time . . . . . . . . . . . . . . : 27-2-24 21:22:38

   Computer Information
   ----------------------
    Computer Name . . . . . . . . . . . . . . . . . . : dell-storage.slb.com
    MAC Address . . . . . . . . . . . . . . . . . . . : 18:66:da:90:60:51

   System Information
   --------------------
    OS Version  . . . . . . . . . . . . . . . . . . . : Linux : 3.10.0-862.9.1.el7.x86_64 (#1 SMP Mon Jul 16 16:29:36 UTC 2018)
    Process ID  . . . . . . . . . . . . . . . . . . . : 177901
    Uptime  . . . . . . . . . . . . . . . . . . . . . : 100862234 sec (1167 days, 9 hours, 17 min, 14 sec)



  -- Physical Disk Information - Disk: #0: SEAGATE ST8000NM0075 --

   Hard Disk Summary
   -------------------
    Hard Disk Number  . . . . . . . . . . . . . . . . : 0
    Hard Disk Device  . . . . . . . . . . . . . . . . : /dev/sdbx
    Interface . . . . . . . . . . . . . . . . . . . . : SCSI
    Hard Disk Model ID  . . . . . . . . . . . . . . . : SEAGATE ST8000NM0075
    Firmware Revision . . . . . . . . . . . . . . . . : E004
    Hard Disk Serial Number . . . . . . . . . . . . . : ZA1DT0PT
    Total Size  . . . . . . . . . . . . . . . . . . . : 7630885 MB
    Current Temperature . . . . . . . . . . . . . . . : 35 ░C (95 ░F)
    Maximum Temperature (during Entire Lifespan)  . . : 35 ░C (95 ░F)
    Power On Time . . . . . . . . . . . . . . . . . . : 1891 days, 14 hours, 19 minutes
    Estimated Remaining Lifetime  . . . . . . . . . . : more than 100 days
    Lifetime Writes . . . . . . . . . . . . . . . . . : 10.62 TB
    Health  . . . . . . . . . . . . . . . . . . . . . : #################### 100 % (Excellent)
    Performance . . . . . . . . . . . . . . . . . . . : #################### 100 % (Excellent)

    The status of the hard disk is perfect.
      No actions needed.

   Properties
   ------------
    Vendor Information  . . . . . . . . . . . . . . . : Copyright (c) 2017 Seagate All rights reserved
    Status  . . . . . . . . . . . . . . . . . . . . . : OK
    Version . . . . . . . . . . . . . . . . . . . . . : 6 [00A2 0C60 20E0 0460 04C0]
    Device Type . . . . . . . . . . . . . . . . . . . : Disk
    ASC . . . . . . . . . . . . . . . . . . . . . . . : 0
    ASCQ  . . . . . . . . . . . . . . . . . . . . . . : 0
    Bytes Per Sector  . . . . . . . . . . . . . . . . : 512
    Total Sectors . . . . . . . . . . . . . . . . . . : 15,628,053,167
    Unformatted Capacity  . . . . . . . . . . . . . . : 8,001,563,221,504

   SCSI Information
   ------------------
    Removable . . . . . . . . . . . . . . . . . . . . : Not supported
    Failure Prediction  . . . . . . . . . . . . . . . : Supported
    Failure Prediction  . . . . . . . . . . . . . . . : Enabled

   Self test results log
   -----------------------
    The log contains no entries.

   S.M.A.R.T.
   ------------
Attribute                                                            Threshold                       Value
Write errors corrected with possible delays                                  0                           0
Total write errors                                                           0                           0
Total write errors corrected                                                 0                           0
Total write errors corrected by algorithm                                    0                           0
Total bytes written                                                          0          11,674,330,832,896
Total uncorrected write errors                                               0                           0
SC02_F800                                                                    0                 146,557,350
SC02_F801                                                                    0                           0
SC02_F802                                                                    0                           0
SC02_F803                                                                    0                           0
SC02_F804                                                                    0                           0
SC02_F805                                                                    0                           0
SC02_F806                                                                    0                           0
SC02_F807                                                                    0                   1,549,420
SC02_F810                                                                    0                           0
SC02_F811                                                                    0                           0
SC02_F812                                                                    0                           0
SC02_F813                                                                    0                           0
SC02_F814                                                                    0                           0
SC02_F815                                                                    0                           0
SC02_F816                                                                    0                     774,710
SC02_F817                                                                    0                 147,332,060
SC02_F820                                                                    0                           0
Read errors corrected by ECC hardware method                                 0               3,732,544,716
Read errors corrected with possible delays                                   0                           0
Total read errors                                                            0                           0
Total read errors corrected                                                  0               3,732,544,716
Total read errors corrected by algorithm                                     0                           0
Total bytes read                                                             0          42,719,838,810,112
Total uncorrected read errors                                                0                           0
Verify errors corrected without substantial delay                            0                   1,239,009
Verify errors corrected with possible delays                                 0                           0
Total verify errors                                                          0                           0
Total verify errors corrected                                                0                   1,239,009
Total verify errors corrected by algorithm                                   0                           0
Total bytes verified                                                         0               2,338,414,592
Total uncorrected verify errors                                              0                           0
Non medium errors                                                            0                         117
Temperature                                                                 35                          35
Reference temperature                                                       60                          60
Manufacture date (year/week)                                           2018/45                     2018/45
Accounting date                                                                                           
Specified cycle count over device lifetime                              10,000                      10,000
Accumulated start-stop cycles                                               62                          62
Specified load-unload count over device lifetime                       300,000                     300,000
Accumulated load-unload cycles                                          55,113                      55,113
Application client parameter data                 #0: $00000000000000000000.. #0: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #1: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #2: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #3: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #4: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #5: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #6: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #7: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #8: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #9: $00000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #10: $0000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #11: $0000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #12: $0000000000000000000.. 
Self test results log                             #0: $00000000000000000000.. #13: $0000000000000000000.. 
Protocol specific port log                        #0: $0600000100000060211A.. #1: $0600000100000060211A.. 
Protocol specific port log                        #0: $06000001000100600000.. #2: $06000001000100600000.. 
Accumulated transitions to active                                                                5,270,528
Accumulated transitions to idle_a                                                                5,267,085
Accumulated transitions to idle_b                                                                   50,063
Accumulated transitions to idle_c                                                                        0
Accumulated transitions to standby_z                                                                     0
Accumulated transitions to standby_y                                                                     0
Blocks sent to initiator                                                     0               1,837,373,768
Blocks received from initiator                                               0               1,266,806,504
Blocks read from cache and sent to initiator                                 0                 353,035,416
I/O commands with size smaller than segment size                             0                  58,504,484
I/O commands with size larger than segment size                              0                   1,039,648
SC38_0000                                         $0000009F139B0029903B134F.. $0000009E139C0029903B134F.. 
SC38_0001                                         $0000009F2FAE0029903B2F0A.. $0000009E2F9C0029903B2F0A.. 
Power on time                                                                0                   2,723,899
Remaining minutes until next internal test                                                              46
SC3E_0009                                                                                        $0000003C
SC3E_000E                                                    $0000000000000000           $000094A470EBC091
Primary defect list count                                                  313                         313
Grown defect list count                                                      0                           0



  -- Partition Information --

Logical Drive                           Total Space         Free Space          Free Space %   Used Space            Disk                Block Size  Files        File System  
/                                       51,175 MB           42,004 MB            82 %          ###-----------------  /                   4096        26214400     1481003842   
/boot                                    1,014 MB              792 MB            78 %          ####----------------  /dev/sdcm4          4096        524288       1481003842   
/boot/efi                                  496 MB              486 MB            98 %          --------------------  /dev/sdcm1          4096        0            19780        
LSI storcli output (relevant fragment):

Code: Select all

"Drive /c0/e91/s30" : [
	{
		"EID:Slt" : "91:30",
		"DID" : 76,
		"State" : "UGood",
		"DG" : "-",
		"Size" : "7.277 TB",
		"Intf" : "SAS",
		"Med" : "HDD",
		"PI" : "N",
		"SeSz" : "512B",
		"Model" : "ST8000NM0075    ",
		"Sp" : "U"
	}
],
"Drive /c0/e91/s30 - Detailed Information" : {
	"Drive /c0/e91/s30 State" : {
		"Shield Counter" : 0,
		"Media Error Count" : 0,
		"Other Error Count" : 0,
		"Predictive Failure Count" : 0,
		"S.M.A.R.T alert flagged by drive" : "No"
	},
	"Drive /c0/e91/s30 Device attributes" : {
		"Manufacturer Id" : "SEAGATE ",
		"Model Number" : "ST8000NM0075    ",
		"NAND Vendor" : "NA",
		"SN" : "ZA1DT0PT0000C911FE0V",
		"WWN" : "5000c500a70b2a1b",
		"Firmware Revision" : "E004",
		"Raw size" : "7.277 TB [0x3a3812aaf Sectors]",
		"Coerced size" : "7.277 TB [0x3a3812aaf Sectors]",
		"Non Coerced size" : "7.277 TB [0x3a3812aaf Sectors]",
		"Device Speed" : "Unknown",
		"Link Speed" : "12.0Gb/s",
		"Sector Size" : "512B",
		"Config ID" : "NA",
		"Number of Blocks" : 15628053167
	},
	"Drive /c0/e91/s30 Policies/Settings" : {
		"Enclosure position" : 0,
		"Connected Port Number" : "1(path0) ",
		"Sequence Number" : 0,
		"Commissioned Spare" : "No",
		"Emergency Spare" : "No",
		"Last Predictive Failure Event Sequence Number" : 0,
		"Successful diagnostics completion on" : "N/A",
		"Secured" : "No",
		"Needs EKM Attention" : "No",
		"PI Eligible" : "No",
		"Certified" : "Yes",
		"Wide Port Capable" : "No",
		"Port Information" : [
			{
				"Port" : 0,
				"Status" : "Active",
				"Linkspeed" : "12.0Gb/s",
				"SAS address" : "0x5000c500a70b2a19"
			}
		]
	},
	"Inquiry Data" : "00 00 06 12 8b 01 10 02 53 45 41 47 41 54 45 20 53 54 38 30 30 30 4e 4d 30 30 37 35 20 20 20 20 45 30 30 34 5a 41 31 44 54 30 50 54 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a2 0c 60 20 e0 04 60 04 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 32 30 31 37 20 53 65 61 67 61 74 65 20 41 6c 6c 20 "
},

Additional info:

Code: Select all

[root@dell-storage sas3flash_linux_x64_rel]# smartctl -i /dev/sdbx
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-3.10.0-862.9.1.el7.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E004
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is fully provisioned
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c500a70b2a1b
Serial number:        ZA1DT0PT0000C911FE0V
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Tue Feb 27 20:47:19 2024 MSK
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

[root@dell-storage sas3flash_linux_x64_rel]# udevadm info --query=all --name=/dev/sdbx
P: /devices/pci0000:00/0000:00:03.2/0000:06:00.0/host0/port-0:1/expander-0:1/port-0:1:30/end_device-0:1:30/target0:0:76/0:0:76:0/block/sdbx
N: sdbx
S: disk/by-id/scsi-35000c500a70b2a1b
S: disk/by-id/wwn-0x5000c500a70b2a1b
S: disk/by-path/pci-0000:06:00.0-sas-0x5000c500a70b2a19-lun-0
S: disk/by-path/pci-0000:06:00.0-sas-exp0x5f01faf0fd3c4c7f-phy30-lun-0
E: DEVLINKS=/dev/disk/by-id/scsi-35000c500a70b2a1b /dev/disk/by-id/wwn-0x5000c500a70b2a1b /dev/disk/by-path/pci-0000:06:00.0-sas-0x5000c500a70b2a19-lun-0 /dev/disk/by-path/pci-0000:06:00.0-sas-exp0x5f01faf0fd3c4c7f-phy30-lun-0
E: DEVNAME=/dev/sdbx
E: DEVPATH=/devices/pci0000:00/0000:00:03.2/0000:06:00.0/host0/port-0:1/expander-0:1/port-0:1:30/end_device-0:1:30/target0:0:76/0:0:76:0/block/sdbx
E: DEVTYPE=disk
E: ID_BUS=scsi
E: ID_MODEL=ST8000NM0075
E: ID_MODEL_ENC=ST8000NM0075\x20\x20\x20\x20
E: ID_PART_TABLE_TYPE=gpt
E: ID_PATH=pci-0000:06:00.0-sas-0x5000c500a70b2a19-lun-0
E: ID_PATH_TAG=pci-0000_06_00_0-sas-0x5000c500a70b2a19-lun-0
E: ID_REVISION=E004
E: ID_SAS_PATH=pci-0000:06:00.0-sas-exp0x5f01faf0fd3c4c7f-phy30-lun-0
E: ID_SCSI=1
E: ID_SCSI_SERIAL=ZA1DT0PT0000C911FE0V
E: ID_SERIAL=35000c500a70b2a1b
E: ID_SERIAL_SHORT=5000c500a70b2a1b
E: ID_TYPE=disk
E: ID_VENDOR=SEAGATE
E: ID_VENDOR_ENC=SEAGATE\x20
E: ID_WWN=0x5000c500a70b2a1b
E: ID_WWN_WITH_EXTENSION=0x5000c500a70b2a1b
E: MAJOR=68
E: MINOR=176
E: MPATH_SBIN_PATH=/sbin
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=359750

[root@dell-storage sas3flash_linux_x64_rel]# ./sas3flash -list
Avago Technologies SAS3 Flash Utility
Version 15.00.00.00 (2016.11.17)
Copyright 2008-2016 Avago Technologies. All rights reserved.

        Adapter Selected is a Avago SAS: SAS3008(C0)

        Controller Number              : 0
        Controller                     : SAS3008(C0)
        PCI Address                    : 00:06:00:00
        SAS Address                    : 500605b-0-0c38-c270
        NVDATA Version (Default)       : 0e.01.00.07
        NVDATA Version (Persistent)    : 0e.01.00.07
        Firmware Product ID            : 0x2221 (IT)
        Firmware Version               : 16.00.01.00
        NVDATA Vendor                  : LSI
        NVDATA Product ID              : SAS9300-8i
        BIOS Version                   : 08.37.00.00
        UEFI BSD Version               : N/A
        FCODE Version                  : N/A
        Board Name                     : SAS9311-8i
        Board Assembly                 : H3-25461-03002
        Board Tracer Number            : SP64502163

        Finished Processing Commands Successfully.
        Exiting SAS3Flash.

[root@dell-storage sas3flash_linux_x64_rel]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

[root@dell-storage sas3flash_linux_x64_rel]# uname -r
3.10.0-862.9.1.el7.x86_64
PS. Hard Disk Sentinel for LINUX console 0.20b-x64.10851 is a great tool, many thanks!
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: HDD serial number truncated to just 8 chars

Post by hdsentinel »

Thanks for your message and attention.

Sounds so interesting. Generally Hard Disk Sentinel uses the serial number information provided by the controller from the standard Inquiry Data.
That field may have up to 20 characters for serial number, so the whole serial number should be available.

So if the serial number seems truncated - then it is not truncated by Hard Disk Sentinel but truncated by the disk controller / HBA.

(there is a special query to detect additional details so it may be added, but as tested, it was not required (so not used, exactly to save time).

As tested, the serial number printed on the disk drive matches with the information detected, reported. For example:

Image

Please note the serial number printed 3PE07ZKX. For the same drive, the output of Hard Disk Sentinel Linux version shows similar:

Code: Select all

HDD Device  9: /dev/sdd
HDD Model ID : SEAGATE ST936751SS
HDD Serial No: 3PE07ZKX
HDD Revision : 0001
HDD Size     : 379903 MB
Interface    : LSI  RAID #4/27 [8-10] SAS
Temperature  : 30 °C
Highest Temp.: 30 °C
Health       : 100 %
Performance  : 100 %
Power on time: 62 days, 19 hours, 44 minutes
Est. lifetime: more than 1000 days
Can you please check what is the serial printed on the disk drive label?
i3v
Posts: 10
Joined: 2016.06.11. 18:05

Re: HDD serial number truncated to just 8 chars

Post by i3v »

Thanks for your detailed reply!
I hope I would be able to take a photo of this disk in about a week or so.
I suspect that there indeed could be just "3PE07ZKX" printed on the label.
Thus, maybe this short serial number is indeed more useful than those provided by the smartctl and storcli.
But even then, I guess it would be a good idea to print those "long serial number" somehow, just to simplify the "other-tools vs hdsentinel" matching...
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: HDD serial number truncated to just 8 chars

Post by hdsentinel »

Thanks for the tip, yes, that may be useful, so probably added in a later version.
i3v
Posts: 10
Joined: 2016.06.11. 18:05

Re: HDD serial number truncated to just 8 chars

Post by i3v »

It turns out that what HDSentinel shows actually perfectly matches the printed label. :D
ZA1DT0PT.jpg
ZA1DT0PT.jpg (226.94 KiB) Viewed 2756 times
Sorry for the delay with providing this photo.
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: HDD serial number truncated to just 8 chars

Post by hdsentinel »

Thanks, good to see ;)
Post Reply