NFS Services Administrator Guide (5900-3045, March 2013)
Packing a Cached Filesystem
Starting with HP-UX 11i v3, the cachefspack command is introduced to provide greater control
over the cache. This command enables you to specify files and directories to be loaded, or packed,
in the cache. It also ensures that the current copies are always available in the cache.
You can pack files using one of the following methods:
• Specifying the files or directories to be packed
Enter the following command to pack a file in the cache:
cachefspack -p filename
where:
-p
Packs the file or files in the cache.
filename
Name of the file or directory that is to be packed in the cache.
NOTE: When you pack a directory, all files in that directory, subdirectories, and files in the
subdirectories are packed. For instance, consider a directory /dir1 that contains two
subdirectories /subdir1, and /subdir2, as well as two files test1, and test2. When
you pack /dir1, /subdir1, /subdir2, test1, and test2 are packed.
• 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. The file can be created using a text
editor.
NOTE: For information on the format and rules governing the creation of a
packing-list file, see packingrules(4).
2. Add an entry to the file. A sample of the packing-list file consists of the following
entries:
BASE /net/server/share/home/casey
LIST work
LIST m/sentitems
IGNORE core *.o *.bak
where:
BASE
Specifies the path to the directory that contains the files to pack.
LIST
Specifies the files to pack within the directory.
IGNORE
Specifies the files or file types or both that you do not want to pack in the cache.
3. To pack the files specified in the packing-list file enter the following command:
cachefspack -f packing-list
where:
86 Configuring and Administering a Cache Filesystem