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

vgcreate deadlocks when attempting to specify the same base device twice when it's partitioned

    • lvm2-2.03.27-1.el9
    • None
    • Low
    • c65d37976995bf73f5e79d2540b1cf9a4bef0ef5
    • sst_logical_storage
    • ssg_filesystems_storage_and_HA
    • 7
    • 9
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Pass
    • Automated
    • If docs needed, set a value
    • None

      Description of problem:
      [root@grant-01 ~]# vgcreate foo /dev/nvme0n1p1 /dev/sde1 /dev/nvme1n1p1 /dev/sdc1 /dev/sdd1
      Physical volume "/dev/nvme0n1p1" successfully created.
      Physical volume "/dev/sde1" successfully created.
      Physical volume "/dev/nvme1n1p1" successfully created.
      Physical volume "/dev/sdc1" successfully created.
      Physical volume "/dev/sdd1" successfully created.
      Volume group "foo" successfully created
      [root@grant-01 ~]# vgremove foo
      Volume group "foo" successfully removed

      1. one time, but not the partitioned device:
        [root@grant-01 ~]# vgcreate foo /dev/nvme0n1p1 /dev/sde /dev/nvme1n1p1 /dev/sdc1 /dev/sdd1
        Cannot use /dev/sde: device is partitioned
        Command requires all devices to be found.
      1. twice, but the partitioned device:
        [root@grant-01 ~]# vgcreate foo /dev/nvme0n1p1 /dev/sde1 /dev/nvme1n1p1 /dev/sdc1 /dev/sde1
        Physical volume '/dev/sde1' is already in volume group 'foo'
        PV /dev/sde1 cannot be added to VG foo.
      1. Now, add sde back a second time:
        [root@grant-01 ~]# vgcreate foo /dev/nvme0n1p1 /dev/sde /dev/nvme1n1p1 /dev/sdc1 /dev/sde
        [DEADLOCK]

      Version-Release number of selected component (if applicable):
      kernel-5.14.0-306.el9 BUILT: Sat Apr 29 05:45:15 PM CEST 2023
      lvm2-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023
      lvm2-libs-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023

            mcsontos@redhat.com Marian Csontos
            cmarthal@redhat.com Corey Marthaler
            Peter Rajnoha Peter Rajnoha
            Cluster QE Cluster QE
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: