[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686096: LVM partman corruption of logical partitions on same extended partition



Package: installation-reports
Severity: critical

Image version: beta1 DVD amd64
http://cdimage.debian.org/cdimage/wheezy_di_beta1/amd64/iso-dvd/debian-wheezy-DI-b1-amd64-DVD-1.iso
Date: 28 August 2012


I successfully proceed through all steps up to partitioning / partman

I have a single disk of 500GB

I create the following:

sda1 256MB
sda5 250GB
sda6 250GB

In the main partman partitioning screen, it now shows me

#1 primary 254.8 MB ext4 /boot
#5 logical 250.0 GB lvm
#6 logical 249.8 GB lvm

Then I choose the menu option to set up LVM and create a volume group

It asks me "Please select the devices for the new volume group" and it
shows the following with checkboxes:

sda1 256MB
sda5 499GB   *** this is wrong
sda6 250GB

Notice that for sda5, it reports the size of the extended partition
rather than the logical partition?

fdisk /dev/sda shows correct values:

sda1 256MB
sda2 499GB  (type 5, Extended)
sda5 250GB  (type 8e)
sda6 250GB  (type 8e)

I go ahead and tick both of sda5 and sda6

partman is now at the menu where I can create an LV, etc

I go to a shell and run

pvscan

and I see the following:

PV /dev/sda5  VG vg00 lvm2 [465.52 GiB / 465
PV /dev/sda6                232.69 GiB
Total: 2 [698.21 GiB]

Notice it is not just displaying the wrong values: it actually thinks I
have 750GB of space when I only have 500GB

I don't want to guess what happens if it writes to the latter half of
/dev/sda5 and I don't have time to try it, but I can't imagine any
positive outcome

If I delete the volume group and then create it again, the second time
around, it behaves correctly.

Looking at Alt-F4 log output, I notice

kernel: pvcreate: sending ioctl 1261 to a partition!

appears twice around the time that the bad VG was created.


Reply to: