On 01/26/2011 12:36 AM, Linuxinlennox wrote:
>
> Hi All! After my system would not boot to user i could only access root
> and got the message
> -The volume “filesystems root” has 0 disk space remaining. Free up
> space by removing unused files or or move to another disk partition.-
> I have seen this before in my home partition and i just deleted and
> moved the files to solve the problem.
> In this case, looking at the disk usage analyser in root, i could see
> the critical area (red zone) was in the root in a directory folder
> called ‘log’ within a folder called ‘var’. This area is out of my depth.
> I need to know what is deletable in this folder? There are many text
> files with error messages, warnings, info and logs there. they appear to
> have been directed there and have reached a critical mass. Are they safe
> to delete? There are a couple of text/plain files that are massive (50.7
> GB) one titled -messages-20101027-, there are some more of similar
> size. Can i trash these?
> Sorry if this sounds too simple. Way out of my depth here in root.
>
> Thank you
>
>
the others have address how to manage space in /var and /tmp but i
think it is important to realize that those areas being so bloated is
not the problem, but rather a symptom of the problem…
when you could no longer log in as yourself that was a symptom of
the problem (disk almost full), you did NOT fix that problem by
beginning to log in as root, instead you avoided the symptom of the
too full problem by beginning to fill the 5% of space reserved only
for root…
reserved so you could, as root, fix the too full problem…
but you didn’t do that, instead with the symptom of the problem out of
site you assumed the problem was gone…but, as you see it was not…
[please don’t take this a saying you did bad, instead i know it is
simply because you didn’t know–and THAT is why i write…it is up to
you to stick with it and learn…]
now, you can attack the apparent problem (reduce drive space used) in
several ways:
or, you can realize that huge logs is not the problem, instead it is
the symptom of the problem…there are several ways to do that:
-
or just change logrotate so the logs are dumped in the waste more
often (or rolled up into smaller archive files more often) and you
will have again hidden a symptom
-
what is filling your log? find that (those?) problem(s?) and solve
it (them)…
the choice is yours, find and solve the problem(s) or just continue to
deal with the symptoms the problems cause…
–
DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 11.3, KDE4.4.4
release 3, Thunderbird3.0.11,]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11