NFS Services Administrator's Guide

Configuring the Cache File System (CacheFS)
Configuring CacheFS
Chapter 3142
To Mount an NFS File System Using CacheFS
Before you can mount 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. Mount an NFS file system using CacheFS by typing the mount(1M)
command, as in the following examples:
mount -F cachefs -o backfstype=nfs,cachedir=/disk2/cache \
nfsserver:/opt/frame /opt/frame
2. Add a line to the /etc/fstab file, as in the following example, to
cause your NFS file system to be mounted at system boot:
nfsserver:/opt/frame /opt/frame cachefs \
backfstype=nfs,cachedir=/disk2/cache 0 0
This example NFS-mounts the directory /opt/frame from server
nfsserver to the local /opt/frame directory. Now /opt/frame can be
accessed just like any mounted file system. As data in /opt/frame is
referenced, it will be copied into /disk2/cache. Further references to
the data will access the data on the local disk instead of the data on the
remote server.
For more information, type man 1M mount at the HP-UX prompt.