N E T S H E L L

( A ROOF FOR NET BEGINNERS )

 

4. Auto File System 

  • Auto FS is configured in order to mount the filesystem on demand
  • AutoFS unmounts the file system automatically when no longer use 
    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 auto mount the "SUNWman"  which is shared in host1 as a local file resource.   

 When the user in host2 invoking the man command the man software shared in host1 will be automatically mounted in host2 and 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

        "Restart host1 (or) give shareall command

               #  shareall

Step : 4

        Create a Local mounting point in host2 .

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

                #  mkdir  /usr/share/man

Step : 5

       (on host2) Edit the file /etc/auto_master and add the following line

                 /-          auto_direct

Step : 6

      (on host2) Edit the file /etc/auto_direct and add the following line

                /usr/share/man                 host1:/usr/share/man 

Step : 7

       Run the automount command

                #  automount -v

 

Step : 8 

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

                 #  man ls

Step : 9

    •       Verify the Man share is mounted by using mount command
    •        when man command is not used ,automatically the mount will be     disconnected.

 

( Solaris Topics )

Hosted by www.Geocities.ws

1