3
I ran out of disk space the other day (quite common on this particular computer). As usual I started to delete files and directories to restore a bit of space.
However this time the file system still reports that I don't have any disk space available.
Here's what df reports:
replicant:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 687G 672G 0 100% /
tmpfs 250M 0 250M 0% /lib/init/rw
udev 10M 716K 9.4M 7% /dev
tmpfs 250M 0 250M 0% /dev/shm
overflow 1.0M 1.0M 0 100% /tmp
If I'm calculating this right I should have approximately 15GB available on /
. Can anyone explain this to me? It's not just df
calculating this incorrectly because I can't create files or anything on the file system.
I'm running ext3 on Debian 5.0.
Wow, now I got some space back but not all. What does this mean? Is there som process that is taking up space on my hdd? – Fred Asp – 2011-07-20T13:43:24.743
If you used the
tune2fs -m 2 /dev/md1
command, it just means that there is still2%
of the space on your disk reserved forroot
. Since you don't have an independent/var
partition, I wouldn't recommend going below this value as your system needs to be able to write to/var
for logging and other purposes - hence the reserved space. – Mike Insch – 2011-07-20T13:45:52.960How should I interpret my situation? That the system have 14GB reserved? Sound very much to me. Is it some program somewhere that is having very large files? Is there anything else I could do to see what the actual problem is? – Fred Asp – 2011-07-20T13:54:40.027
1Yes, your system has
13.74GB
space reserved (2%
of687GB
). This is not a fault with the system, it is by design and completely intentional. You may get away withtune2fs -m 1 /dev/md1
, which will reduce this overhead to6.87GB
, but that is a bare minimum. It's very important that you do not set the reserved space to zero, as this will lead to guaranteed filesystem corruption the next time you run out of disk space. – Mike Insch – 2011-07-20T14:15:18.610Thanks you a whole bunch for these answers. I can tell, I need more studying on this subject. – Fred Asp – 2011-07-21T05:36:46.507
Another benefit to the 14 GB reserve is that it reduces fragmentation. Ext3 isn't the best FS when it comes to fragmentation, and with 98% of disk in use you already have quite some. The fragmentation you'd get at 99% full would be quite bad. – MSalters – 2011-07-21T13:10:19.437