Chapter 7. Maintaining XFS File Systems

Table of Contents
7.1. Performing Routine File System Administration Tasks
7.2. Mounting and Unmounting File Systems
7.3. Managing Disk Space
7.4. Adding File System Space
7.5. Copying XFS File Systems with xfs_copy
7.6. Checking XFS File System Consistency with xfs_check and xfs_repair
7.7. Repairing XFS File System Problems
7.8. Running xfs_repair on the Root File System
7.9. (Deferred implementation) Reorganizing File Systems
7.10. Avoiding File System Corruption

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.

7.1. Performing Routine File System Administration Tasks

To administer file systems, you need to do the following tasks:

Many routine administration jobs can be performed by shell scripts. Here are a few ideas:

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.