Steps to follow if automount fails to mount on Linux

There are courses of action that you can take if the automount fails to mount on Linux® system.

On Linux, perform these steps:
  1. Verify that the GPFS file system mount point is actually a symbolic link to a directory in the automountdir directory. If automountdir=/gpfs/automountdir then the mount point /gpfs/gpfs66 would be a symbolic link to /gpfs/automountdir/gpfs66.
    1. First, verify that GPFS is up and running.
    2. Use the mmlsconfig command to verify the automountdir directory. The default automountdir is named /gpfs/automountdir. If the GPFS file system mount point is not a symbolic link to the GPFS automountdir directory, then accessing the mount point does not cause the automounter to mount the file system.
    3. If the command /bin/ls -ld of the mount point shows a directory, then run the command mmrefresh -f. If the directory is empty, the command mmrefresh -f removes the directory and create a symbolic link. If the directory is not empty, you need to move or remove the files contained in that directory, or change the mount point of the file system. For a local file system, use the mmchfs command. For a remote file system, use the mmremotefs command.
    4. Once the mount point directory is empty, run the mmrefresh -f command.
  2. Verify that the autofs mount has been established. Issue this command:
    mount | grep automount
    
    The output must be similar to this:
    automount(pid20331) on /gpfs/automountdir type autofs (rw,fd=5,pgrp=20331,minproto=2,maxproto=3)
    
    For Red Hat Enterprise Linux 5, verify the following line is in the default master map file (/etc/auto.master):
    /gpfs/automountdir program:/usr/lpp/mmfs/bin/mmdynamicmap
    For example, issue:
    grep mmdynamicmap /etc/auto.master
    
    Output should be similar to this:
    /gpfs/automountdir program:/usr/lpp/mmfs/bin/mmdynamicmap
    This is an autofs program map, and there is a single mount entry for all GPFS automounted file systems. The symbolic link points to this directory, and access through the symbolic link triggers the mounting of the target GPFS file system. To create this GPFS autofs mount, issue the mmcommon startAutomounter command, or stop and restart GPFS using the mmshutdown and mmstartup commands.
  3. Verify that the automount daemon is running. Issue this command:
    ps -ef | grep automount
    
    The output must be similar to this:
    root 5116 1 0 Jun25 pts/0 00:00:00 /usr/sbin/automount /gpfs/automountdir program 
        /usr/lpp/mmfs/bin/mmdynamicmap
    For Red Hat Enterprise Linux 5, verify that the autofs daemon is running. Issue this command:
    ps -ef | grep automount
    The output must be similar to this:
    root 22646 1 0 01:21 ? 00:00:02 automount
    
    To start the automount daemon, issue the mmcommon startAutomounter command, or stop and restart GPFS using the mmshutdown and mmstartup commands.
    Note: If automountdir is mounted (as in step 2) and the mmcommon startAutomounter command is not able to bring up the automount daemon, manually umount the automountdir before issuing the mmcommon startAutomounter again.
  4. Verify that the mount command was issued to GPFS by examining the GPFS log. You should see something like this:
    Mon Jun 25 11:33:03 2004: Command: mount gpfsx2.kgn.ibm.com:gpfs55 5182
    
  5. Examine /var/log/messages for autofs error messages. The following is an example of what you might see if the remote file system name does not exist.
    Jun 25 11:33:03 linux automount[20331]: attempting to mount entry /gpfs/automountdir/gpfs55
    Jun 25 11:33:04 linux automount[28911]: >> Failed to open gpfs55.
    Jun 25 11:33:04 linux automount[28911]: >> No such device
    Jun 25 11:33:04 linux automount[28911]: >> mount: fs type gpfs not supported by kernel
    Jun 25 11:33:04 linux automount[28911]: mount(generic): failed to mount /dev/gpfs55 (type gpfs)
        on /gpfs/automountdir/gpfs55
    
  6. After you have established that GPFS has received a mount request from autofs (Step 4) and that mount request failed (Step 5), issue a mount command for the GPFS file system and follow the directions in File system fails to mount.