Virtual TapeServer 6.04.04 for NonStop Servers Operations and Administration Guide

102 | Managing the VTS Server
Monitoring files and directories
The following files and directories should be monitored. Remove old data as needed.
Note For information about maintaining the file system in a GFS environment, see
Maintaining GFS for VTS on page 133.
Several directories store files that are generated on a regular basis. Files may accumulate in
the following directories:
/tmp Used for temporary files, this directory contains a variety of items including files,
fifos, and directories
/var/log
Contains system log files
/usr/local/tape/log
Contains VTS log files
/usr/local/tape/trace
Contains trace logs generated by some programs
/var/spool/mail
Contains user mail folders.
/var/spool/mqueue
Contains outbound mail
/var/spool/clientmqueue
Contains outbound mail not yet processed by the host’s MTA.
It is recommended that you monitor these directories and archive (or purge) old files as
needed. You can use several commands to help manage the directories:
To view the size of a directory, run the following command (as root):
du -sh /dir_path
To see the oldest files in the directory and their sizes, run this command (as root):
ls -alth /dir_path
The system facility, which is called logrotate, is used to rotate log files on a daily basis. The
configuration files for logrotate are located in /etc/logrotate.d. You can tune the settings in
this file to rotate and overwrite files as needed.
Several scripts are available that clean up after files that were created and abandoned due to
system or application errors. These include the following:
rmoldpipes
rmoldbylist
•rmoldsync
rmoldfilelist.pl
In addition, errors in processes such as cron can cause mail messages to accumulate in the
mail directories. If a mail transfer agent is configured and running on the VTS server but
forwarding for the root and bill accounts is not configured, mail can accumulate in the mail
folders.
Finally, if SecureVTS is enabled, the /var/log/te-server directory can accumulate files.