[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disk Full issue



On Mon, 14 Mar 2005 17:50:18 +0100, Jorge L. deLyra wrote:
>
> > Benedict Verheyen <benedict.verheyen@sjki.be> writes:
> >
> > I came in this Monday morning to find some problems on my debian
> > server because the disk is full.
> >
> > Filesystem           1K-blocks      Used Available Use% Mounted on
> > /dev/cciss/c0d0p1       256149    256149         0 100% / tmpfs
> >           453372         0    453372   0% /dev/shm
> > 
> 
> Look under the mount points. One way to search the root for the problem
> without descending into the other filesystems, and having the mount
> points of those filesystems uncovered by the mounts is this:
> 
> 1) Export the root to some other machine you trust by NFS, with root
>    access. I am _assuming_ you use the _kernel-based_NFS_server_.

I believe "du -x / | sort -nr | less" will accomplish the same thing, but
in a much simpler way, with no repeated calls necessary. No need for NFS.

This will give you a list of directories on the root filesystem, with the
biggest ones at the top. You can then descend into the offending directory
(or directories, but I would guess there is just one) and figure out which
are the offending files.

Good luck,

Reid



Reply to: