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

Phillip Susi psusi at ubuntu.com
Fri Jun 15 02:53:14 UTC 2012


Could you see if this still happens on 12.04 and post the specific
commands and responses?


** Changed in: parted (Ubuntu)
       Status: New => Incomplete

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

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