Если ругается last
hpux-0097:/root# last Invalid record size. Unable to continue ...
Нужно выполнить
dd if=/dev/null of=/var/adm/wtmps
Получим
[root@hpux-0097 ~]# dd if=/dev/null of=/var/adm/wtmps 0+0 records in 0+0 records out [root@hpux-0097 ~]# last
WTMPS_FILE begins at Thu Jan 1 02:59:59