Deleting partition does not invoke pvremove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-lvm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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:/
- 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.
Status changed to 'Confirmed' because the bug affects multiple users.