NFS Services Administrator's Guide (762805-001, March 2014)
Unmounting a Cache filesystem
To unmount a Cache filesystem, enter the following command:
umount mount-point
where:
mount-point
Specifies the CacheFS mount-point that you want to unmount.
Checking the integrity of a cache
You can use the fsck command to check the integrity of a cache. The CacheFS version of the
fsck command checks the integrity of the cache and automatically corrects any CacheFS problems
that it encounters. The CacheFS fsck command is run automatically by the mount command
when the cache directory is accessed for the first time after a system reboot. The command is run
either during system bootup if there is an entry in /etc/fstab, or the first time the cache directory
is referenced as part of the mount operation.
To manually check the integrity of a cache, enter the following command:
fsck_cachefs -F cachefs [-m | -o noclean]
cache-directory
where:
-m
Specifies that the cache must be checked without making any repairs.
noclean
Forces a check on the CacheFS filesystems.
cache-directory
Specifies the name of the directory where the cache resides.
The cache directory must not be in use while performing a cache integrity check using the fsck
command. To list the CacheFS mount-points that are using a specific cache directory, for example,
/disk2/cache, enter the following command:
mount | grep -w "cachedir=/disk2/cache" | awk '{print $1}
An output similar to the following is displayed if CacheFS mount-points are using the cache directory:
/cfs_mnt1
/cfs_mnt2
You must now unmount these mount-points before you check the integrity of a cache. For information
on how to unmount a cache mount-point, see “Unmounting a Cache filesystem” (page 90).
For more information on the fsck_cachefs command of CacheFS, see fsck_cachefs(1M).
Updating resource parameters
Each cache has a set of parameters that determines its structure and how it behaves. When a
cache directory is created, it gets created with default values for the resource parameters. Table 14
lists the various resource parameters and their default values.
Table 14 CacheFS Resource Parameters
Default ValueCacheFS Resource Parameter
90maxblocks
0minblocks
85threshblocks
90maxfiles
90 Configuring and administering a cache filesystem