System Administration Guide: Basic Administration

How to Mount a CacheFS File System (/etc/vfstab)

  1. Become superuser on the client system.

  2. Using an editor, specify the file systems to be mounted in the /etc/vfstab file.

    See the example that follows.

    For more information on the /etc/vfstab file, see Field Descriptions for the /etc/vfstab File.

  3. Mount the CacheFS file system.


    # mount /mount-point
    

    Or, reboot the system.

Example—Mounting a CacheFS File System (/etc/vfstab)

The following example shows the /etc/vfstab entry for the /data/abc directory from remote system starbug that is mounted in the cached directory, /opt/cache.


 
#device           device             mount      FS     fsck  mount   mount
#to mount         to fsck            point      type   pass  at boot options
#
starbug:/data/abc /local/abc         /opt/cache cachefs 7    yes     local-access,bg,
nosuid,demandconst,backfstype=nfs,cachedir=/opt/cache