Check File System

Before you perform a file system expansion using the GUI’s File System Expansion option that runs cvupdatefs (journal moves or changes), a metadata backup should be available or a cvfsck is recommended. After these procedures, Quantum recommends you run cvfsck of the resulting file system.

When you use the GUI’s Add a Stripe Group or Offload a Stripe Group features (that run sgadd or sgoffload, respectively), you do not need to run cvfsck. When you use the GUI’sTools > File Systems > Migrate Data Migrate… option (which runs snfsdefrag), you do not need to run cvfsck.

When you migrate metadata by any method, Quantum recommends you run cvfsck AFTER the migration completes. Contact Quantum Support if any required metadata updates are reported by cvfsck BEFORE you apply them.

For detailed cvfsck output, including histograms, progress updates, and improved performance, run cvfsck from the CLI. For maximum performance, first run cvfsck -q <file system name> to determine how much RAM running cvfsck consumes if passed the -F option.

Note: cvfsck -q runs very quickly and does not require that you stop the file system.

Next, check how much system RAM is available with free -h. If you have sufficient available RAM, run cvfsck with the -F option to speed up the check. The use of -m4g (metadata cache) and -T /usr/adic/HAM/shared (temporary file location) is also recommended, though the fastest file system (that’s not the one being checked) is recommended (which is often, but not always, the shared file system). The suggested command is therefore:

cvfsck -F -m4g -T /usr/adic/HAM/shared <file system name>

Other options, such as -v (for verbose output), can be passed to cvfsck as necessary. Be careful to not make the -m option too large (more than 4g is rarely necessary), as it contends for the memory being used by the -F option and might actually slow the check.

Also, cvfsck could consume a significant amount of space in /tmp (or, the file system specified with -T). Use cvfsk -q to get an estimate of the required space.

Certain file system maintenance tasks require an amount of free-unused disk space to allow the operation to be completed. For example these maintenance tasks could include:

Quantum recommends a small percentage of the file system in question should be kept free. Running at high levels of capacity may induce additional levels of fragmentation.

For pre-StorNext 5 file systems, Quantum strongly recommends you upgrade, as you may need additional space for these maintenance operations and upgrades.

For more information about file system expansion, refer to the StorNext online help.

There are two ways to check file systems:

When the file system is offline, you can run the check in either traditional mode or read-only mode. Read-only mode typically completes faster, but is not as thorough.

When the file system is active, you must run the check in read-only mode. The advantage of this method is that you don’t have to take the file system offline to run the check.

Note: Running a check on an active file system could result in false errors which occur because you are running the check while the file system is still running.

Whenever you run the check in read-only mode, Quantum strongly recommends also running the Recover Journal step before you check the file system. Running Recover Journal ensures that all operations have been committed to disk, and that the metadata state is up to date.

Regardless of which method you choose to check the file system, you should plan carefully when to run a file system check and plan accordingly.