Enabling NFS

From Peter Pap's Technowiki
Revision as of 02:03, 20 September 2010 by Ppapa (talk | contribs) (Solaris pre-10)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Solaris 10

Solaris 10 uses the Service Management Facility (SMF) to manage services. As such you need to do the following to enable NFS.

To enable the NFS server daemon:

  svcadm enable network/nfs/server

To enable the NFS client daemon:

  svcadm enable network/nfs/client


Solaris pre-10

Earlier releases of Solaris use classic System V init scripts. As such, to permanently enable the NFS daemons, do the following.

Server:

  cd /etc/rc3.d
  ln -s ../init.d/nfs.server S90nfs.server
  cd /etc/rc1.d
  ln -s ../init.d/nfs.server K10nfs.server

Client:

  cd /etc/rc3.d
  ln -s ../init.d/nfs.client S50nfs.client
  cd /etc/rc1.d
  ln -s ../init.d/nfs.client K50nfs.client

To start these daemons manually:

  /etc/init.d/nfs.server start
  /etc/init.d/nfs/client start