N E T S H E L L

( A ROOF FOR NET BEGINNERS )

3. Network File System 

a. Sharing a Software using NFS

  • 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 )

                                    ( MAN installed )                                    ( MAN not installed )

 A  Software which is available in host1 called "SUNWman" is to be shared in network and host2   machine on network want to mount the "SUNWman"  which is shared in host1 as a local file resource.   After Mounting the man software in host2, the user can view the man pages in host2.

IStep : 1

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

                 share   -F    nfs     /usr/share/man

Step : 2

        Start the NFS Server daemons on NFS server ( host1) 

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

Step : 3

        Verify the folder "/usr/share/man" is shared in host1

               #  dfshares

Step : 4

        Create a Local mounting point in host2 .

                #  mv   /usr/share/man   /usr/share/man.org

                #  mkdir  /usr/share/man

Step : 5

  Mount the "/usr/share/man" in NFS client ( host2 ) . Edit the file /etc/vfstab for permanent entry 

            host1:/usr/share/man       -        /usr/share/man          nfs          -          yes        soft,bg

Step : 6

       Restart host2 and verify it is mounted

                  #   mount

Step : 7 

      Issue a Man command in host2 and the man pages will be listed

                 #  man ls

( Solaris Topics )

Hosted by www.Geocities.ws

1