Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-40640

no devicesfile update should occur due to wrong partition value "device not found"

    • None
    • None
    • sst_logical_storage
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      Per https://bugzilla.redhat.com/show_bug.cgi?id=2104633 no update should be occurring due to a wrong partition value, as that could be a valid (but not currently available) device.

      1. RHEL9.4
         
        kernel-5.14.0-447.el9    BUILT: Tue May  7 07:35:11 AM EDT 2024
        lvm2-2.03.23-2.el9    BUILT: Fri Feb  2 07:10:34 PM EST 2024
        lvm2-libs-2.03.23-2.el9    BUILT: Fri Feb  2 07:10:34 PM EST 2024
         
        [root@grant-02 ~]# lvmdevices -y --config devices/scan_lvs=1  --adddev /dev/sda1
        [root@grant-02 ~]# cat /etc/lvm/devices/system.devices 
        # LVM uses devices listed in this file.
        # Created by LVM command lvmdevices pid 19899 at Mon Jun 10 15:03:56 2024
        PRODUCT_UUID=4c4c4544-005a-5110-804e-c3c04f325133
        VERSION=1.1.1
        IDTYPE=sys_wwid IDNAME=naa.5ace42e025483023 DEVNAME=/dev/sda1 PVID=. PART=1
         
        # Hand edit devices file:
        IDTYPE=sys_wwid IDNAME=naa.5ace42e025483023 DEVNAME=/dev/sda1 PVID=. PART=9
         
        [root@grant-02 ~]# lvmdevices --check
          IDTYPE=sys_wwid IDNAME=naa.5ace42e025483023 DEVNAME=/dev/sda1 PVID=none PART=9: device not found
        [root@grant-02 ~]# echo $?
        0
         
        [root@grant-02 ~]# lvmdevices --update
          IDTYPE=sys_wwid IDNAME=naa.5ace42e025483023 DEVNAME=/dev/sda1 PVID=none PART=9: device not found
          No update for devices file is needed.
         
        [root@grant-02 ~]# cat /etc/lvm/devices/system.devices 
        # LVM uses devices listed in this file.
        # Created by LVM command lvmdevices pid 19899 at Mon Jun 10 15:03:56 2024
        PRODUCT_UUID=4c4c4544-005a-5110-804e-c3c04f325133
        VERSION=1.1.1
        IDTYPE=sys_wwid IDNAME=naa.5ace42e025483023 DEVNAME=/dev/sda1 PVID=. PART=9
        
      1. RHEL9.5
        kernel-5.14.0-457.el9    BUILT: Fri May 31 01:38:48 AM CEST 2024
        lvm2-2.03.24-1.el9    BUILT: Fri Jun  7 04:32:04 PM CEST 2024
        lvm2-libs-2.03.24-1.el9    BUILT: Fri Jun  7 04:32:04 PM CEST 2024
         
        [root@virt-522 ~]# lvmdevices -y --config devices/scan_lvs=1  --adddev /dev/sda1
        [root@virt-522 ~]# cat /etc/lvm/devices/system.devices 
        # LVM uses devices listed in this file.
        # Created by LVM command lvmdevices pid 4302 at Mon Jun 10 21:12:48 2024
        # HASH=306725210
        PRODUCT_UUID=498fa5ee-fab8-4bd7-a3d8-9840d4b449d9
        VERSION=1.1.1
        IDTYPE=sys_wwid IDNAME=naa.6001405933f4963cc8a49b0bf6038fcb DEVNAME=/dev/sda1 PVID=. PART=1
         
        # Hand edit devices file:
        IDTYPE=sys_wwid IDNAME=naa.6001405933f4963cc8a49b0bf6038fcb DEVNAME=/dev/sda1 PVID=. PART=9
         
        [root@virt-522 ~]# lvmdevices --check
          IDTYPE=sys_wwid IDNAME=naa.6001405933f4963cc8a49b0bf6038fcb DEVNAME=/dev/sda1 PVID=none PART=9: device not found
          Hash update needed for devices file.
        [root@virt-522 ~]# echo $?
        0
         
        [root@virt-522 ~]# lvmdevices --update
          IDTYPE=sys_wwid IDNAME=naa.6001405933f4963cc8a49b0bf6038fcb DEVNAME=/dev/sda1 PVID=none PART=9: device not found
          Updated devices file to version 1.1.2
         
        [root@virt-522 ~]# cat /etc/lvm/devices/system.devices
        # LVM uses devices listed in this file.
        # Created by LVM command lvmdevices pid 4347 at Mon Jun 10 21:14:28 2024
        # HASH=1994350652
        PRODUCT_UUID=498fa5ee-fab8-4bd7-a3d8-9840d4b449d9
        VERSION=1.1.2
        IDTYPE=sys_wwid IDNAME=naa.6001405933f4963cc8a49b0bf6038fcb DEVNAME=/dev/sda1 PVID=. PART=9
        

            lvm-team lvm-team
            cmarthal@redhat.com Corey Marthaler
            lvm-team lvm-team
            Cluster QE Cluster QE
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: