LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Extend rootvol LV in RHEL4 (https://www.linuxquestions.org/questions/linux-general-1/extend-rootvol-lv-in-rhel4-647513/)

sopriano 06-06-2008 05:39 PM

Extend rootvol LV in RHEL4
 
hello experts;

I want to extend rootvol (/) - currently at 16Gb, with additional 50GB in RHEL4? Is this posibble?


--------------------------------------------------------|
[root@RHEL43SVR01 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-rootvol
16G 7.3G 7.5G 50% /
/dev/sda1 99M 18M 77M 19% /boot
none 7.8G 0 7.8G 0% /dev/shm
/dev/mapper/rootvg-homevol
2.0G 36M 1.9G 2% /home

[root@RHEL43SVR01 /]# vgdisplay | grep Free
Free PE / Size 2365 / 173.91 GB
--------------------------------------------------------|

trickykid 06-07-2008 08:23 AM

lvextend and resize2fs are your friend...

sopriano 06-10-2008 10:43 AM

i used that..
1st try - unable to unmount '\' - 'device busy'..
then after tried few times.. the volume size seems no change? please help..

twk 06-10-2008 11:30 AM

Maybe boot into rescue mode with a RHEL4 CD (linux rescue) and do your resizing there.

trickykid 06-10-2008 02:18 PM

RHEL 4 should not require you to umount your partition. You can change it on the fly with newer versions of LVM.

twk 06-10-2008 06:38 PM

Quote:

Originally Posted by trickykid (Post 3180688)
RHEL 4 should not require you to umount your partition. You can change it on the fly with newer versions of LVM.

That option is "ext2online" command (lvextend first).

However I vaguely remember there's a size limitation with "ext2online" command on a unprepared partition.

trickykid 06-10-2008 10:49 PM

Quote:

Originally Posted by twk (Post 3180863)
However I vaguely remember there's a size limitation with "ext2online" command on a unprepared partition.

That's correct about ext2online.

The size limitation only affects ext2 filesystems, since it was not created with this in mind originally for changing the size on a mounted partition. And I would find it hard to believe if anyone is still using ext2, unless it's some legacy system, etc.


All times are GMT -5. The time now is 04:35 PM.