Thursday, March 3, 2016

Notes on configuring NFS on Solaris 10




March 16, 2007 at 1:36 am · Filed under OS, Solaris 10, Technology, howto

Here are my notes that I put together based on reading man pages, config sample, and from my previous blog entry on this topic.

1. (optional) mount an extra disk on the machine that will be the NFS server.
2. enable NFS sever by running the following:
svcadm -v enable -r network/nfs/server
3. Run the following command to share via NFS
share -F nfs -o rw /disk
Note: The above share command will not persist over reboots. To persist over reboots, add an entry to
/etc/dfs/dfstab

share -F nfs -o rw /disk

4. Run the following command to mount from the client side:
mount -F nfs server:/disk /mount_point
Note: The above mount command will not persist over reboots. To persist over reboots, add the following line in
/etc/vfstab:

server:/disk   -   /mount_point   nfs   -   yes    rw,soft

See also this vfstab sample.

Please note that you can’t use the root account on the NFS client host to create files, because root on the NFS client doesn’t mean root on the NFS server. Use a common user account across NFS server and client(s) instead.

 

No comments:

Post a Comment

Interview Questions for Linux/UNIX and Solaris

Linux Interview Questions  Important One -  https://geekstuffweb.wordpress.com/2016/07/12/linux-interview-questions-and-answers-for-l2-and-l...