NFS Services Administrator's Guide (B.11.31.03) August 2008
You can unpack files that you no longer require, using one of the following methods:
• Using the -u option
To unpack a specific packed file or files from the cache directory, enter the following
command:
cachefspack -u filename
where:
-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
120 Configuring and Administering a Cache Filesystem