NFS Services Administrator's Guide (762805-001, March 2014)
Table 14 CacheFS Resource Parameters (continued)
Default ValueCacheFS Resource Parameter
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
where:
cacheID
Specifies the name of the cache filesystem.
all
Specifies that all cached filesystems in the cache-directory are to be deleted.
cache-directory
Specifies the name of the cache directory where the cache resides.
NOTE: The cache directory must not be in use when attempting to delete a cached filesystem or
the cache directory.
To delete the cache directory, follow these steps:
1. To identify the Cache ID of each of the cached filesystems, enter the following command:
cfsadmin -l cache-directory
An output similar to the following is displayed:
cfsadmin: list cache FS information
maxblocks 90%
minblocks 0%
threshblocks 85%
maxfiles 91%
minfiles 0%
threshfiles 85%
maxfilesize 3MB
srv01:_tmp:_mnt
srv01:_tmp:_mnt1
At the end of the output, the Cache IDs of all the cached filesystems that are using this cache
directory are displayed. In this example, the/tmp directory of srv01 is mounted on mnt and
mnt1.
2. To list the CacheFS mount-points that are using the cache directory, enter the following
command:
Configuring and administering CacheFS 91