To verify that AutoFS has been configured correctly, perform
the following steps:
To change the current working directory to an automounted directory,
issue the following command:
/usr/bin/cd local_directory |
In the preceding command, local_directory is the configured mount point in the AutoFS map.
To verify that the contents of the remote directory
have been mounted under the local mount point, issue the following
command:
If the directory is configured in an indirect map, issuing
the ls command from the parent directory displays potential
mount points (browsability). When you change to a subdirectory configured
in the indirect map, or issue the ls subdirectory command, the subdirectory is mounted.
Consider that you have the following indirect map configuration:
# /etc/auto_master file # local mount point map name mount options /nfs/desktop /etc/auto_desktop
|
# /etc/auto_desktop file # local mount point mount options remote server:directory draw -nosuid thyme:/export/apps/draw write -nosuid basil:/export/write |
Considering that you have the preceding configuration, issue
the following commands:
The output of the last command (ls) is as follows:
The ls command displays this output because the draw and write subdirectories are the potential mount points (browsability),
but not mounted currently. However, if you issue the following commands,
both the draw and write subdirectories are mounted (on-demand
mounting):
cd /nfs/desktop/write cd /nfs/desktop/draw
|
If AutoFS does not mount your configured directories, see Chapter 4 “Troubleshooting
AutoFS”.