Error restarting autofs in RedHat

Hi Expert,

I am trying to restart automount as it's consume much CPU.

Tasks: 2392 total, 7 running, 2352 sleeping, 25 stopped, 8 zombie Cpu(s): 9.3% us, 28.5% sy, 0.0% ni, 61.5% id, 0.2% wa, 0.2% hi, 0.2% si Mem: 15799928k total, 11029764k used, 4770164k free, 162424k buffers Swap: 22773752k total, 7303680k used, 15470072k free, 2628508k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5939 root 25 0 27112 1556 952 S 97.2 0.0 3155:01 automount

when I restart autofs, I got error

Stopping automount:umount2:
Device or resource busy umount: /proj: device is busy umount2:
Device or resource busy umount: /tool: device is busy

[FAILED]

Starting automount:
/tool: mount failed! failed to load map: /usr/sbin/automount --timeout=300 /tool yp auto.tool -DOS=k26_g23_64 tcp,rsize=32768,wsize=32768,timeo=600,retrans=2
/proj: mount failed! failed to load map: /usr/sbin/automount --timeout=300 /proj yp auto.proj -DOS=k26_g23_64 tcp,rsize=32768,wsize=32768,timeo=600,retrans=2 /home: mount failed!

ps -ef | grep automount | egrep -v grep

root 5885 1 0 Sep13 ? 00:02:11 /usr/sbin/automount --timeout=300 /tool yp auto.tool -DOS=k26_g23_64 tcp,rsize=32768,wsize=32768,timeo=600,retrans=2
root 5939 1 12 Sep13 ? 2-04:45:46 /usr/sbin/automount --timeout=300 /proj yp auto.proj -DOS=k26_g23_64 tcp,rsize=32768,wsize=32768,timeo=600,retrans=2

Your assistance in this matter is very much appreciated. Thx.

automount automatically unmounts things that are NOT in use after a time... in your case timeout=300. Looks like something was using /proj and /tool. You can use lsof to find out what process(es) is(are) using those.

With regards to "failed to load map", I'm going to guess that the yp map couldn't be found (?) for auto.tool and auto.proj.

Thanks cjcox