Configure Solaris NFS Server & Client

Configure NFS Server

1. Add an entry in /etc/vfstab

# vi /etc/vfstab
/dev/dsk/c0t0d0s7   /dev/rdsk/c0t0d0s7   /sharefolder   ufs  2  yes   -

2. Share the directory (/sharefolder)

# share -F nfs -o rw /sharefolder

3. Enable the sharing

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

4. Verify the sharing resource

# dfshares

Configure NFS Client

1. Create a new directory

# mkdir /clientfolder

2. Enable NFS client

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

3. Mount the NFS

# mount -F nfs :/sharefolder /clientfolder

You May Also Like

Leave a Reply?