| UNICOS/mpTM Disks and File Systems Administration - S-2377-22 | ||
|---|---|---|
| Prev Section | Next Section | |
This chapter describes administration procedures for maintaining XFS file systems that you perform on a routine or as-needed basis. It is extremely important to maintain file systems properly, in addition to backing up the data they contain. Failure to do so might result in loss of valuable system and user information.
To administer file systems, you need to do the following tasks:
Monitor the amount of free space and free inodes available.
If a file system is chronically short of free space, take steps to alleviate the problem, such as removing old files and imposing disk usage quotas.
Back up file systems.
Many routine administration jobs can be performed by shell scripts. Here are a few ideas:
Use a shell script to investigate free blocks and free inodes, and report on file systems whose free space dips below a given threshold.
Use a shell script to automatically “clean up” files that grow (such as log files).
Use a shell script to highlight cases of excessive disk use.
These scripts can be run automatically with the cron command and the output can be sent to you using electronic mail. Typically, these scripts use some combination of the find, du, mail, and shell commands.
The process accounting system performs many similar functions. If the process accounting system does not meet your needs, examine the scripts in /usr/lib/acct, such as ckpacct and remove, for ideas about how to build your own administration scripts.
| Prev Section | Table of Contents | Title Page | Index | Next Section |
| Making an XFS File System | Up one level | Mounting and Unmounting File Systems |