Solved

Running out of diskspace on /

Posted on 2014-09-04
4
156 Views
Last Modified: 2014-09-09
We have many redhat 5 systems and as time goes on we are filling up the root file system.

They are normal, physical systems.

How do I expand the root file system ( kinda tricky to unmount and expand )
0
Comment
Question by:TIMFOX123
4 Comments
 
LVL 14

Assisted Solution

by:Brad Groux
Brad Groux earned 125 total points
ID: 40304539
As you noted, expanding a partition isn't an easy task... as explained here - http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch27_:_Expanding_Disk_Capacity#.VAjBxNJ0xaQ

Your best bet it to migrate other data to a new disk, with /home and /opt probably being the easiest candidates. This should then clear up space for the root.
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 125 total points
ID: 40304575
No unmount and downtime if you are using Logical Volume.

First and foremost, how are you adding disk space? ISCSI? Adding another hard drive?

Can you provide the output of the following?
df- h; fdisk -l; pvs; vgs; lvs

Open in new window

0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 125 total points
ID: 40305727
lsof +L1
will show deleted files that are still open, most likely thanks to faulty log rotation scripts.
0
 
LVL 1

Assisted Solution

by:Orcatec Operations Team
Orcatec Operations Team earned 125 total points
ID: 40305877
Another good tool is find.

Jump to / and run 'find . -size +100M'
This will tell you any files over 100MB in size.

You can adjust that value to whatever you need.
Sometimes we have java dump the RAM into /tmp on a crash and we will find a 4-8GB file there.

You may find some logs that aren't getting cleaned up properly.

Anyway, hope this helps, and for the record, I agree with Brad Groux, up there.
If it were me I would either add volume mounts and migrate data, or migrate the whole system.

You *can* expand, depending on how your volume and partition are setup, but RHEL 5 is old enough, where I wouldn't try it.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now