Thursday 4 July 2013

Executing the command /usr/sbin/automount hangs

Question:Why does /usr/sbin/automount hang?

Answer:

1) Verify that /etc/netsvc.conf contains the following line:

      hosts=local,bind4

2) Verify that /etc/hosts contains the following:

    127.0.0.1 loopback localhost

3) Verify that the ip address and the hostname of the machine is defined in /etc/hosts

4) Verify that loopback and the hostname of the machine can be resolved.

    # host loopback
    # host 127.0.0.1
    # host machine's_hostname
    # host machine's_ip_address

5) Verify that the loopback interface lo0 exist and doesn't have an * next to the interface name.

    There should be 3 lines of output for lo0. There shouldn't be an * next to lo0.
# netstat -in
lo0 16896 link#1 27658535 0 27663128 0 0
lo0 16896 127 127.0.0.1 27658535 0 27663128 0 0
lo0 16896 ::1 27658535 0 27663128 0 0
If there is an * next to lo0 this indicates that lo0 is in a down state.
Check the state of lo0 in the ODM. The state should be up.
# lsattr -El lo0
<....>

state up Current Interface Status

<....>

If the state is up in the ODM use the following command to make lo0 available
# mkdev -l lo0
Available

If the state is down or detach in the ODM use the following commands to bring lo0 up
# chdev -l lo0 -a state=up -P
# mkdev -l lo0

NOTE: If lo0 is missing from the netstat -in output run cfgmgr to bring back lo0.
Check the ODM and the netstat -in output using the above commands and take the appropriate actions.

0 blogger-disqus:

Post a Comment