[CentOS] Size of /var/log/lastlog
hyclak at math.ohiou.edu
Sun Nov 6 22:00:04 UTC 2005
On Sun, Nov 06, 2005 at 04:16:21PM -0500, Sam Drinkard enlightened us:
> > Hi,
> > Can any of you explain this weirdness:
> > [root at machine log]# cd /var/log/
> > [root at machine log]# ls -la|grep last
> > -r-------- 1 root root 1254130450140 Nov 6 21:44 lastlog
> > [root at machine log]# du -hs lastlog
> > 52K lastlog
> > What's up with the output of ls? This is x86_64.
> > Thanks,
> > Morten
> There was a thread about this some time back.. you can safely delete the
> file, then touch the filename and all will be well. There also was, I
> believe, a bugzilla about it somewhere upstream.
There have been a couple. The deal is that lastlog is a sparse file that is
indexed by UID. On an x86_64 system, UIDs are 32-bit, which means a 1.2TB
file, but because it's sparse, it doesn't actually take up any disk space.
There is some explanation here:
Or you can search bugzilla for lastlog.
Department of Mathematics
Department of Social Work
More information about the CentOS