Skip to contentSkip to conversation

vgmerge with different physical extent sizes

linux-lvm Ross Boylan 2 participants 2 messages Dec 23, 2010 – Dec 24, 2010

lore
Share & tools
lore
#0 lore raw

What happens if you vgmerge 2 VG's and they have different physical extent sizes?

I ask because I created a VG and specfied
vgcreate -s 32MB rose /dev/sdc2

# created a LV and formatted it, then inactivated it
vgmerge daisy rose

I notice that vgdisplay now says that daisy has
PE Size 32.00 MB.

When I created daisy I don't think I used the -s option, though I may have created it with a Debian tool that picked 32MB. I've looked for an explicit record, or the results of an earlier vgdisplay, but I don't see anything (I do have some earlier lvdisplay's).

Is PE size mismatch anything that might be causing me trouble? This is LVM2.

Thanks.
Ross

#1 lore raw
Quoted 2 lines · Ross Boylan

What happens if you vgmerge 2 VG's and they have different physical extent sizes?

The man page says it should fail. It's possible that if everything lines up, it automatically changes the extent size of either the source or destination VG.

It is possible to change the PE size with vgchange (some lvresizing/pvmoving may be required and must be done manually).

Signature · 4 lines
	      Stuart D. Gathman <[email protected]>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.