[linux-lvm] Strange reduction in Total PE upon multiple vgred uce+vgextend
Poul Petersen
petersp at roguewave.com
Wed Jan 18 00:52:43 UTC 2006
> WHATS_NEW:
> Version 2.01.10 - 3rd May 2005
> ==============================
> ...
> Reinstate full PV size when removing from VG.
Ah, fair enough. I upgraded to LVM-2.01.15 but now I have a related
problem. If I force the physical volume size using --setphysicalvolumesize,
then doing vgreduce/vgextend resets it to the maximum size:
# pvcreate -f -M2 --setphysicalvolumesize=10000 /dev/sd[pq]1
Physical volume "/dev/sdp1" successfully created
Physical volume "/dev/sdq1" successfully created
# vgcreate vg20 -s32M -M2 /dev/sdp1 /dev/sdq1
Volume group "vg20" successfully created
# vgdisplay -v vg20
<cut>
--- Physical volumes ---
PV Name /dev/sdp1
PV UUID 8H24mH-k5TA-n3O0-sQUF-e8sB-dteF-luHLJF
PV Status allocatable
Total PE / Free PE 312 / 312
PV Name /dev/sdq1
PV UUID M13ArL-7b9d-SvLJ-ik6H-pRYO-hqgg-WWaPRP
PV Status allocatable
Total PE / Free PE 312 / 312
# vgreduce vg20 /dev/sdp1 ; vgextend vg20 /dev/sdp1
Removed "/dev/sdp1" from volume group "vg20"
Volume group "vg20" successfully extended
# vgdisplay -v vg20
<cut>
--- Physical volumes ---
PV Name /dev/sdq1
PV UUID M13ArL-7b9d-SvLJ-ik6H-pRYO-hqgg-WWaPRP
PV Status allocatable
Total PE / Free PE 312 / 312
PV Name /dev/sdp1
PV UUID 8H24mH-k5TA-n3O0-sQUF-e8sB-dteF-luHLJF
PV Status allocatable
Total PE / Free PE 469 / 469
-poul
More information about the linux-lvm
mailing list