NFS Services Administrator's Guide (B.11.31.03) August 2008
Enabling Logging in CacheFS
This section describes how you can enable logging in CacheFS. You can use the
cachefslog command to enable logging for a CacheFS mount-point. Enabling the
logging functionality may have a performance impact on the operations performed for
all the CacheFS mount-points that are using the same cache directory.
To enable CacheFS logging, follow these steps:
1. Log in as superuser.
2. To enable logging for a CacheFS mount-point, say /cfs_mnt1, enter the following
command:
cachefslog -f /tmp/logfile /cfs_mnt1
Where:
/tmp/logfile Specifies the logfile to be used.
NOTE: When multiple mount-points use the same cache directory, enabling
logging for one CacheFS mount-point automatically enables logging for all the
other mount-points.
3. To verify if logging is enabled for /cfs_mnt1, enter the following command:
cachefslog /cfs_mnt1
If logging has been enabled, the logfile is displayed.
Disabling Logging in CacheFS
You can use the cachefslog command to halt or disable logging for a CacheFS
mount-point.
To disable CacheFS logging, follow these steps:
1. Log in as superuser.
2. To halt or disable logging for the same CacheFS mount-point, /cfs_mnt1, enter
the following command:
cachefslog -h /cfs_mnt1
NOTE: When multiple mount-points use the same cache directory, disabling
logging for one CacheFS mount-point automatically disables logging for all the
other mount-points.
3. To verify if logging has been halted or disabled for /cfs_mnt1, enter the following
command:
cachefslog /cfs_mnt1
If logging has not been enabled or if it has been halted, the following message is
displayed:
Configuring and Administering CacheFS 117