[Bug 453276] Re: Deleting partition does not invoke pvremove
Launchpad Bug Tracker
453276 at bugs.launchpad.net
Tue Oct 2 14:14:09 UTC 2012
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: partman-lvm (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-lvm in Ubuntu.
https://bugs.launchpad.net/bugs/453276
Title:
Deleting partition does not invoke pvremove
Status in “partman-lvm” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: partman-lvm
This is more of a feature request than a bug report, but this sequence
of steps caused me great confusion. (See
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/452350) Anyway, I
figured that the root cause was that deleting a partition does not
invoke pvremove to clear out the LVM metadata label on that partition.
Here's what I did:
- Auto-partition with LVM, which put my LVM partition at the beginning of the disk and my boot partition at the end of the disk.
- I didn't like the boot partition at the end of disk, so I manually deleted the LVM partition and the boot partition.
- Manually recreated a boot partition at the beginning of the disk and put the LVM partition after that.
- pvscan now believes that the boot partition is a physical volume, even though it is not:
$ sudo pvscan
Incorrect metadata area header checksum
PV /dev/sda2 VG root lvm2 [7.22 GB / 724.00 MB free]
PV /dev/sda1 lvm2 [7.22 GB]
Total: 2 [14.45 GB] / in use: 1 [7.22 GB] / in no VG: 1 [7.22 GB]
What seems to have happened is that the boot partition was placed in
the exact same location as the LVM partition was originally placed
during the auto-partition. pvscan now sees the vestigial metadata
label on the boot partition when it scans the partitions. A simple
'pvremove /dev/sda1' cleared everything up once I figured out what was
going on.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-lvm/+bug/453276/+subscriptions
More information about the foundations-bugs
mailing list