[Bug 1279660] Re: luks+lvm+btrfs raid1 confuses linux

Phillip Susi psusi at ubuntu.com
Thu Feb 13 14:39:39 UTC 2014


I believe this is just lvm: there is no user friendly way to shut it
down so you can unplug an external lvm disk.  You will need to manually
run lvchange -an on the logical volumes residing on the disk, or better
yet; don't use lvm on an external disk.


** Summary changed:

- luks+lvm+btrfs raid1 confuses linux
+ please shut down lvm volumes on unmount so disk can be removed

** Changed in: udisks (Ubuntu)
       Status: New => Triaged

** Changed in: udisks (Ubuntu)
   Importance: Undecided => Wishlist

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

Title:
  please shut down lvm volumes on unmount so disk can be removed

Status in “udisks” package in Ubuntu:
  Triaged

Bug description:
  I created a luks encrypted partition on an external drive, and put lvm
  with a single group and two volumes into the partition. I then used
  mkfs.btrfs to create a raid1 (-d raid1 -m raid1) mirror of the two lvm
  volume devices. After rebooting (yes, it's that bad) and plugging in
  the external drive again, two drives appear on the list of available
  drives, even though they are a raid pair. If you click on one then it
  mounts OK. If you click the other or click to mount again the mounter
  will mount the device again in another directory of /media.

  If I then unmount those manually I can't stop the drive using disks or
  lock the encrypted partition (this probably being the cause of the
  other). If I give up and unplug, then the two block devices for the
  lvm volumes remains and I can't replug later without a reboot.

  I raise this bug since I can imagine that down the line, this could
  become a common use case if btrfs isn't going to support direct
  encryption for those wanting self healing, encrypted, compressed,
  browsable backups.

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



More information about the foundations-bugs mailing list