[linux-lvm] shrink VG and PV

Malahal Naineni malahal at us.ibm.com
Mon May 17 21:14:59 UTC 2010


Dael Elcar [kanonmatswe at gmail.com] wrote:
>    pvresize /dev/sda2 --test --setphysicalvolumesize 49256M
>    Test mode: Metadata will NOT be updated.
>    /dev/sda2: too many metadata areas for pvresize
>    0 physical volume(s) resized / 1 physical volume(s) not resized

I have now looked at how to reduce the number of metadata copies. Here
is what Alasdair said:

	Q: /dev/md1: too many metadata areas for pvresize

	That's meant to be saying you chose to place a second copy of
	the metadata at the end of the device and if you want to
	increase the size of the data area you have to shift that
	metadata first and there is no code that does that.

	Workaround is to reduce to 1 metadata area first (backup VG,
	redo pvcreate with uuid & restorefile, restore VG), then extend,
	then put the 2nd metadata area back (same process) if you still
	want it.

Hope that helps!
--Malahal.




More information about the linux-lvm mailing list