To recover from insufficient file system space errors, do the following:
The following example displays free space on /dev/hd3:
df -I /dev/hd3
The smit.log file contains detailed information of your SMIT sessions. The smit.script file contains task commands run by SMIT during your session with time stamps.
Before removing these files, you may want to copy them to tape. To copy the SMIT files to streaming tape, enter:
ls /smit.log /smit.script | backup -ivf /dev/rmt0
To copy the SMIT files to 9-track tape, enter:
ls /smit.log /smit.script | backup -ivf /dev/rmt0
The following example shows how to remove printer log files:
rm -f /usr/adm/lp-log rm -f /usr/adm/lv-log
The following example shows how to remove uucp log files:
rm -f /usr/spool/uucp/LOGFILE rm -f /usr/spool/uucp/SYSLOG rm -f /usr/spool/uucp/ERRLOG
The following example removes all *.bak,.*.bak, a.out, core, *, or ed.hup files:
find / ( -name "*.bak" -o -name core -o -name a.out -o -name "...*" -o -name ".*.bak" -o -name ed.hup ) -atime +1 -mtime +1 -type f -print | xargs -e rm -f
The wtmp file is a binary file. To edit it, you must convert it to ASCII as follows:
/usr/sbin/acct/fwtmp < /var/adm/wtmp > wtmp.new
Edit the wtmp.new file with a text editor and convert it back to binary as follows:
/usr/sbin/acct/fwtmp -ic < wtmp.new > /var/adm/wtmp
If it is not possible to delete files to create more space, you can increase the size of the file system. See "Managing File Systems" in the AIX Version 4.3 System Management Guide: Operating System and Devices for more information.
If you cannot find the solution to your problem in the command documentation, return to "Recovering from Software Errors".