[linux-lvm] Problems resizing physical volume

Alasdair G Kergon agk at redhat.com
Wed Apr 14 22:27:40 UTC 2010


On Wed, Apr 14, 2010 at 05:57:05PM -0400, Stuart D. Gathman wrote:
> This reduces LVM to the equivalent of a partition as far as the
> boot code is concerned.
 
That's been discussed, but nothing happened.  It's pretty easy to do.

Instead a primitive parser was written for grub2 independently of the
LVM2 developers that can read a subset of LVM2 metadata while being
unaware of its own limitations - so it is straightforward to generate
correct LVM2 metadata that the parser will misinterpret and use to
activate volumes jumbling up your data.  Don't use it without first
testing it processes your specific metadata correctly.

A supportable redesign would see the code that grubN uses provided
by the upstream LVM2 package (in some agreed form - library or
source) so that the grub package itself has no specific LVM2 knowledge,
but imports what it needs through some agreed interface.

If people want to work on this - i.e. liase with the grub and lvm
developers to design and code up a suitable interface - please step
forward and start talking to us!

Alasdair




More information about the linux-lvm mailing list