NFS Services Administrator's Guide (B.11.31.05) September 2009
-u Specifies that certain files are to be unpacked.
filename Specifies the file to unpack.
• Using the -U option
To unpack all the packed files in the cache, enter the following command:
cachefspack -U cache-dir
where:
-U Specifies that you want to unpack all the packed files in the cache.
cache-dir Specifies the cache directory that is to be unpacked.
For more information about the cachefspack command, see cachefspack(1M).
Forcing a Cache Consistency Check
CacheFS periodically checks the consistency of files when a user attempts to access the file stored
in the cache. This ensures that the cached directories and files are up to date with the back
filesystem. To check consistency, CacheFS compares the time stamp of the cached file with the
time stamp of the corresponding file on the back filesystem. If CacheFS detects a time difference,
the cached data is purged, and the updated data is retrieved from the back filesystem. If you
have not accessed any files, checks are not performed. Use of this option does not result in a
sudden “storm” of consistency checks.
Forcing a Consistency Check for a Specific Mount-Point
By default, CacheFS verifies the consistency of the cached contents against the back filesystem
every 30 seconds. However, if you want to disable these automatic consistency checks and instead
perform manual consistency checks you can mount the CacheFS filesystem with the demandconst
option, and then use the cfsadmin command to force a consistency check. To force a consistency
check on a specific mount-point, enter the following command:
cfsadmin -s mount_point
IMPORTANT: The -s option works only if CacheFS is mounted with the demandconst option.
For information and an example on how to switch between mount options, see “Switching Mount
Options” (page 85)
Forcing a Consistency Check for all the Mount-Points
To request for a consistency check on all the mount-points, enter the following command:
cfsadmin -s all
For information on cfsadmin options, see cfsadmin(1M).
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
Configuring and Administering CacheFS 89