util-linux/lsblk reports WWN as SERIAL in focal

Bug #1950793 reported by Boris
6
This bug affects 1 person
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://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 ...>

Tags: focal
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: focal
Revision history for this message
Boris (kervyn) wrote :

As I don't know what kind of data will be sent and this is a production system with customer data on it, I won't do this.

There is also no need to actuall collect data from the system, as it is a simple out of the box installation.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Boris (kervyn) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.