Solved

Running out of diskspace on /

Posted on 2014-09-04
4
159 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu don’t allow SU command in terminal 7 126
Windows 10 linux VM 30 93
Cron job never runs on vCenter 6.5 appliance 7 35
Wordpress website with Centos 7 CWP 4 43
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…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

710 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