Operating System - HP-UX
1833238 Members
2700 Online
110051 Solutions
New Discussion

Re: Migration from automount to autofs

 
Alex Lavrov.
Honored Contributor

Migration from automount to autofs

Hello,
I trid to migrate from automounter to autofs. I did all the steps, reconfigured /etc/rc.config.d/nfsconf, set AUTOFS=1 and AUTOMOUNT_OPTIONS="-f $AUTO_MASTER" (auto_master is /etc/auto_master).

I restarted nfs client and now I can see autofs_proc.

/etc/auto_master:
/alex_test serv1:/usr/sap/trans -rw,soft


When I move to /alex_test and do bdf, I can see that it's mounted on the nfs server, but I don't see no files, no kbytes used/free etc. I think it's not mounted and only displays the values from /etc/auto_master. The directory on serv1 is mounted and exported and working, because all the sap systems use it. Also, if I try to mount nfs directory manualy, mount command hangs. Any ideas what went wrong?


Thanx.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
3 REPLIES 3
KVK
Valued Contributor

Re: Migration from automount to autofs

Can post the Automount log as well

Does your system has latest NFS patch level . If not try apply it and check it out
Peter Nikitka
Honored Contributor

Re: Migration from automount to autofs

Hi,
I assume >=11.0 as OS-version ...

I put maps in the master map only - try to put your test-mount in an extra mapfile
like /etc/auto.test containing e.g.
saptrans -rw,soft serv1:/usr/sap/trans

and put this entry in the master map:
/alex_test /etc/auto.test

The filesystem should automounted when accessing
/alextest/saptrans
and bdf should report this as well.

If you insist on mounting under /alextest
directly you have to use a direct map:
(master-map:) /- /etc/auto.test
(test-map:) /alextest ...
But remember that not more than one direct map is possible!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Alex Lavrov.
Honored Contributor

Re: Migration from automount to autofs

Hello,

the problem solved. /etc/auto_master an /etc/auto.direct had to be 644.

I don't give a damn for a man that can only spell a word one way. (M. Twain)