NFS Services Administrator's Guide

Configuring and Administering a Cache Filesystem
Configuring CacheFS
Chapter 4152
Configuring Cache in a Local Filesystem
This section describes how to configure a local filesystem as cache. To
configure a local filesystem as a cache, follow these steps:
1. Log in as superuser.
2. If necessary, configure and mount a new HFS or VxFS filesystem to
be used as the front filesystem where data will be cached.
For more information about filesystems, see HP-UX System
Administrator’s Guide (5991-7436).
NOTE No special disk partitioning is necessary for creating a front
filesystem. If the mounted filesystem has sufficient disk space for
caching the NFS filesystems, you can create a cache directory in the
existing filesystem to be used as the front filesystem.
3. Create a cache directory by entering the following command:
cfsadmin -c
cache_directory
For example, if you mounted an HFS or a VxFS filesystem called
/disk2, you can create a CacheFS directory called /disk2/cache
using the following command:
cfsadmin -c /disk2/cache
CacheFS manages its resources optimally if the entire front filesystem is
dedicated to caching, or in cases where the non-cache portions of the
front filesystem are static read-only files.
CacheFS allows more than one filesystem to be cached in the same cache.
You need not create a separate cache directory for each CacheFS mount.
Normally, you need to run cfsadmin -c only once to create a single cache
for all the CacheFS mounts.