[linux-lvm] Re: [OxLUG] LVM2 problems

Alasdair G Kergon agk at redhat.com
Fri Oct 15 21:49:45 UTC 2004


On Fri, Oct 15, 2004 at 10:18:07PM +0100, Paul Warren wrote:
> Is there any way around this?  Would growing the partition help?
 
Only some careful calculations and growing it backwards
so there's the right amount of space at the start.

Otherwise you'd have to relocate the first physical extents of
data elsewhere, so you have enough unused space at the beginning 
of the disk, then edit the metadata carefully to remove
the now-unused extents and shift the start of the data to where
LVM1 expects it to be.

The tests in lib/format1/format1.c:_pv_setup() 
  /* Retain existing extent locations exactly */
check for equality because that's all there's been time to test
(and should cover most cases of lvm1->lvm2->lvm1).
Checking instead for no overlap should be sufficient but hasn't been
tested.

Alasdair
-- 
agk at redhat.com




More information about the linux-lvm mailing list