System Administration Guide, Volume 1

How to Create a Cache

  1. Become superuser.

  2. Create a cache using the cfsadmin -c command.

    # cfsadmin -c cache-directory


    Indicates the name of the directory where the cache resides. For more information, seecfsadmin(1M).

    Note -

    After you have created the cache, do not perform any operations within the cache directory itself. This causes conflicts within the CacheFS software.

Example--Creating a Cache

The following example creates a cache in the /local/mycache directory by using the default cache parameter values.

# mkdir /local
# cfsadmin -c /local/mycache