Set up the logging process with the cachefslog command.
$ cachefslog -f log-file-path mount-point |
-f |
Sets up the logging process. |
log-file-path |
Specifies the location of the log file. The log file is a standard file you create with an editor, such as vi. |
mount-point |
Designates the mount point (cached file system) for which statistics are being collected. |
Verify that you set up the log file correctly by using the cachefslog command, as follows:
$ cachefslog mount-point |
The following example sets up the log file samlog to collect statistics about /home/sam. The location of samlog is /var/tmp/samlog.
$ cachefslog -f /var/tmp/samlog /home/sam /var/tmp/samlog: /home/sam |