You can use the cachefspack command to pack an AutoClient system's cache with specific cached files and directories, which means that they will always be in the system's cache and not removed when the cache becomes full. The files and/or directories that you pack in your cache must be from a cached file system, which means they must be under the root (/) or /usr file systems for AutoClient systems.
If you set up your AutoClient system with the disconnectable option, you will have the added benefit of continued access to your cache and the packed files if the server becomes unavailable. For more information on the disconnectable option, see Table 6-2.
Pack files in the cache using the cachefspack command.
$ cachefspack -p filename |
In this command,
|
-p |
Specifies that you want the file or files packed. This is also the default. |
|
filename |
Specifies the name of the cached file or directory you want packed in the cache. When you specify a directory to be packed, all of its subdirectories are also packed. For more information about the cachefspack command, see the man page. |
The following example specifies the file cm (Calendar Manager) to be packed in the cache.
$ cachefspack -p /usr/openwin/bin/cm |
The following example shows several files specified to be packed in the cache.
$ cachefspack -p /usr/openwin/bin/xcolor /usr/openwin/bin/xview |
The following example shows a directory specified to be packed in the cache.
$ cachefspack -p /usr/openwin/bin |