NFS Administration Guide

How to Access NFS File Systems Using CacheFS

  1. Run the cfsadmin command to create a cache directory on the local disk.


    # cfsadmin -c /var/cache
    
  2. Add the cachefs entry to the appropriate automounter map.

    For example, adding this entry to the master map will cache all home directories:


    /home auto_home -fstype=cachefs,cachedir=/var/cache,backfstype=nfs

    Adding this entry to the auto_home map will only cache the home directory for the user named rich:


    rich -fstype=cachefs,cachedir=/var/cache,backfstype=nfs dragon:/export/home1/rich

    Note -

    Options that are included in maps that are searched later will override options that are set in maps that are searched earlier. The last options that are found are the ones that are used. In the previous example, a specific entry added to the auto_home map would only need to include the options listed in the master maps if some of the options needed to be changed.