Create an NFS share with Solaris

From Peter Pap's Technowiki
Revision as of 05:51, 8 November 2010 by Ppapa (talk | contribs) (Created page with "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 ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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