Re: logrotate lastlog

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

 



On Fri, 24 Jan 2003, Mike Vanecek wrote:

> ---------- Original Message -----------
> From: Michael Schwendt <ms0301rh@arcor.de>
> To: psyche-list@redhat.com
> Sent: Fri, 24 Jan 2003 12:14:51 +0100
> Subject: Re: logrotate lastlog
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On Thu, 23 Jan 2003 19:25:18 -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.
> ------- End of Original Message -------
> 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?

Both are :) The lastlog file is full of holes (which don't take actual
diskspace at all) due to its file format. Basically it means:
- the file's largest offset is at ~18 MB
- the real disk space taken by it is 12KB

-- 
	- Panu -



-- 
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