[linux-lvm] Resizing a volume group

Dean Takemori deant at hawaii.rr.com
Fri Jan 7 06:01:06 UTC 2005


Hello,

I'm running a Fedora Core 1 box using LVM on RAID (lvm-1.0.3-13)  I 
moved
from a pair of RAID1 hard drives to a larger pair of drives by 
strategically
failing and replacing the drives.

This has left me with the following situation : Volume group lv0 (26GB) 
resides
on /dev/md1, which are a pair of 250GB partitions.  But the lvm tools 
only see
/dev/md1 as being 26GB (which is what it was on the old hard drives).  
(Oddly,
vgdisplay does note that the maximum lv size is 250GB).

Is it possible to resize the pv and lv so that they use up the full 
space of
the partition?


~ > pvdisplay /dev/md1
--- Physical volume ---
PV Name               /dev/md1
VG Name               lv0
PV Size               26.44 GB [55453952 secs] / NOT usable 4.19 MB 
[LVM: 154 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                7
PE Size (KByte)       4096
Total PE              6768
Free PE               0
Allocated PE          6768
PV UUID               nrQNYO-Iva3-UP0M-64U5-M2L9-YT7o-tRhTBV

~ > vgdisplay lv0
--- Volume group ---
VG Name               lv0
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                7
Open LV               7
MAX LV Size           255.99 GB
Max PV                256
Cur PV                1
Act PV                1
VG Size               26.44 GB
PE Size               4 MB
Total PE              6768
Alloc PE / Size       6768 / 26.44 GB
Free  PE / Size       0 / 0
VG UUID               OLmdue-W62m-fr8z-Eo4N-gS0A-4Tfm-E9wuM4


-dean takemori




More information about the linux-lvm mailing list