Re: logrotate lastlog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 24 Jan 2003 09:26:58 -0600, Mike Vanecek wrote:

> > > The /var/log/lastlog file on my RH 8 install seems to be growing
> > > without limit.
> > 
> > Really? How large is it? Run
> > 
> >   du -h /var/log/lastlog
> >   
> > to find out.
>
> I moved it last night until I had time to check it out.
> 
> [admin@www admin]$ ls -alh /var/log/last*
> -r--------    1 root     root         143K Jan 24 07:59
> /var/log/lastlog-r--------    1 root     root          18M Jan 23
> 20:22 /var/log/lastlog.1
> 
> [admin@www admin]$ du -h /var/log/lastlog.1
> 48K     /var/log/lastlog.1
> 
> [admin@www admin]$ du -h /var/log/lastlog
> 12K     /var/log/lastlog
> 
> Somehow 48K <> 18M  and 143K <> 12K; sorta inconsistent?
> 
> Which is correct?

"du" is, because lastlog is a file with sparse blocks.

> Notwithstanding this difference, where in the logrotate scheme of
> things does lastlog get rotated?

It is not rotated.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+MXlD0iMVcrivHFQRAl5lAJ4lWacogGCoiD6sP5wD0g3vl1ItgQCdEGbN
90RiDDBRW4UkVs44OzghzRs=
=beAe
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux