- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- last : Invalid record size. Unable to continue .....
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
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
тАО10-23-2006 02:17 AM
тАО10-23-2006 02:17 AM
I have this error message when I use "last" command :
#last
Invalid record size. Unable to continue ...
#
Someone can help me ?
Thanks,
Solved! Go to Solution.
- Tags:
- wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2006 02:21 AM
тАО10-23-2006 02:21 AM
Re: last : Invalid record size. Unable to continue ...
You hava a corrupted '/var/adm/wtmp' file. This happens from time to time.
If you don't want any of its contents, do:
# cat /dev/null > ?var/adm/wtmp
If, on the other hand, you want to repair the file, retaining as much of its data as possible, do:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
At this point, you may edit the /tmp/wtmp file, since it is a ASCII file.
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2006 02:30 AM
тАО10-23-2006 02:30 AM
Solutionand if you happen to be running 11.23:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943509
mentions PHCO_33239
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2006 02:31 AM
тАО10-23-2006 02:31 AM
Re: last : Invalid record size. Unable to continue ...
I have performed :
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
I can read /tmp/wtmp file but last command still doesn't work...
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2006 02:35 AM
тАО10-23-2006 02:35 AM
Re: last : Invalid record size. Unable to continue ...
The whole idea of converting the 'wtmp' file from its binary form to an Ascii one is to edit the Ascii version. Having done that, you convert it back to its binary format and overwrite the original file.
If you want to try to preserve your 'wtmp' file perform the editting I suggested, otherwise null the file.
The thread Peter cites discusses some changes if you are running 11.23.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2006 03:04 AM
тАО10-23-2006 03:04 AM
Re: last : Invalid record size. Unable to continue ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2014 02:45 AM
тАО01-29-2014 02:45 AM
Re: last : Invalid record size. Unable to continue ...
You may also try to fix 'wtmps' file...