Testing

Team-Fly    

Solaris™ Operating Environment Boot Camp
By David Rhodes, Dominic Butler
Table of Contents
Chapter 18.  NFS, DFS, and Autofs


The most obvious way of checking that everything is working correctly is to change into the relevant directories and check that the data is available. We should also find that logging in as any of the users produces the correct results, since the users' home directories are now under Autofs control.

Another test we need to carry out is to make sure that clients cannot see any data they shouldn't, as in the case of the general and admin directories in the auto_data map.

We can check that the files have been mounted in a number of ways. One is by running a df to see the device; another is by checking the /etc/mnttab file on the client. For example, if we force a resource to be mounted, by changing into, say, jgreen's home directory, /home/jgreen, we should see the following information:

 lithium# df -k Filesystem         kbytes  used  avail capacity  Mounted on <lines removed for clarity> neon:/export/home/jgreen 519718  82791 384956  18%  /home/jgreen lithium# 

The above shows that the device has been mounted as expected. The following shows two entries, one for the map itself, and the other for the mounted device:

 lithium# cat /etc/mnttab auto_home /home autofs ignore,indirect,dev=2b80001 1004515802 neon:/export/home/jgreen /home/jgreen nfs dev=1980000 1004546700 lithium# 

    Team-Fly    
    Top
     



    Solaris Operating Environment Boot Camp
    Solaris Operating Environment Boot Camp
    ISBN: 0130342874
    EAN: 2147483647
    Year: 2002
    Pages: 301

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net