NFS Server Sharing Lab ----------------------------- Server Instructions ******************* 1) Patition hard drive using all free hog. If hard drive is already partitioned, skip to step #2. Partition Sizes: 0 1gb 1 1gb 3 1gb 4 1gb 5 1gb 7 1gb 2) Install a file system on slice #6 # newfs /dev/rdsk/c1t1d0s6 3) Make a directory # mkdir /dir1 4) Mount the directory to the new slice # mount /dev/dsk/c1t1d0s6 /dir1 5) Make entry permenant in /etc/vfstab /dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /dir1 ufs 2 yes - 6) Share out file system by editing the /etc/dfs/dfstab share -F nfs -o rw /dir1 7) Enable nfs sharing # /etc/init.d/nfs.server start 8) Check and see if you are sharing the resource # dfshares 9) Create files # cd /dir1 # touch file1 file2 file3 Client Instructions ******************* 1) WAIT FOR SERVER TO SHARE RESOURCES BEFORE TRYING TO MOUNT! 2) Make a local directory # mkdir /dir1_local 3) Check to see if the resource is available # dfshares server 4) Mount the resource # mount server:/dir1 /dir1_local 5) Check to see if it worked # df -k 6) Make the mount permenent in the /etc/vfstab server:/dir1 - /dir1_local nfs - yes bg,soft 7) Check to see if you can see any files in the nfs directory # cd /dir1_local # ls 8) You should see file1 and file2