Wednesday, May 6, 2009

Fixing a full var file system

Here I listed some of the ways to fix a var file system.

Step 1:

Check for the large files that might be removed in the /var directory using the find command.

Step 2:

Check the /var/adm/wtmp for the logs of all logins, remote logins. If needed copy the contents of this file and clear it.
#cp /dev/null /var/adm/wtmp

Step 3:

Then clear the error log. Do not use the /dev/null file to clear the error log. Use the following procedure to clear the error log var/adm/ras.

#/usr/lib/errstop

#rm /var/adm/ras/errlog

#/usr/lib/errdemon

Step 4:

If /var/adm/ras/trcfile file is large and the trace is not currently running, we can remove it by

#rm /var/adm/ras/trcfile

Step 5:

Clear the vmcore files from the /var/adm/ras directory

Step 6:

Clear the queueing subsystem files from the /var/spool directory.

Step 7:

Check the /var/preserve directory for terminated vi sessions. It is safety to remove these files.

No comments:

Post a Comment