---------- Original Message -----------
From: Panu Matilainen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > 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
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list

Reply via email to