Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to identify why, suddenly, 100% of our disk space is in use. I have already rebooted but the issue persists.

Here are the outputs of some commands that are showing some strange (for me) results:

danny@hydrogen:~$ df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p1     130G  122G  949M 100% /
none                  1.9G  196K  1.9G   1% /dev
none                  2.0G     0  2.0G   0% /dev/shm
none                  2.0G   40K  2.0G   1% /var/run
none                  2.0G     0  2.0G   0% /var/lock
none                  2.0G     0  2.0G   0% /lib/init/rw

danny@hydrogen:/$ sudo du -chs /

du: cannot access `/proc/1662/task/1662/fd/4': No such file or directory
du: cannot access `/proc/1662/task/1662/fdinfo/4': No such file or directory
du: cannot access `/proc/1662/fd/4': No such file or directory
du: cannot access `/proc/1662/fdinfo/4': No such file or directory

danny@hydrogen:/$ df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/cciss/c0d0p1    135342296 128144108    323104 100% /
none                   1991336       196   1991140   1% /dev
none                   1995788         0   1995788   0% /dev/shm
none                   1995788        40   1995748   1% /var/run
none                   1995788         0   1995788   0% /var/lock
none                   1995788         0   1995788   0% /lib/init/rw

danny@hydrogen:/$ mount

/dev/cciss/c0d0p1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)

danny@hydrogen:/$ sudo du -h --max-depth=1

634M    ./premvet_sync
5.6M    ./etc
4.0K    ./opt
16K ./lost+found
7.4M    ./bin
623M    ./lib
196K    ./dev
0   ./sys
4.0K    ./srv
4.0K    ./cdrom
8.0K    ./media
52K ./tmp
... it hangs for ages here.....

The server is running Ubuntu 10.04.4 LTS.

System load:  2.85                Temperature:         8 C
Usage of /:   94.7% of 129.07GB   Processes:           132
Memory usage: 39%                 Users logged in:     0
Swap usage:   0%                  IP address for eth0: 192.168.1.124

=> / is using 94.7% of 129.07GB

I'm struggling to comprehend why this is happening! Any pointers would be appreciated.

share|improve this question
    
Have you tried looking for the logfiles? I remember I had my KVM switch and wireless keyboard not playing nice together after a reboot which caused a logfile to grow and filling up all the space (after two days). Replugging the device helped. May be different for your server, but hopefully gives you a hint. –  LiveWireBT Oct 8 '12 at 21:01
add comment

1 Answer

up vote 3 down vote accepted

As default there are 10% of your disk space reserved for the root user. You can change that using sudo tune2fs -m %percentage %device. In your case that would be sudo tune2fs -m 1 /dev/cciss/c0d0p1 for reducing the reservation to 1%. You can set it to any other number you like but I would not recommend 0%.

share|improve this answer
    
Is the 'sudo du -chs /' results anything to worry about? –  dannymcc Oct 8 '12 at 9:25
    
I don't know but if you don't have any other problems I wouldn't mind ;-) –  André Stannek Oct 8 '12 at 9:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.