Solved

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

Posted on 2010-09-17
5
598 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:renazonse
  • 3
5 Comments
 
LVL 76

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:renazonse
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:renazonse
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:renazonse
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 to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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