NFS Services Administrator's Guide (5900-1632, August 2011)

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:
packing-list Specifies the name of the packing-list file.
The files specified in the packing list are now packed in the cache.
You can unpack files that you no longer require, using one of the following methods:
Using the -u option
To unpack a specific packed file or files from the cache directory, enter the following command:
cachefspack -u filename
where:
-u Specifies that certain files are to be unpacked.
86 Configuring and Administering a Cache Filesystem