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

greg pryzby greg at pryzby.org
Thu Jan 3 11:18:11 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You need to make sure there is a program cleaning up the var logs. be it
gzip or removing...

rm /var/log/*[2-9].gz as I don't really care about my older logs (flame
suit is on so I don't want to hear it!)

you can setup a script to watch file systems and mail u when it reaches
a threshold also

great questions

Nino Pereira 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?
> 
> On 2, I once made a soft link to something that's empty, like /opt.
> I suspect it's /opt/apt-archives, but, how do I find out whether there's
> a soft link to this directory?
> 
> Questions, questions...
> 
> Nino
> 
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug

- --
greg pryzby                              greg at pryzby dot org
fingerprint: 8A1A DB90 869F 5DD1 D6E9 EEB6 C156 6B04 849F A86F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfQrCwVZrBISfqG8RAjomAJ4xIk0yqvxWxXTT/LGor2ZOke57vQCfW4CX
X6O50XkZ9kVMHYZezAxtwvo=
=46Ac
-----END PGP SIGNATURE-----


More information about the Novalug mailing list