Increase root file system size ...

Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Increase root file system size ...
# 1  
Increase root file system size ...

Hello Admins,

I am running a redhat linux 5 on vmware workstation.

I need to increase or add some more space to my root (/) partition. I don't have any LVM configured..

Please suggest.
Code:
[root@localhost /]# df -kh
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             3.8G  3.1G  556M  85% /
tmpfs                 506M     0  506M   0% /dev/shm
/dev/sda3             8.9G   21M  8.4G   1% /home


Or How can I allocate the extra space available for "/home" to "/" ..?

Last edited by pludi; 08-08-2011 at 07:09 PM..
# 2  
Short answer is.... you cannot.

You would need more space. However, since you are using VMware, you can do the following. Create a new virtual machine and allocate a new disk. You can then add the existing virtual disk to the new machine and then use another copy of linux to dd the existing vmdk to the new vmdk. Then you can expand the root partition via a live/rescue disk with tools such as resize2fs.
This User Gave Thanks to mark54g For This Post:
# 3  
Okay...How about LVM...

Can I mirror the root slice using LVM and then add slice to it like solaris 10?
# 4  
LVM doesn't work on a slice philosophy the way Solaris did. It works on a PV > VG > LV system, where PV is physical volume (a disk or partition), VG is a volume group, the logical construct of one or more PVs, and LV is a section of a VG, made up of extents.

You can add multiple PVs into a VG, even migrating old PVs out and adding new ones in, moving the data around. However, you can't add the existing root volume to a VG without losing the data, as technically, the partition type changes and the data is not encapsulated.

You CAN try to migrate to LVM, but it is not fool proof and if something goes wrong, the data can be destroyed. It is not as safe as I would like to recommend.

http://www.linuxweblog.com/blogs/san...filesystem-lvm
http://tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html

Last edited by mark54g; 08-09-2011 at 12:30 AM..
# 5  
* sorry my / disk is under lvm

check the below KB its usefull for increase the size of vmdk
i was done this for one of vm under ESX4.1i

VMware KB: Increasing the size of a virtual disk


1. shutdown the VMmachine
2.edit the vmsettings
3.increase the vmdisk size
4. boot the vm create the new slice
5.extend the vg then lvextend

Last edited by venikathir; 08-09-2011 at 05:22 AM.. Reason: changes
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #401
Difficulty: Medium
The 3D printing process builds a three-dimensional object from a computer-aided design (CAD) model.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Increase /tmp file system size dynamically in Solaris zone

Hi Please let me know how to increase the size of /tmp file system from 512m to 1024m dynamically without reboot in solaris zone # df -h Filesystem size used avail capacity Mounted on zones/zone1 11G 1.0G 10.0G 10% / /dev 11G 1.0G ... (6 Replies)
Discussion started by: sb200
6 Replies

2. Red Hat

Procedure to increase file system

Hi, How/what is the procedure to increase file system in linux server ? Regards, Maddy (6 Replies)
Discussion started by: Maddy123
6 Replies

3. HP-UX

[Solved] Increase the file system size

Dear Friends, I would like to increase the size of a file system from 10GB to 15GB. System is runing on HP-UX 11.31. Please help in the matter. Regards, Bhagawati Pandey (3 Replies)
Discussion started by: BPANDEY
3 Replies

4. Solaris

How to increase jvm size for solaris 10 (sparc) operating system

Hi, I have solaris 10 (sparc) operating system machine on which I have installed supported weblogic 10.3. It was installed properly. As we know weblogic uses jvm to run and uses a part of jvm memory. But I am facing one problem in which JVM is getting crashed again and again resulting my... (2 Replies)
Discussion started by: neeraj.tati
2 Replies

5. Solaris

how to increase file size in solaris 10 os

hi, let me know how to increase file size in solaris 10 OS (4 Replies)
Discussion started by: meet2muneer
4 Replies

6. AIX

increase the size of file system

Hi all, we are usig aix 4.3 and i need to increase the size of "/u01" file sytem which is mounted on logical volume "lv00", but "/u01" file system size is 9 GB and logical volume "lvoo" size 9 GB.how do i increase the size of /u01.do i increase the size of logical volume "lv00" and then... (2 Replies)
Discussion started by: younusdba
2 Replies

7. Solaris

increase Root size

Dear all, I am very new to solaris, I have installed solaris 10, i tried installing few softwares into file system, unfortunately system failed to install stating "No space left on device " i searched few threads and it says, we have to increase root size. where my root size is... (2 Replies)
Discussion started by: radhnki
2 Replies

8. Solaris

how to increase size of the root partition

Hi we have a sunfire v880 server . we have a problem with root partion it showing 90% full. so anyone can help me how to increase the size of that partion. NOTE: It is not in veritas & SVM control. Regards prakash (6 Replies)
Discussion started by: pshelke
6 Replies

9. Solaris

increase root file system size in solaris

Hi frnz, Need an urgent help... I have installed solaris 8 in a sunblade workstation with 136GB hdd. While installation it has taken a default filesystem size as 1.37GB for root. AFtr completing the installation i have extended the root partition to 130GB. But still df output shows... (4 Replies)
Discussion started by: sriram.s
4 Replies

10. Solaris

Increase size of /tmp swap File

Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson (2 Replies)
Discussion started by: cmackin
2 Replies

Featured Tech Videos