#760553 debian-installer: changing from guided to manual with LVM results in corrupt LVM metadata

Package:
debian-installer
Source:
debian-installer
Description:
Debian Installer documentation
Submitter:
Jon Dowland
Date:
2014-09-05 09:03:07 UTC
Severity:
important
#760553#5
Date:
2014-09-05 08:58:35 UTC
From:
To:
hi,

I've set Version: to the ISO I used for install as I'm not sure what version of
d-i that correlates to, nor whether this is a bug fixed since.

I recently performed an install and opted for guided - use LVM initially. When
presented with the results, I was not satisfied (I didn't want the entire
device filled up with a root LV - see also #651280) so I went back to manual and
started over: I deleted each LV and the partition housing the PV, then created a
new (smaller) partition for the LV and re-created the LVs.

The GPT partition table I ended up with is as follows

Note that I created partition #4 via parted post-installation (an
experiment which failed: UEFI-boot for BIOS flashing is a no-go).

However, I have just noticed that the LVM volume has corrupt metadata:

Note that the above shows that it thinks the PV is approx 1T in size,
but as parted shows, it's only ~10G.

I was just about to create a new LV but if I had done so, I believe it would
have started to overwrite partition #4 above and resulted in corruption.

'pvscan' didn't cure the issue, but 'pvresize' seems to have got things
to where they should be

I think the problem appears to be within d-i/partman and handling of deleting PVs
or deleting partitions upon which PVs are stored.