Create an NFS share with Solaris

From Peter Pap's Technowiki
Jump to: navigation, search

1. Edit the dfstab:

 vi /etc/dfs/dfstab

Add a line like this:

 share -F nfs -o ro,anon=0 /export/centos

This will create a read-only share that anyone can mount.

2. Start the NFS server daemon.

On Solaris 10:

 svcadm enable svc:/network/nfs/server:default

On Pre-Solaris 10:

 /etc/init.d/nfs.server start

3. If the NFS daemon was already configured and running, do this to add your new share:

  /usr/sbin/shareall