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

'device-mapper: remove ioctl' failed message when converting local VG to shared with existing global lock

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

      When converting this local VG to shared, it works due to there being a newly created shared VG which creates a valid global lock. Even with that however, there is an ioctl failure message during the convert.

      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 287
      (virt-501.cluster-qe.lab.eng.brq.redhat.com): systemctl start sanlock
      (virt-501.cluster-qe.lab.eng.brq.redhat.com): systemctl start lvmlockd
      
      creating second (SHARED) VG on virt-501.cluster-qe.lab.eng.brq.redhat.com using PV(s) /dev/sda
      vgcreate --shared   test2_shared /dev/sda
       Enabling sanlock global lock
       Logical volume "lvmlock" created.
       Volume group "test2_shared" successfully created
       VG test2_shared starting sanlock lockspace
       Starting locking.  Waiting until locks are ready...
      Shared created vg_attr:wz--ns
      
      converting first (LOCAL) VG locking type to sanlock on
      virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgchange --locktype sanlock  test1_local
       Logical volume "lvmlock" created.
       device-mapper: remove ioctl on  (253:3) failed: Device or resource busy
       Volume group "test1_local" successfully changed.
      
      starting VG locking on virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgchange --lockstart  test1_local
       VG test1_local starting sanlock lockspace
       Starting locking.  Waiting for sanlock may take a few seconds to 3 min...
      ### NOTE the proper shared (s) attr bit now shows up: 
      Local converted vg_attr:wz--ns
      
      converting VG locking type to back to none on virt-501.cluster-qe.lab.eng.brq.redhat.com
      vgchange --locktype none  test1_local
       Volume group "test1_local" successfully changed.
      lvremove -f  test1_local/vdo_lv
      Logical volume "vdo_lv" successfully removed.
      
      removing VG test1_local from virt-501.cluster-qe.lab.eng.brq.redhat.com
      Volume group "test1_local" successfully removed
      
      removing VG test2_shared from virt-501.cluster-qe.lab.eng.brq.redhat.com
      Volume group "test2_shared" successfully removed
      
      (virt-501.cluster-qe.lab.eng.brq.redhat.com): systemctl stop lvmlockd
      (virt-501.cluster-qe.lab.eng.brq.redhat.com): systemctl stop sanlock
      Setting use_lvmlockd to disable
      Disabling lvmlocal.conf use of host_id
      

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

                Created:
                Updated: