Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2012 18:01:07 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        jos@webrz.net, matthew@freebsd.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NewSysLog | Crontab
Message-ID:  <201205262301.q4QN17U0083826@mail.r-bonomi.com>
In-Reply-To: <4FC14259.4020904@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org  Sat May 26 15:55:21 2012
> Date: Sat, 26 May 2012 21:51:37 +0100
> From: Matthew Seaman <matthew@freebsd.org>
> To: Jos Chrispijn <jos@webrz.net>
> Cc: freebsd-questions@freebsd.org
> Subject: Re: NewSysLog | Crontab
>
> On 26/05/2012 18:41, Jos Chrispijn wrote:
> > Thanks, will investigate this...
>
> Keeping the list in the loop...
>
> > % df -ih /var/log
> > 
> > Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
> > /dev/ada0p2 453G 5.8G 411G 1% 468k 29M 2% /
>
> One big partition for the whole OS?
>
> > % ls -laoR /var/log
> > 
> > total 448
> > drwxr-xr-x   5 root    wheel    -  1024 May 26 00:00 .
> > drwxr-xr-x  23 root    wheel    -   512 May 17 19:57 ..
> > drwx------   2 root    wheel    -   512 May 22 23:30 .spamassassin
> > -rw-r--r--   1 root    wheel    -     1 May 23 16:04 Minimalist.log
> > -rw-------   1 root    wheel    -    60 May 26 00:00 all.log
> > -rw-------   1 root    wheel    -    14 May 26 00:00 all.log.0.bz2
> > -rw-------   1 root    wheel    -    14 May 25 00:00 all.log.2.bz2
> > -rw-------   1 root    wheel    -    14 May 24 00:00 all.log.4.bz2
> > -rw-------   1 root    wheel    -    14 May 23 00:00 all.log.6.bz2
>
> Oooh, fun.  None of the obvious ideas were right, and this is looking
> really quite mysterious.  You've only got even numbered versions of
> all.log backups, but they are spaced 1 day apart, which is the usual
> recycle timing for all.log.

This is a clear-cut indication of _two_ processes running that rotate
the logfiles.  The first process to run works, and the second one 
bitches and moans, and -quits- (with the error shown about not being
able to find the file original file to compress) *after* having rened 
the 1st back-up to the 2nd name.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205262301.q4QN17U0083826>