Re: shrink VG and PV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dael Elcar [kanonmatswe@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.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux