How to Specify a File System to Be Mounted in a Cache With mount

Become superuser.

Create a mount point.

The mount point allows user access to the file system specified under
that mount point. You can create the mount point from anywhere. The CacheFS
options used with the mount command, as shown in the next
step, will determine that the mount point you created will be cached in the
cache directory you specified.

Indicates the file system type of the
back file system (can be either NFS or HSFS).

cache-directory

Indicates the name of the directory
where the cache resides. This is the same name you specified when you created
the cache in "How to Create a Cache".

options

Specifies other mount options that
you can include when mounting a file system in a cache. See mount_cachefs(1M) for a list
of CacheFS mount options.

back-filesystem

The mount point of the back file system
to cache. If the back file system is an NFS file system, you must specify
the host name of the server from which you are mounting the file system and
the name of the file system to cache (separated by a colon). For example, merlin: /usr/openwin.

mount-point

Indicates the directory where the file
system is mounted.

Verify that the cache you created was actually mounted by using the cachefsstat(1M)
command, as follows:

The following example makes a CD-ROM (HSFS file system) available as
a cached file system named /docs. Because you cannot
write to the CD-ROM, the ro argument is specified to make
the cached file system read-only. You must specify the backpath
option because Volume Management automatically mounts the CD-ROM when it is
inserted. The mount point is in the /cdrom directory
and is determined by the name of the CD-ROM. The special device to mount is
the same as the value for the backpath command.