Solved

Ubuntu using 100% disk space but I can only find 9.5GB

Posted on 2010-09-17
5
606 Views
Last Modified: 2012-05-10
I have an Ubuntu x64 9.10 server without a GUI and it's completely out of disk space. I've used all of the conventional methods for locating the problems files/directories and I can only find 9.5GB out of 250GB being used. Running a du -hca / plus some other commands I've found all find the same tiny amount of data usage.

The server is running MySQL / Apache with a heavy MySQL database but the database and logs only uses about 6.5GB of space.
0
Comment
Question by:Britt Thompson
[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
  • 3
5 Comments
 
LVL 78

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 33700115
run df -k
You might have partitioned the system such that it only allocated a low amount of disk space to the OS and you have free space on the hard drive.
Or you have 10GB allocated to / and the rest to /home/, /var/lib/mysql or /db etc.

fdisk -l /dev/hda
or /dev/sda
etc.
0
 
LVL 30

Author Comment

by:Britt Thompson
ID: 33700240
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/oasis-root
                     229698772 220714364         0 100% /
udev                   2026528       184   2026344   1% /dev
none                   2026528         0   2026528   0% /dev/shm
none                   2026528        40   2026488   1% /var/run
none                   2026528         0   2026528   0% /var/lock
none                   2026528         0   2026528   0% /lib/init/rw
/dev/sda5               233335     43774    177113  20% /boot


Definitely just / that's full here
0
 
LVL 9

Accepted Solution

by:
absx earned 250 total points
ID: 33700499
Hi,

Apparently the du can ignore files that are currently open in some process. This could be, say, a humongous log file if your DB server was misconfigured.

Try using the lsof command to view open files, as described in http://www.cyberciti.biz/tips/freebsd-why-command-df-and-du-reports-different-output.html.

- Jarkko
0
 
LVL 30

Author Comment

by:Britt Thompson
ID: 33701281
Ok...I ran the lsof and the tmp files are basically nothing. But, I do see a great deal of "(deleted)" files...how do I purge these files? Also, by chance, I see a directory I'd like to recover....how do I do that?

See my attached lsof. Thanks.
lsof.txt
0
 
LVL 30

Author Comment

by:Britt Thompson
ID: 33702048
I figured it out...I'm an idiot this time. I was excluding the directory where my external RAID is mounted and discovered the RAID wasn't mounted. A huge backup RAN to that directory filling up the hard drive.

I ran "du -chx" to determine that.

Thanks for the help...lsof is a nice one to know.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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