[Novalug] another more or less trivial question for a tech session.
David A. Cafaro
dac@cafaro.net
Thu Jan 3 11:25:44 EST 2008
What kind of system is this (debian, redhat/fedora, etc..). You
might need to clean out some old install header files or cached
packages in addition to old log files.
Also go to the /var directory and run "du -hs *" to see what
directories are taking up the most space.
As a quick fix to get more space for var given you don't appear to be
running LVM, you can create symlinks to to opt.
Example have /var/cache be a symlink to /opt/var/cache so that space
is saved on the /var partition and moved to the /opt partition.
On my cento 3 system /var/cache uses the most pace on /var at 1.1GB
of storage used.
Cheers,
David
On Jan 3, 2008, at 11:09 AM, 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@calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
David A. Cafaro <dac@cafaro.net>
Cafaro's Ramblings: www.cafaro.net
More information about the Novalug
mailing list