NFS Services Administrator's Guide (B.11.31.03) August 2008
4. To delete the CacheFS filesystem corresponding to the Cache ID from the specified
cache directory, enter the following command:
cfsadmin -d CacheID cache-directory
5. To verify if the CacheFS filesystem is deleted, 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:_mnt1
In this example, the filesystem with CacheID srv01:_tmp:_mnt filesystem has
been deleted.
To delete a cache directory and all the CacheFS filesystems in that directory, enter the
following command:
cfsadmin -d all cache-directory
Using CacheFS
After the administrator has configured a cache directory and mounted or automounted
the CacheFS filesystem, you can use CacheFS as you would any other filesystem.
The first time you access data through CacheFS, an over-the-wire call is made to the
NFS server and the data is copied to your local cache. The first request is slow. However,
all subsequent accesses are faster as they are served from the local cache.
Displaying CacheFS Statistics
The cachefsstat command displays statistical information about the mounted cache
filesystem. This includes the number of cache hits, cache misses, consistency checks,
and modification operations, such as writes and creates. The cachefswssize command
displays the working set size. The working set size includes information on the amount
of cache space that each filesystem in a cache directory uses. It can also be used to
display the contents of the logfile. The logfile created when you enable logging is used
as an input to calculate the working set size.
Viewing the CacheFS Statistics
In the following example, /home/smh is the CacheFS mount-point. To view the CacheFS
statistics, enter the following command:
cachefsstat /home/smh
124 Configuring and Administering a Cache Filesystem