Question & Answer
Question
How do I start the automount daemon?
Assumption:
The /etc/auto* files are configured.
Example of /etc/auto_master and /etc/auto_test:
/etc/auto_master
/datafs2 /etc/auto_test
/etc/auto_test (Indirect map)
testme -vers=3,soft netcomp7:/datafs/&
Cause
However, it is recommended to use 'stopsrc -s automountd' to stop the automountd daemon.
Answer
The correct way to start the automount daemon is by running the /usr/sbin/automount script.
The /usr/sbin/autofsmount entry in the automount script calls the code path where we load the kernel extension and read the maps to setup the autofs mounts.
If the maps are changed you must run '/usr/sbin/automount' to reread the maps.
Example of /usr/sbin/automount to read auto_master and auto_test.
Start automount
# /usr/sbin/automount
Subsystem Group PID Status
automountd autofs 9043994 active
# ps -ef |grep automount
root 9043994 3342466 0 13:51:29 - 0:00 /usr/sbin/automountd
The automountd daemon is running.
/etc/auto_test /datafs2 autofs Apr 16 13:51 ignore
The auto_test file was read and mounted map key /datafs2
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Apr 07 14:23 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Apr 07 14:23 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Apr 07 14:24 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Apr 07 14:24 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Apr 07 14:24 rw,log=/dev/hd8
<....>
/etc/auto_test /datafs2 autofs Apr 16 13:51 ignore
There hasn't been an attempt to access the nfs filesystem therefore it has not been mounted by automount.
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Apr 07 14:23 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Apr 07 14:23 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Apr 07 14:24 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Apr 07 14:24 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Apr 07 14:24 rw,log=/dev/hd8
<....>
/etc/auto_test /datafs2 autofs Apr 16 13:51 ignore
netcomp7 /datafs/testme /datafs2/testme nfs3 Apr 16 13:53 vers=3,soft
The automount daemon has mounted the nfs filesystem /datafs2/testme from NFS server netcomp7.
The automountd daemon will attempt to unmount /datafs2/testme after 6 - 7 minutes of idle time.
By default /usr/sbin/automount will start on boot up from /etc/rc.nfs if nfs and /etc/auto_master is configured.
## Begin AutoFS startup ## Do NOT remove
##
if [ -s /etc/auto_master ]; then
/usr/sbin/automount
fi
##
## End AutoFS startup ## Do NOT remove
SUPPORT:
If additional assistance is required after completing all of the instructions provided in this document, please follow the step-by-step instructions below to contact IBM to open a case for software under warranty or with an active and valid support contract. The technical support specialist assigned to your case will confirm that you have completed these steps.
a. Document and/or take screen shots of all symptoms, errors, and/or messages that might have occurred
b. Capture any logs or data relevant to the situation.
c. Contact IBM to open a case:
-For electronic support, please visit the IBM Support Community:
https://www.ibm.com/mysupport
-If you require telephone support, please visit the web page:
https://www.ibm.com/planetwide/
d. Provide a good description of your issue and reference this technote
e. Upload all of the details and data to your case
-You can attach files to your case in the IBM Support Community
-Or Upload data to IBM testcase server analysis:
http://www.ibm.com/support/docview.wss?uid=ibm10733581
f. Click here to submit feedback for this document.
Related Information
Was this topic helpful?
Document Information
Modified date:
17 April 2020
UID
ibm16194811