This also stops vgimportclone (which I used to import LVM VGs from
virtual machines) from working correctly, eg:

# lvcreate -n testsnap -L 10G --snapshot vmdata/sirius-test-nz-db
  Logical volume "testsnap" created

# kpartx -va /dev/mapper/vmdata-testsnap
add map vmdata-testsnap1 (252:238): 0 1024000 linear 
/dev/mapper/vmdata-testsnap 2048
add map vmdata-testsnap2 (252:239): 0 61886464 linear 
/dev/mapper/vmdata-testsnap 1026048

# pvs /dev/mapper/vmdata-testsnap2
  PV                           VG              Fmt  Attr PSize  PFree
  /dev/mapper/vmdata-testsnap2 vg_siriusstnzdb lvm2 a--  29.51g    0

# vgs
  VG                         #PV #LV #SN Attr   VSize   VFree
  vg_siriusstnzdb              1   2   0 wz--n-  29.51g      0
  vmdata                       1  95  43 wz--n-   3.27t   2.11t

# vgimportclone -n testsnap-200313 /dev/mapper/vmdata-testsnap2
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Physical volume "/tmp/snap.zGhp1FKk/vgimport0" changed
  1 physical volume changed / 0 physical volumes not changed
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Volume group "vg_siriusstnzdb" successfully changed
  Volume group "vg_siriusstnzdb" successfully renamed to "testsnap-200313"
  Reading all physical volumes.  This may take a while...
  Found volume group "testsnap-200313" using metadata type lvm2
  Found volume group "vmdata" using metadata type lvm2

-------------- At this point there should be no "vg_siriusstnzdb" devices, 
because LVM doesn't know about them. ----------
# dmsetup ls|grep vg_siriusstnzdb
vg_siriusstnzdb-lv_swap (252:241)
vg_siriusstnzdb-lv_root (252:240)

Obviously I can work around this by listing the volumes and then
removing $ORIGVG-$VOLUME with dmsetup, but without knowing of this bug,
you end up having to reboot, because you don't know what's using your
devices.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1088081

Title:
  udev rules make it impossible to deactivate lvm volume group with
  vgchange -an

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1088081/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to