1753901 Members
8274 Online
108810 Solutions
New Discussion юеВ

Re: /root resizing

 
SOLVED
Go to solution
Roberto Volsa
Frequent Advisor

/root resizing

Hello all,
on RH AS Rel4 Update 4, is there any way to resize the /root and other partions?
I checked for the rescue CD (with LVM integraton in order to perform the resize)but i cannot find it.

thanks in advance
RV
4 REPLIES 4
Yogeeraj_1
Honored Contributor

Re: /root resizing

hi,

Since /root is found on the / file system i.e. root file system, you should resize the root file system itself...

but you can also bypass this by creating a new file system and mount it as /root thereby transfering all the files from old "/root" to the new "/root"

this would be much easier and would least affect your system.

hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
larstr
Advisor
Solution

Re: /root resizing

Another option would be to boot from the Gparted LiveCD[1] and resize the partitions from there.

Lars
[1]http://gparted.sf.net/livecd.php
Stuart Browne
Honored Contributor

Re: /root resizing

Umm, is the system actually using LVM?

If it is, then using 'lvextend' followed by a 'resize2fs'.

If you aren't currently using LVM, then as the previous person stated, you need resize the partition first. Using a tool like 'gparted' (their live cd, or a sys-rescue live cd) is a nice easy way to do it.
One long-haired git at your service...
TY 007
Honored Contributor

Re: /root resizing

Hello,

>> I checked for the rescue CD (with LVM integraton
>> in order to perform the resize)but i cannot find it

If you are using LVM, this could be done via Linux Rescue Mode.

You need be familar with following LVM Commands, refer to Man Page:
# man lvextend
# man resize2fs
# man pvcreate
# man vgextend

Scenarios 1: There are existing Disk Spaces in Current Volume Group
--> Use lvextend, resize2fs

Scenarios 2: There are No More Disk Spaces in Current Volume Group
--> Create a New LVM Partition via fdisk
--> Use pvcreate, vgextend, lvextend, resize2fs

Try above in a Development Box first :)

Thanks