Operating System - HP-UX
1829556 Members
1683 Online
109992 Solutions
New Discussion

Can't get NFS v3 with automounter

 
SOLVED
Go to solution
Lars-Olof Fermvall
Frequent Advisor

Can't get NFS v3 with automounter

Hello!

I'm running HP-UX 10.20 (s700) and I think have all the latest NFS patches installed (as far I can can tell). I am mounting a volume on a NAS device using NFS. If I mount the volume without using the automounter, I will get NFS v3, but when I mount the same volume using the automounter, I always get version 2.

Attached is output from swlist -l fileset, /etc/rc.conf.d/nfsconf and output from an nfsstat command showing the different results from mounting the same file system with and without automounter.

I must be able to have files >2 Gbyte on the NAS device, so NFS version 2 is not an option.

What have I done wrong?

Regards,
Lars-Olof
Nemo enim saltat sobrius, nice forte insanit
7 REPLIES 7
Jeff Schussele
Honored Contributor
Solution

Re: Can't get NFS v3 with automounter

Hi Lars-Olof,

Couple of things to try:

1) In the master map (/etc/auto_master) the third field is for mount options. You can try something like the following

/mnt_point /etc/auto_nas vers=3

NOTE: IF you wish to specify the option in the direct map (/etc/auto_nas) it's the 2nd field you must use - like as follows:

/mnt_point vers=3 nas_dev:/export_dir

Also you may wish to obtain PHNE_22288 NFS/NIS cumulative megapatch - here's the link

http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHNE_22288&context=hpux:700:10:20

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Lars-Olof Fermvall
Frequent Advisor

Re: Can't get NFS v3 with automounter

Thanks for that.

I am still having problems: First of all, do I have to have Autofs running to get this to work? The changes you suggested (adding -version=3 options) are ignored. I think I have all the SW, but I don't seem to get Autofs to run - I should see it in SAM? With Autofs selected I get Automounter not running, but maybe autofs shows up elsewhere?

I have PHNE_25234 installed (supercedes PHNE_22288) and have copied files as per the instructions.

I will continue looking tomorrow.
Nemo enim saltat sobrius, nice forte insanit
Ian Cameron
Frequent Advisor

Re: Can't get NFS v3 with automounter

Morning Lars (it is here anyways,

When I upgraded to 11.11 I found that automount was very 'flaky' for lack of a better term and switched over to autofs in order to get NFSv3 type mounts and eliminate the problems I was having. Things have been fine ever since and my users like being able to directly search the automounted directories without having to cd in and search each mounted directory seperately.

When we were running 10.20 I did not see the same issues with using the old 'automount'
method that I ran into with 11i.

Ian
Shannon Petry
Honored Contributor

Re: Can't get NFS v3 with automounter

automount does NOT support NFS version 3 that I am aware of. To use NFS V3 you need to use autofs.

To enable, simply set AUTOFS=1 in /etc/rc.config.d/nfsconf

Regards,
Shannon
Microsoft. When do you want a virus today?
Lars-Olof Fermvall
Frequent Advisor

Re: Can't get NFS v3 with automounter

Hi there!

Thanks for all your help, guys! I now have it working! I am now running Autofs and have configured the mount manually.

Autofs initially did not work, but copying the files from /usr/newconfig that were required helped.

Is there no support for Autofs in SAM? All I get is 'Automounter not running', which is true (Autofs is).

Regards,
Lars-Olof
Nemo enim saltat sobrius, nice forte insanit
kish_1
Valued Contributor

Re: Can't get NFS v3 with automounter

After installing the nfs patch's copy the new nfsconf from /usr/newconfig/etc/rc.config.d and update AUTOFS=1
share the power of the knowledge
Lars-Olof Fermvall
Frequent Advisor

Re: Can't get NFS v3 with automounter

Babu,

Thanks. When I had copied the files listed in instructions for the NIS/NFS 'megapatch' I could get Autofs. No I will see if can work out how to assign points - my last attempt seems to have failed...

Again, thanks all!
Nemo enim saltat sobrius, nice forte insanit