NFS Services Administrator's Guide HP-UX 11i version 3
• Support for ACLs
An Access Control List (ACL) offers stronger file security by enabling the owner of the file
to define file permissions for specific users and groups. This version of CacheFS on HP-UX
supports ACLs with VxFS and NFS and not with HFS.
• Support for Logging
A new command, cachefslog, is used to enable or disable logging for a CacheFS
mount-point. If logging functionality is enabled, details about the operations performed on
the CacheFS mount-point are stored in a logfile. The logfile also contains information on all
the operations performed on all CacheFS mount-points that use the same cache directory.
The cachefswssize command is used to display the amount of space taken by each of
the filesystems in the same cache and the total size occupied by the cache directory (also
known as the working set size). This command uses the logfile created by the cachefslog
command to display the information.
Configuring and Administering CacheFS
You can use CacheFS to cache both manually mounted NFS filesystems or automatically mounted
NFS filesystems. All CacheFS operations, except displaying CacheFS statistics, require superuser
permissions.
This section describes the tasks to configure and administer CacheFS:
• “Creating a CacheFS Cache” (page 84)
• “Mounting an NFS Filesystem Using CacheFS” (page 85)
• “Automounting a Filesystem Using CacheFS” (page 86)
• “Enabling Logging in CacheFS” (page 86)
• “Disabling Logging in CacheFS” (page 87)
• “Caching a Complete Binary” (page 87)
• “Packing a Cached Filesystem” (page 87)
• “Forcing a Cache Consistency Check” (page 89)
• “Unmounting a Cache Filesystem” (page 89)
• “Checking the Integrity of a Cache” (page 89)
• “Deleting a Cache Directory” (page 91)
Creating a CacheFS Cache
This section describes how to configure a cache directory in a local filesystem. To configure a
local filesystem as a cache directory, follow these steps:
1. Log in to the NFS client system as superuser.
2. Ensure that the disk partition containing the cache has enough space for the cache directory.
If does not have enough space, configure and mount a new HFS or VxFS filesystem to be
used as the front filesystem, where data will be cached.
3. To create a cache directory, enter the following command:
cfsadmin -c cache_directory
For example to create a CacheFS directory called /disk2/cache using the following
command:
cfsadmin -c /disk2/cache
This creates a new directory called cache under the /disk2 directory.
CacheFS allows more than one filesystem to be cached in the same cache. You need not create a
separate cache directory for each CacheFS mount.
84 Configuring and Administering a Cache Filesystem