NFS Services Administrator's Guide
Configuring the Cache File System (CacheFS)
Configuring CacheFS
Chapter 3 143
To Automount a File System Using CacheFS
Before you can automount an NFS file system with CacheFS, you must
configure a directory in a local file system as cache. See “To Configure a
Local File System as Cache” on page 141.
1. Add a line for the automounted file system to the appropriate
automounter direct or indirect map, as in the following examples:
# direct map example:
/usr/dist -ro,nosuid,fstype=cachefs,backfstype=nfs, \
cachedir=/disk2/cache distserver:/export/dist
# indirect map example:
proj1 -nosuid,fstype=cachefs,backfstype=nfs,\
cachedir=/disk2/cache \
/src testbox1:/export/proj1/src
/data testbox2:/export/proj1/data
2. If you modified a direct map or the automounter master map, (Step 1
instructs users to edit direct map. When did or would users edit
master map?) issue the following command, on each NFS client that
will use the map, to force AutoFS to reread its maps:
/usr/sbin/automount
You can specify caching in an NIS automounter map only if all clients
who will use the map have their caching directory set up in the same
location (/disk2/cache, in the examples).
For more information, type man 1M automount at the HP-UX prompt.
• cachefsstat shows information, gathered from the cache, about a
specific file system or all cached file systems.