[Novalug] another more or less trivial question for a tech session.

Tom Rhodes trhodes at FreeBSD.org
Thu Jan 3 19:10:12 EST 2008


On Thu, 03 Jan 2008 11:09:28 -0500
Nino Pereira <pereira at speakeasy.net> wrote:

> Hi, to all you gurus:
> 
> here's another problem, of the type that can hang you up forever
> until you hear the solution from an expert: what to do when you have
> 'not enough space left on device'.
> 
> When I update and upgrade, all the space in /var is eaten up somehow,
> taken up. df gives:
> 
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1              5044156    218240   4569684   5% /
> tmpfs                   518356         0    518356   0% /lib/init/rw
> udev                     10240      1532      8708  15% /dev
> tmpfs                   518356         4    518352   1% /dev/shm
> /dev/hda6              1011928   1007600         0 100% /var
> /dev/hda5              1011928     26356    934168   3% /tmp
> /dev/hda7             10080488   4455172   5113248  47% /usr
> /dev/hda8             10080488    413752   9154668   5% /opt
> /dev/hda9             40321996  10736080  27537632  29% /home
> /dev/hda10            46538796     69492  46469304   1% /scratch
> 
> But, /opt is almost empty. The two questions that come up are:
> 1: where did all the space go? and how do you find this out; and
> 2: how do you give /var more space?

The du(1) command is your friend for finding used blocks.

For certain directories, I've created symlinks on to larger
file systems.

ls -al can give you more information about files and directores.

-- 
Tom Rhodes


More information about the Novalug mailing list