[ start | index | login ]
start > knowledgebase > linux > misc > where has my disk space gone

where has my disk space gone

Created by retep. Last edited by retep, 2 years and 62 days ago. Viewed 3,111 times. #4
[diff] [history] [edit] [rdf]
labels
attachments

Running Out of Disk Space?

Run

du -sm /*
. That will tell you how much space is used by each top level directory. Given the results from there, drill down to the next level. e.g. du -sm /var/*. Then drill down further e.g. du -sm /var/log/*.

Alternatively, run:

du -mxS / | sort -n | tail

That will drill down and find you the biggest few individual directories.

Common big users of space are log files that keep growing and aren't truncated/rotated (e.g. with logrotate).

/var/cache/apt/archives using up a lot of space? Run apt-get clean. That will clear out the rpm files that apt downloads when it installs new RPMs.

Nine times out of ten most (possibly reclaimable) space is used up under /var or /home. /usr will typically be largeish (a GB or two) but its contents are typically required to run your server. Don't mess with /proc.

If you need more disk space and you are on a RimuHosting VPS, just pop in a support ticket and let us know how much extra space you need.

no comments | post comment
Powered by snipsnap.org Found a mistake in a howto? Let us know via an email to p.blikibugs at rimuhosting com.