1838330 Members
3456 Online
110125 Solutions
New Discussion

automount map

 
SOLVED
Go to solution
SAM_24
Frequent Advisor

automount map

Hi,

What is the procedure to re-read automount map?

In /etc/auto.direct map I changed the entry from

xyz serverA:/path
to
xyz serverB:/same/path/as above

I ran automount -v. Change didn't take place.

Then I killed (kill -15 pid of automountd) and restarted. Everything ok.

Do I need to restart automount everytime I make change?

Man page says when there is change in map running automount script is enough.

Thanks.
Never quit
3 REPLIES 3
Radhakrishnan Venkatara
Trusted Contributor
Solution

Re: automount map

hi,

you don't want to restart automountd when use autofs.
but when use automount whatever changes u make in automount map for that u have to restart automountd.

u can set autofs in /etc/rc.config.d/nfsconf

search for AUTOFS and make it 1(normally it will be 0).

please check this link below

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90043/B1031-90043_top.html&con=/hpux/onlinedocs/B1031-90043/00/00/10-con.html&toc=/hpux/onlinedocs/B1031-90043/00/00/10-toc.html&searchterms=automount&queryid=20030519-214646

Negative thinking is a highest form of Intelligence
Sunil Sharma_1
Honored Contributor

Re: automount map

Hi,
Whenever you make change in master map you have to restart automountd.
you need not to be killed it you can use HUP signal to re-read config file.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
S.K. Chan
Honored Contributor

Re: automount map

From the man pages of "mount" it stated that ..
"New entries added to a master map or direct map will not be useful until the automount command is run to install them as new autofs mount points. New entries added to an indirect map may be used immediately."
It simply means you need to restart your automounter daemon. You may want to consider implementing indirect mount which gives you the flexibility of changing the indirect map "on-the-fly" (not the master map because changing the master map still needs automounter to be restarted no matter what). For example .. my master map and users map looks like this ..
auto_master
-----------
/users /etc/auto_users
auto_users
----------
jim -nosuid mars:/users/jim
* -nosuid saturn:/users/&
Any changes can be made on the fly on "auto_users" map without needing to restart the daemon. So basically I can add another user that resides on a different server to the line before the last line and this will be reflected immediately.