How to Set Up Automatic File System Sharing

  1. Become an administrator.
  2. Define the file systems to be shared.

    Note:

    NFS server processes do not start by default.

    You can set the share.nfs property to share a ZFS file system.

    # zfs set share.nfs=on | off filesystem
    
    

    For example:

    # zfs set share.nfs=on pond/amy
    

    For information about the available command options, see the zfs_share(8) man page.

  3. Verify that the file system is shared.

    You can use the share command to get a list of all the shared file systems.

    For example:

    # share
    pond_amy            /pond/amy            nfs sec=sys,rw

Additional Action: The next step is to set up your autofs maps so that clients can access the file systems that you have shared on the server. For more information about setting up autofs maps, see Autofs Administration.