Re: logrotate lastlog

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

 



---------- Original Message -----------
From: Panu Matilainen <pmatilai@welho.com>
To: psyche-list@redhat.com
Sent: Sat, 25 Jan 2003 17:53:49 +0200 (EET)
Subject: Re: logrotate lastlog

> 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
> > 
> > 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
> 
------- End of Original Message -------

My thanks to both you and Michael. I have read tons of manuals and installed
many versions of RH and never knew that. Very nice to know!

Mike.




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