LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cant resize with LVM plz help (https://www.linuxquestions.org/questions/linux-general-1/cant-resize-with-lvm-plz-help-245420/)

sendas4 10-21-2004 03:13 AM

Cant resize with LVM plz help
 
I have 2 80gb hds running gentoo and LVM2

i type in lvextend -L+5G /dev/vg/movies

and it tells me extending logical Volume to 20GB
Logical Volume movies successfully resized.

But when i df -h the size is still 15G same goes if i try to lvextend any of my other /dev/vg 's

anyone know what causes this?

trickykid 10-21-2004 08:22 AM

Is that the only command you running to extend the partitions? I think your missing a few commands ;)

sendas4 10-21-2004 10:59 AM

well ya after i added the 2nd HD to the vg group. so i did this


Code:

vgextend vg /dev/hdb1
Code:

lvextend -L+5G /dev/vg/movies

what am i missing?

trickykid 10-21-2004 12:17 PM

Here's the steps I usually take say if I wanted to extend my scratch partition:

sudo umount /dev/vg/scratch
sudo lvextend --size +5g /dev/rootvg/scratch
sudo e2fsck -f /dev/rootvg/scratch
sudo resize2fs /dev/rootvg/scratch
sudo mount /scratch

Note: I only have sudo in front as I rarely login as root, which is a good thing. ;)

sendas4 10-21-2004 07:05 PM

Perfect it worked. Thanks for the help.


All times are GMT -5. The time now is 02:24 AM.