Sun N1 Service Provisioning System User's Guide for OS Provisioning Plug-In 3.1

ProcedureHow to Enable NFS Services on a Solaris 10 JET Server

For JET servers that are running the Solaris 8 or 9 releases, JET automatically enables the NFS service for your deployments. If your Solaris JET server is running the Solaris 10 OS, you must manually enable NFS service on your JET server. Follow these steps.

Steps
  1. Log in to the Solaris 10 JET server as root.

  2. Type the command svcadm -v enable network/nfs/server.

    The NFS service is enabled, and starts when the management server is rebooted. After the system is rebooted, you can verify whether the NFS service has start using the svcs command:


    # svcs | grep nfs
    online         Apr_08   svc:/network/nfs/cbd:default
    online         Apr_08   svc:/network/nfs/client:default
    online         14:03:18 svc:/network/nfs/status:default
    online         14:03:18 svc:/network/nfs/nlockmgr:default
    online         14:03:18 svc:/network/nfs/server:default
    online         14:03:18 svc:/network/nfs/mapid:default
    online         14:03:18 svc:/network/nfs/rquota:default
  3. Add entries to the /etc/dfs/dfstab file for each file system to be shared.

    Add one entry to the file for every file system that you want to be automatically shared. Each entry must be on a line by itself in the file and use this syntax:


    share [-F nfs] [-o specific-options] [-d description] pathname

    See the dfstab(4) man page for a description of /etc/dfs/dfstab and the share_nfs(1M) man page for a complete list of options.

  4. Share the file system.

    After the entry is in /etc/dfs/dfstab, you can share the file system by either rebooting the system or by using the shareall command.


    # shareall
    
  5. Verify that the information is correct.

    Run the share command to check that the correct options are listed:


    # share
    -        /export/share/man   ro   ""
    -        /usr/src     rw=eng   ""
    -        /export/ftp    ro,public  ""