[Bug 611717] Re: parted fails to remove partitions from lvm disk

Ludovico Cavedon cavedon at debian.org
Thu Jun 14 03:00:28 UTC 2012


Could be related to bug #1012946

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

Title:
  parted fails to remove partitions from lvm disk

Status in “parted” package in Ubuntu:
  New

Bug description:
  Binary package hint: parted

  Hi,

  sometimes it is necessary to use an LVM logical volume not just like a
  single partition (e.g. to carry a file system), but to mimic a
  complete hard disk (e.g. to be used as a virtual hard disk for
  emulators like kvm).

  using parted to create disk labels, partitions etc. on an LV works as
  expected. But then, parted denies to remove a partition and claims it
  is in use and mounted, although it isn't. As far as I could figure out
  with strace parted reads the device mapper table to check, whether a
  partition is used. Since LVM logical volumes always appear on the
  dmsetup list (in contrast to regular hard disks which only appear if
  really in use), parted always erroneously assumes that the
  disk/partition is in use and denies to remove it.

  regards
  Hadmut

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




More information about the foundations-bugs mailing list