Need help to Extend a Logical Volume on Centos 6.2
I'm running out of space on my CentOS 6.2 webserver running on ESX 4.1
I found all the info I needed and using Edit settings in ESX, I increased the hard drive size from 60GB to 100GB
I created a partition /dev/sda3 with fdisk - rebooted -no problem
I used pvcreate to create a physical volume for the LVM
I used vgextend to add the new partition to the Volume Group (itś name is vg_centos62)
I used vgdisplay to check how much available space I had - 40GB - no problems so far
Now I have the final step to complete : -
lvextend -L+40.00G /dev/vg_centos62/?????
and here Iḿ stuck lvdisplay gives me : -
--- Logical volume ---
LV Name /dev/vg_centos62/lv_root
VG Name vg_centos62
LV UUID zkagmA-4r2r-IE3F-xOAO-BRwL-fJhS-IFo7D2
LV Write Access read/write
LV Status available
# open 1
LV Size 28.58 GiB
Current LE 7317
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg_centos62/lv_home
VG Name vg_centos62
LV UUID Ng0WXo-KrU1-zMPA-x9hY-rqCB-1LIK-w567JU
LV Write Access read/write
LV Status available
# open 1
LV Size 28.96 GiB
Current LE 7413
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/vg_centos62/lv_swap
VG Name vg_centos62
LV UUID b752nv-HHgN-2FRP-jbeY-3ZYX-dcEY-SE1PZ4
LV Write Access read/write
LV Status available
# open 1
LV Size 1.97 GiB
Current LE 504
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
The question is, do I add the free space to lv_root or lv_home?
I need the space for /var/www should I expend lv_root or lv_home?
Can someone please set me right before I cock the entire thing up!
|