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

There appears to be no current way to convert a local VG to shared, yet the cmds used to attempt the convert pass

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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

      In this scenario, unlike in bug https://issues.redhat.com/browse/RHEL-122815, we never create a shared VG once the daemons are started, and as such, it appears no global lock is ever started and the vg attr of the converted VG never contains the shared 's'.

      kernel-6.12.0-136.el10    BUILT: Mon Sep 29 12:56:30 PM CEST 2025
      lvm2-2.03.35-1.el10    BUILT: Wed Sep 10 05:00:31 PM CEST 2025
      lvm2-libs-2.03.35-1.el10    BUILT: Wed Sep 10 05:00:31 PM CEST 2025
      sanlock-4.0.0-1.el10    BUILT: Thu May  1 04:31:33 PM CEST 2025
      sanlock-lib-4.0.0-1.el10    BUILT: Thu May  1 04:31:33 PM CEST 2025
      
      
      vgcreate    test1_local /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf
       Volume group "test1_local" successfully created
      lvcreate --yes --type linear -n vdo_lv  -L 25G test1_local
      Logical volume "vdo_lv" created.
      
      deactivating LV vdo_lv on virt-501.cluster-qe.lab.eng.brq.redhat.com
      lvchange --yes -an  test1_local/vdo_lv
      
      Setting use_lvmlockd to enable
      Setting lvmlocal.conf host_id to 579
      (virt-501.cluster-qe.lab.eng.brq.redhat.com): systemctl start sanlock
      (virt-501.cluster-qe.lab.eng.brq.redhat.com): systemctl start lvmlockd
      
      converting VG locking type to sanlock on
      virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgchange --locktype sanlock  test1_local
       Global lock failed: check that global lockspace is started
      
      lvmlockctl --gl-enable test1_local
      starting VG locking on virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgchange --lockstart  test1_local
      
      ### NOTE the proper shared (s) attr bit NEVER shows up: 
      Local converted vg_attr:wz--n-
      
      converting VG locking type to none on virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgchange --locktype none  test1_local
       Global lock failed: check that global lockspace is started
      
      removing VG test1_local from virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgremove -f  test1_local
        Global lock failed: check that global lockspace is started
      

              teigland@redhat.com David Teigland
              cmarthal@redhat.com Corey Marthaler
              David Teigland David Teigland
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: