util-linux/lsblk reports WWN as SERIAL in focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I've come across the problem that lsblk treats the WWN as SN.
~# lsb_release -rd
Description: Ubuntu 20.04.3 LTS
Release: 20.04
~# apt-cache policy util-linux
util-linux:
Installed: 2.34-0.1ubuntu9.1
Candidate: 2.34-0.1ubuntu9.1
Version table:
*** 2.34-0.1ubuntu9.1 500
500 http://
100 /var/lib/
2.
500 http://
What I expected to happen:
Show the disks serial when using the SERIAL output
What happened instead:
The WWN is printed instead. This does not happen with every disk.
how to reproduce:
~# lsblk -dn -o WWN /dev/sdb
0x5000039ad8d2cd39
~# lsblk -dn -o SERIAL /dev/sdb
5000039ad8d2cd39
smartctl show the correct serial
~# smartctl -a /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontoo
=== START OF INFORMATION SECTION ===
Model Family: Toshiba MG06ACA... Enterprise Capacity HDD
Device Model: TOSHIBA MG06ACA800E
Serial Number: 41P0A0SHFKRE
LU WWN Device Id: 5 000039 ad8d2cd39
<... snip ...>
A disks where it works:
~# lsblk -dn -o SERIAL /dev/sdn
SMC0515D93017CH
~# lsblk -dn -o WWN /dev/sdn
0x515d93017c000029
~# smartctl -a /dev/sdn
smartctl 7.1 2019-12-30 r5022 [x86_64-
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontoo
=== START OF INFORMATION SECTION ===
Model Family: Silicon Motion based OEM SSDs
Device Model: SuperMicro SSD
Serial Number: SMC0515D93017CH
LU WWN Device Id: 5 15d930 17c000029
<... snip ...>
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1950793
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.