3
I have run "df -kh" on my FreeBSD box and I see that /var is near 100% full. It was over but I have trimmed what I can but there is less then 500MB total on the partition according to running "du -ksh *" while in /var. The /var partition itself is 6.8G and it now says it only has 18M free. It just does not add up.
I run the following command I do not find any culprits.
find . -type f -size +2000 -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
I even drill down folder by folder using "du -ksh *" to identify the folders with lots of disk usage but I cannot find how it all adds up. I would like to compress, delete or move files in order to free up more space since the other partitions have space, but between df and du I cannot seem to find what is using all the disk space.
What else should I do to find the files and folders taking up all the space?
What file system is /var? They don't all release delete file space immediately. Also, all files will get rounded to the nearest block size so
ls
won't report disk space used - for lots of small files this can add up. Do you have spare capacity to just create a bigger /var? – Paul – 2012-01-12T00:27:22.427du should still show the amount of disk usage accurately even if ls does not on an individual folder. If I could identify where the disk usage is so heavy I could remedy it. – Brennan Stehling – 2012-01-12T01:23:47.047
Sure - provided your blocks are 1K du should work with those parameters. Any chance there is a
.*
file in the root of /var? – Paul – 2012-01-12T02:22:38.040