- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: /var/log/lastlog - huge file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2008 06:44 PM
тАО07-02-2008 06:44 PM
I have a question. On my HP DL585 box running RH4, I could see huge file around 273GB - /var/log/lastlog. Whats causing this to so big ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2008 11:27 PM
тАО07-03-2008 11:27 PM
Re: /var/log/lastlog - huge file
# du -h /var/log/lastlog
This file contains sparse blocks, the real size is correctly reported with command above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2008 05:38 AM
тАО07-04-2008 05:38 AM
Re: /var/log/lastlog - huge file
You should ensure that the file is included in your "logrotate" configuration and that "logrotate" is enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2008 04:41 AM
тАО07-06-2008 04:41 AM
Re: /var/log/lastlog - huge file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2008 04:41 AM
тАО07-06-2008 04:41 AM
Re: /var/log/lastlog - huge file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2008 04:42 AM
тАО07-06-2008 04:42 AM
Re: /var/log/lastlog - huge file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2008 01:36 PM
тАО07-06-2008 01:36 PM
Solutionuid that is recorded in it. The offset into the file can be really huge
for a uid that is a small negative number such as 'nobody'. With a 64-bit
system that can make a file that seems to be a terabyte in size. The file
is actually sparse, taking up little room on disk. But any copy utility
will have a very hard time with it because there is no way to seek to the
next non-zero block in such a file. The complete file will need to be
read to find the non-zero blocks. Clever commands such as cp can then
write the file out to a new location by seeking and creating a new sparse
file. But the full apparent size of the file will flood into the file
system buffer cache, pushing out more useful data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 12:36 AM
тАО07-09-2008 12:36 AM