Weird log file size

Tino Schwarze linux-poweredge.lists at tisc.de
Fri Jul 6 02:13:22 CDT 2007


On Thu, Jul 05, 2007 at 11:24:53AM -0700, Ray Van Dolson wrote:

> > > I'm running a RHES4 64-bit on a Dell 1850. This may be more of a generic
> > > Linux issue, but I am running a pretty stock configuration from Dell, so
> > > I figured others might have seen something like this.
> > > 
> > > Any idea why I might see this?
> > > 
> > >       # ls -l /var/log/lastlog
> > >       -r--------  1 root root 1254130450140 Jul  4 17:26 /var/log/lastlog
> > 
> > An invalid file size is usually a sign of filesystem corruption. fsck
> > recommended!
> > 
> > > Could this be a 32bit/64bit issue? Perhaps some sort of integer overflow or
> > > misrepresentation. Maybe this version of `ls` does not behave well on 64-bit
> > > machines.
> > 
> > I don't think so...
> > 
> 
> I believe this is normal on a 64-bit system.

Oh, I see. To sum it up for the list: The lastlog file has 256 bytes for
each UID. It is a sparse file and the nfsnobody user has UID 2^32-2 on
64 bit systems.

To get the actual used space, use "du -H lastlog".

Bye,

Tino.

-- 
www.quantenfeuerwerk.de
www.spiritualdesign-chemnitz.de
www.lebensraum11.de

Tino Schwarze * Parkstraße 17h * 09120 Chemnitz



More information about the Linux-PowerEdge mailing list