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

when vgsplitting a blank PV into an new (but existing) VG, all LVs must be inactive

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • lvm2
    • None
    • None
    • None
    • rhel-storage-lvm
    • None
    • False
    • False
    • Hide

      None

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

      I noticed this oddity when I was writing a reproducer for bug https://issues.redhat.com/browse/RHEL-118870

      There, when first attempting to vgsplit a PV w/ no LVs on it, LVM doesn't mind if the LVs in the split from VG are active or not, however if you repeat that procedure, again splitting off a PV with out any LVs on it, LVM will require the LVs to be inactive even though it did not the first time and even though the LVs are not on the PV about to be split.

      kernel-5.14.0-625.el9    BUILT: Wed Oct 15 11:32:28 AM CEST 2025
      lvm2-2.03.33-1.el9    BUILT: Tue Sep 30 02:15:40 PM CEST 2025
      lvm2-libs-2.03.33-1.el9    BUILT: Tue Sep 30 02:15:40 PM CEST 2025
       
      [root@virt-495 ~]# pvscan
        PV /dev/sda   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        PV /dev/sdb   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        PV /dev/sdc   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        PV /dev/sdd   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        PV /dev/sde   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        PV /dev/sdf   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        PV /dev/sdg   VG VG   lvm2 [<40.00 GiB / <40.00 GiB free]
        Total: 7 [279.97 GiB] / in use: 7 [279.97 GiB] / in no VG: 0 [0   ]
       
      [root@virt-495 ~]# lvcreate -L 100M VG /dev/sdb
        Logical volume "lvol0" created.
      [root@virt-495 ~]# vgsplit VG VG2 /dev/sdc
        New volume group "VG2" successfully split from "VG"
      [root@virt-495 ~]# vgsplit VG VG2 /dev/sdd
        Logical volumes in "VG" must be inactive
       
      [root@virt-495 ~]# vgsplit VG VG3 /dev/sdd
        New volume group "VG3" successfully split from "VG"
      [root@virt-495 ~]# vgsplit VG VG3 /dev/sde
        Logical volumes in "VG" must be inactive
       
      [root@virt-495 ~]# vgsplit VG VG4 /dev/sde
        New volume group "VG4" successfully split from "VG"
      

              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: