Bug 2209370

Summary: lvmdevices --deviceidtype sys_serial adds underscores to nvme devices
Product: Red Hat Enterprise Linux 9 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: Devices, Filtering and Stacking QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: low    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac
Version: 9.3Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2023-05-23 16:26:29 UTC
Description of problem:

[root@grant-02 ~]#  cat /sys/dev/block/259:0/device/serial
PHAB134503ZW3P8EGN  

[root@grant-02 ~]# lvmdevices --deviceidtype sys_serial --adddev /dev/nvme0n1p1

[root@grant-02 ~]# cat /etc/lvm/devices/system.devices
# LVM uses devices listed in this file.
# Created by LVM command lvmdevices pid 1738544 at Tue May 23 18:25:17 2023
SYSTEMID=grant-02.6a2m.lab.eng.bos.redhat.com
VERSION=1.1.5036
IDTYPE=sys_serial IDNAME=PHAB134503ZW3P8EGN__ DEVNAME=/dev/nvme0n1p1 PVID=. PART=1


Version-Release number of selected component (if applicable):
kernel-5.14.0-305.el9    BUILT: Thu Apr 27 03:00:24 PM CEST 2023
lvm2-2.03.21-1.el9    BUILT: Fri Apr 21 02:33:33 PM CEST 2023
lvm2-libs-2.03.21-1.el9    BUILT: Fri Apr 21 02:33:33 PM CEST 2023