NFS Services Administrator's Guide (B.11.31.03) August 2008
/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 121).
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 4-1 lists the various resource parameters and their default values.
Table 4-1 CacheFS Resource Parameters
Default ValueCacheFS Resource Parameter
90maxblocks
0minblocks
85threshblocks
90maxfiles
0minfiles
85threshfiles
For more information on the resource parameters, see cfsadmin(1M).
You can update the resource parameters using the -u option of the cfsadmin
command.
NOTE: All filesystems in the cache directory must be unmounted when you use the
-u option. Changes will be effective the next time you mount any filesystem in the
specified cache directory.
For example, to update the resource parameter, maxblocks, you must first create the
cache, and then modify the parameter as follows:
cfsadmin -c /cache
cfsadmin -u -o maxblocks=95 /cache
This updates the value of maxblocks from 90 which is the default value to 95.
Deleting a Cache Directory
To delete a cache directory that is no longer required you must use the cfsadmin
command. The syntax to delete the cache directory is as follows:
cfsadmin -d {cacheID | all} cache-directory
122 Configuring and Administering a Cache Filesystem