[Kernel-packages] [Bug 1950793] Re: util-linux/lsblk reports WWN as SERIAL in focal

2021-11-12 Thread Boris
Maybe this is the issue: https://github.com/util-linux/util-
linux/commit/b95752ad206222dfaa854a01c6106c89d2c607a2

https://github.com/util-linux/util-linux/issues/1143

Maybe you can backport it?

** Bug watch added: github.com/util-linux/util-linux/issues #1143
   https://github.com/util-linux/util-linux/issues/1143

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1950793

Title:
  util-linux/lsblk reports WWN as SERIAL in focal

Status in linux package in Ubuntu:
  Confirmed

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
  0x539ad8d2cd39
  ~# lsblk -dn -o SERIAL /dev/sdb
  539ad8d2cd39

  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 39 ad8d2cd39
  <... snip ...>

  A disks where it works:
  ~# lsblk -dn -o SERIAL /dev/sdn
  SMC0515D93017CH75029
  ~# lsblk -dn -o WWN /dev/sdn
  0x515d93017c29

  ~# 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 17c29
  <... snip ...>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1950793/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1950793] Re: util-linux/lsblk reports WWN as SERIAL in focal

2021-11-12 Thread Boris
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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1950793

Title:
  util-linux/lsblk reports WWN as SERIAL in focal

Status in linux package in Ubuntu:
  Confirmed

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
  0x539ad8d2cd39
  ~# lsblk -dn -o SERIAL /dev/sdb
  539ad8d2cd39

  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 39 ad8d2cd39
  <... snip ...>

  A disks where it works:
  ~# lsblk -dn -o SERIAL /dev/sdn
  SMC0515D93017CH75029
  ~# lsblk -dn -o WWN /dev/sdn
  0x515d93017c29

  ~# 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 17c29
  <... snip ...>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1950793/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp