I also see this race condition happen often when I open up and
manipulate nested LVM devices.

For example, an LV is partitioned and one of the partitions inside is a
PV. A kpartx -a is run to activate the partitions, vgimportclone is run
to rename the VG inside that nested PV, and as MatthewParslow said above
the old nested VG device nodes are always left behind.

After cleaning those up manually, a sequence of two commands is run,
vgchange -a n on the renamed VG and kpartx -d on the top-level LV. It
usually works (it wins the race with udev vgchange -a y), but sometimes
it doesn't.

-- 
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