Re: var is full...
On Wed 18 Nov 2015 at 09:08:35 -0500, Whit Hansell wrote:
> my Var directory is 100% full. I have googled abouit it and reallly haven't
> gotten a decent idea of what I can safely delete from var. I have bot tmp
> and cache subdirectories and can easily fump the tmp but it is very small
> and won't really give me much room. Can anyone with knowledge give me the
> subdirectories in var/cache that I can empty to get a reasonable amount of
> free space? Running Jessie on an amd64 box.
To remove all apt/archives packages older than the present versions:
apt-get autoclean
Add -s to see beforehand what space would be freed.
To remove every package and the package lists in apt/archives:
apt-get clean.
The package lists will be regenerated at the next 'apt-get update'.
What is the size of /var? ('df -h' tells you this). Which directories
use most space. ('du -h /var/<dir> for that).
> I have run into this problem for the last three installs. I always use the
> basic linuc installer recommends for var size and it is always too darn
> small. In the past I have enlarged the partidtion/directory using gparted
> to move free space but it is a total pita and the last time it left the
> drive w. some open space just hanging out that I could not get put into the
> directoies. That did not affect the operation but left the drive in a way
> that was sloppily set up.
Some people have very good reasons for a separate /var. Do you? If not,
go for single / partition; it makes life simpler.
> And how much of the var/log files can I adjust? Those files are pretty
> large and would give me more time before I woulod have to do it agian.
I'd leave them alone.
Reply to: