Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
Re: [SLE] Suse 7.2 eating disk space
  • From: Dave Smith <Dave.Smith@xxxxxx>
  • Date: Wed, 3 Apr 2002 12:34:06 +0100
  • Message-id: <20020403113406.GO8530@xxxxxxxxxxxxxx>
On Wed, Apr 03, 2002 at 12:53:08PM +0200, php@xxxxxxxxxxxxx wrote:
> Hi,
> Thanks for both those replies.
>
> Thing I notice in /var/log are ENORMOUS messages files, one for
> messages-20020403 which is 952,635,392 bytes and one for messages which is
> 1,204,610,852 bytes.
>
> I"ve looked at the tail of the first one, the last 100 lines of which are
> all errors about how there's no more space - an interesting catch-22 if you
> ask me.
>
> The head 100 seem to be rather benign.
>
> I'd like to delete what's here to free up some space and then work later,
> once there's some disk space left, to isolate the problem and unverbose
> whatever's yacking so much to the message file.
>
> Next question is, and remember I'm pretty poor at all this, if I rm these
> files, will the world end?

No, but you shouldn't rm them. If you want to zero their contents, you
should:
cat /dev/null > /var/log/messages
etc.

However, I would look at the file first. I suggest running 'less' on the
file, since it is a good pager. It allows you to move to the end of the
file ('>'), then reverse search ('?') for a line *not* containing ('!')
a particular string. This should help you skip backwards past the
disk space errors.

If you have enough space (!), you could run 'bzip2' on the messages-20020403
file, since that should reduce its size significantly, and give you some
working room. Of course, you will need enough space to hold both the
compressed and uncompressed versions simultaneously for a short period.
If you have separated your filesystem into different partitions, you could
put the zipped version on a different partition, since there should be
space on any partition which doesn't contain /var/log.

HTH...

PS: you don't need to quote as much as you did - particularly the whole
list welcome message and FAQ!!

--
David Smith | Tel: +44 (0)1454 462380 Home: +44 (0)1454 616963
STMicroelectronics | Fax: +44 (0)1454 617910 Mobile: +44 (0)7932 642724
1000 Aztec West | TINA: 065 2380
Almondsbury | Work Email: Dave.Smith@xxxxxx
BRISTOL, BS32 4SQ | Home Email: David.Smith@xxxxxxxxxxxxxxxxxxxx

< Previous Next >
Follow Ups
References