NFS Services Administrator's Guide (B1031-90072, March 2011)
• 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 82)
• “Mounting an NFS Filesystem Using CacheFS” (page 83)
• “Automounting a Filesystem Using CacheFS” (page 84)
• “Enabling Logging in CacheFS” (page 84)
• “Disabling Logging in CacheFS” (page 85)
• “Caching a Complete Binary” (page 85)
• “Packing a Cached Filesystem” (page 86)
• “Forcing a Cache Consistency Check” (page 87)
• “Unmounting a Cache Filesystem” (page 87)
• “Checking the Integrity of a Cache” (page 88)
• “Deleting a Cache Directory” (page 89)
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.
82 Configuring and Administering a Cache Filesystem