Operating System - HP-UX
1834773 Members
3219 Online
110070 Solutions
New Discussion

Re: NFS V3 Auotmount with direct maps

 
John Downs_1
Frequent Advisor

NFS V3 Auotmount with direct maps


Greetings! I'm having problems getting direct maps to work with NFS V3. I set both flags (automount and autofs)in nfsconf to 1 on client and server. When I reboot or restart NFS indirect maps work but my direct maps don't work. My maps look like this:
auto_master
/- /etc/auto.direct -soft
auto.direct
/hmc la:/export/home/hmc.
I've got fairly up to dates NFS/Network patches. Any ideas on what I am doing wrong?

Thanks!

-john
I'd rather be fly fishing for trout!
6 REPLIES 6

Re: NFS V3 Auotmount with direct maps

You may want to try and do a manual mount to a different mount point to make sure there are no problems with nfs. The configuration that you have looks correct. You may also want to change the name of the indirect map to /etc/auto_direct instead of /etc/auto.direct
S.K. Chan
Honored Contributor

Re: NFS V3 Auotmount with direct maps

Do you by any chance had the permission of those files (the auto_master and auto-direct) with the executable bit on ? If yes the permisson should be changed to 644.
Steve Labar
Valued Contributor

Re: NFS V3 Auotmount with direct maps

Have you verified your NFS server and NFS client are enabled on their respective stations? Also, on the server, ensure the directories have been properly exported. Do an 'exportfs' to verify your desired directories are available for export. If they are not on the list add them in /etc/exports, then do a 'exportfs -a' to export.

Good Luck

Steve

Re: NFS V3 Auotmount with direct maps

John,

Try this in your auto_master
/- /etc/auto.direct
/hmc la:/export/home/hmc
Here is what my auto_master map looks like.
============================
/- /etc/auto.ufs
/- /etc/auto.project
/- /etc/auto.cds
/- /etc/auto.net
============================
Here is my auto.project map.
/project/weights/bin -rw,intr pevt201:/exports/project05/weights/bin
/project/weights/cintro -rw,intr,wsize=32768,rsize=32768 esa200:/exports/project/weights/cintro
/project/weights/datamgt -rw,intr,wsize=32768,rsize=32768 esa200:/exports/project/weights/datamgt
/project/weights/kbpd -rw,intr,wsize=32768,rsize=32768 esa200:/exports/project/weights/kbpd


Sudhakar J_1
Advisor

Re: NFS V3 Auotmount with direct maps

Hi,

I Think if you want to work with NFS v3 then only AUTOFS will work with it so disable the automount and try.

Regards

Sudhakar J
tomorrow is just another day
John Downs_1
Frequent Advisor

Re: NFS V3 Auotmount with direct maps


Hello and thanks for your responses. I should given you the following info: Everything is currently working now with NFS V2. When I change /etc/rc.config.d/nfsconf variable
AUTOFS to 1 and restart NFS, everything except the direct maps work. I have tried all of the below configurations.
1. Both AUTOFS and AUTOMOUNT set to 1
2. Only AUTOFS set to 1 AUTOMOUNT set to 0
In both of the above case AUTO_MASTER was set to /etc/auto_master and this file contained +auto.master. So if a querky way it was getting auto.master from NIS. When I changed AUTO_MASTER to auto_master and/or auto.master it still failed.

However, when I put the full auto_master(the same map that is on the server) map on the clients everything works! NFS V3 indirect and direct maps.

I would rather not do it this way. Any Ideas!

Thanks Again

-john
I'd rather be fly fishing for trout!