NFS Services Administrator's Guide

Configuring the Cache File System (CacheFS)
Configuring CacheFS
Chapter 3 141
To Configure a Local File System as Cache
1. If necessary, configure and mount the HFS file system, the front file
system, on the client system where data will be cached. See the
HP-UX System Administration Tasks manual for more information.
No special disk partitioning is necessary for creating a CacheFS
front file system. If you already have a mounted file system with
sufficient disk space for caching your NFS file systems, you can
create a subdirectory in the existing file system to use for your
CacheFS front file system.
2. Become root user.
3. Create a CacheFS directory with the data structures necessary to
allow a CacheFS mount, by typing the following command:
/usr/sbin/cfsadmin -c /cache_directory
For example, if you had a mounted file system called /disk2, you
could create a CacheFS directory called /disk2/cache with the
following command:
/usr/sbin/cfsadmin -c /disk2/cache
CacheFS manages its resources most effectively in cases where the
entire front file system is dedicated to caching, or in cases where the
non-cache portions of the front file system are static, read-only files.
CacheFS allows more than one file system to be cached in the same
cache. There is no need to create a separate cache directory for each
CacheFS mount. In typical usage, you need to run cfsadmin -c only
once to create a single cache for all of your CacheFS mounts.
For more information, type man 1M cfsadmin at the HP-UX prompt.