Public bug reported:
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://de.archive.ubuntu.com/ubuntu focal-updates/main amd64
Packages
100 /var/lib/dpkg/status
2.34-0.1ubuntu9 500
500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages
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-linux-5.4.0-89-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== 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
SMC0515D93017CH75029
~# lsblk -dn -o WWN /dev/sdn
0x515d93017c000029
~# smartctl -a /dev/sdn
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-89-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Silicon Motion based OEM SSDs
Device Model: SuperMicro SSD
Serial Number: SMC0515D93017CH75029
LU WWN Device Id: 5 15d930 17c000029
<... snip ...>
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1950793
Title:
util-linux/lsblk reports WWN as SERIAL in focal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1950793/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs