N E T S H E L L

( A ROOF FOR NET BEGINNERS )

3. Network File System 

  • The Solaris OE supports the sharing of remote File system resources and make users to access as local files and directories
  • NFS environment contains the following components
    1.  NFS Server   :   A system that contains the file resources to be shared with other machines
    2.  NFS Client    :  A system that mounts the file resources shared over the network.

 

                                                                                     

                                NFS Server ( host1 )                                   NFS Client ( host2 )

 A  folder which is available in host1 called " /data" is to be shared in network and host2   machine on network want to mount the "/data" folder which is shared in host1 as a local file resource.  

Step : 1

        Share the "/data" folder in host1. Edit the file /etc/dfs/dfstab for permanent sharing

                 share   -F    nfs     /data

Step : 2

        Start the NFS Server daemons on NFS server ( host1) 

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

Step : 3

        Verify the folder "/data" is shared in host1

               #  dfshares

Step : 4

        Create a Local mounting point in host2 .

Step : 5

        Mounting the "/data" in NFS client ( host2 ) . Edit the file /etc/vfstab for permanent entry 

              host1:/data       -        /data          nfs          -          yes        soft,bg

Step : 6

       Restart host2 and verify it is mounted

                  #   mount

More  :    Sharing a Software using NFS

( Solaris Topics)

Hosted by www.Geocities.ws

1