NFS Services Administrator's Guide

Configuring and Administering a Cache Filesystem
Administering CacheFS
Chapter 4 159
Packing a Cached Filesystem
CacheFS is designed to work best with NFS filesystems that contain
read-only data that does not change frequently. CacheFS is most
commonly used to manage application binaries.
In earlier versions of HP-UX, the rpages option was introduced to enable
the client to cache complete copies of the application binary. However,
using the rpages option caused slower initial load times but the
subsequent executions of the application were significantly faster.
Starting with HP-UX 11i v3, HP introduces the cachefspack utility to
provide greater control over the cache. This utility enables you to specify
files and directories to be loaded in the cache and ensures that the
current copies are always available in the cache. This is also known as
packing.
You can pack files using one of the following methods:
Specifying the files or directories to be packed
You can use the cachefspack command to pack a file or a directory
in the cache. This ensures that the current copies of these files are
always available in the cache.
Enter the following command to pack a file in the cache:
cachefpack -p
filename
Where:
-p Packs the file or files in the cache.
filename
Name of the file that is to be packed in the cache.
•Using the packing-list file
A packing-list file is an ASCII file that contains a list of files and
directories that are to be pre-packed in the cache. Creating a
packing-list file saves time, because you need not individually
pack each file. It also enables you to access the BASE, LIST, and
IGNORE options that are not available from the command line
interface. The packing-list file can be updated or removed when
required.
To pack files in the cache using the packing-list file, follow these
steps:
1. Create the packing-list file, if it does not exist.