The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #10 (permalink)  
Old 11-18-2008
shockneck's Avatar
shockneck shockneck is offline Forum Advisor  
No RISC - No Fun
  
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 355
Quote:
Originally Posted by bbbngowc View Post
[...]There is a file there wmtp that was 440MB. I compressed that file and that dropped the disk usage to 40%. [...]
Hm.... you did look up what this file is for before compressing it, did'nt you?

[Basic AIX administration on]
If you don't want to keep the information who logged when into your server delete that (i.e. this very) compressed wtmp file. Next time you want to reduce its size use the following commands:

Code:
# /usr/lib/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp.asc
# tail -1000 /tmp/wtmp.asc > /tmp/wtmp.1000
# /usr/lib/acct/fwtmp -ci < /tmp/wtmp.1000 >/var/adm/wtmp

This works online and wtmp history should go back about few days then only (depends on how many logins per day took place). If you want to blank it use
Code:
# > /var/adm/wtmp

But better not compress it while it is in use. (And don't delete a wtmp file that is in use neither!)
[Basic AIX administration off]

Do you happen to have a serial console connected to your server? In that case you might suffer from a wrong cable, wrong ASCII terminal or wrong tty settings. Reason then could be that an open to the /dev/tty via HW handshake is not satisfied such causing the hang when you reach Multi-User initialization completed.