Solved

Running out of diskspace on /

Posted on 2014-09-04
4
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 62

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

627 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