[BlueOnyx:09816] Re: / partition is getting full

Michael Stauber mstauber at blueonyx.it
Fri Mar 16 16:25:18 -05 2012


Hi Chris,

> I have a customer machine running 5108R with a / (root) partition that
> is getting full:
>
> Ideas of where to look / how to proceed are welcomed.

Yeah, this is a bit tricky. I wish the "tree" command would be more helpful 
here at finding such culprits. But with "du" it also works. It just takes much 
longer:

du --max-depth=1 -h /

That'll go through all first level directories on the filesystem and will 
print out the total disk usage in human readable form.

Once you know which first level directory takes up so much space (/var for 
example), take it another level down by running ...

du --max-depth=1 -h /var

... to see which subdirectory in /var takes so much space.

Typical culprits usually are:

If the users builds RPMs or uses Perl MCPAN to install Perl modules:
/root/.cpan/
/root/rpmbuild/

Or some dynamic data:
/var/cache/
/var/cache/yum

Obviously the logfiles:
/var/log/

But depending on what's installed it could be anything else.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list