Tell automount to use NFSv2 on AIX 6.1


 
Thread Tools Search this Thread
Operating Systems AIX Tell automount to use NFSv2 on AIX 6.1
# 1  
Old 08-07-2015
Tell automount to use NFSv2 on AIX 6.1

Hello,

I have a CentOS 6.1 server exporting a filesystem with read/write to world. I have an AIX Client mouting this filesystem from an NIS map. One of our applications is giving an error and after a little research, we found that we need the AIX Client to mount this filesystem with NFS V2 for the application to work.

Will you please help me with the below questions?

1- How can I tell which version of NFS is used to mount a specific mount?
I did google this and the forums suggest using rpcinfo -p but the results are not very clear. My output below.


Code:
bash-4.2#  rpcinfo -p
   program vers proto   port  service
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100007    2   tcp    904  ypbind
    100007    2   udp    904  ypbind
    100007    1   tcp    904  ypbind
    100007    1   udp    904  ypbind
    100068    2   udp  32847  cmsd
    100068    3   udp  32847  cmsd
    100068    4   udp  32847  cmsd
    100068    5   udp  32847  cmsd
    100083    1   tcp  32839  ttdbserver
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    200006    1   udp   2049
    200006    4   udp   2049
    200006    1   tcp   2049
    200006    4   tcp   2049
    100099    1   udp  32863  autofs
    100005    1   tcp  59502  mountd
    100005    2   tcp  59502  mountd
    100005    3   tcp  59502  mountd
    100005    1   udp  58635  mountd
    100005    2   udp  58635  mountd
    100005    3   udp  58635  mountd
    400005    1   udp  58636

I want to know NFS version used to mount /u/mego/INTERSITE.


2- How can I explictly use NFSv2 to mount on the AIX Client?

Thanks,
Pocodot
# 2  
Old 08-07-2015
Not that familiar, but how to 'set' a specific version, and more can be read in: https://www.unix.com/man-page/All/5/nfs/
# 3  
Old 08-07-2015
Before changing NFS to version 2, please try to do the following from AIX side:

Code:
# rpcinfo -p LINUX-SERVER
# showmount -e LINUX-SERVER
# ypcat -k auto.master ## or where is your NFS mount defined?
# mount (OPTIONS FROM ypcat) LINUX-SERVER:/SHARE /mnt

# 4  
Old 08-07-2015
Without seeing your set of maps it is hard to give a precise answer but you probably should consider a direct map for your NFSv2 AIX client.
# 5  
Old 08-07-2015
Hello,

Here is the map.
Code:
swissnei:root>ypcat -k mapmego | grep INTERSITE
INTERSITE -rw,soft      wrtcentblt:/u/dpl/INTERSITE

Unfortunately this map is accessed across multiple machines and they dont need to mount it with NFSv2 so changing the NFS Version from the server or NIS end (if that is possible) is ruled out.


Here is what I did to get it working:
Code:
swissnei:root>cat /etc/mapmego
INTERSITE -rw,soft,vers=2      wrtcentblt:/u/dpl/INTERSITE
+mapmego
swissnei:root>

And voila! The application ran perfect. I think preeceding the mount on local file did the trick.

I'm still not clear on one thing though. How can I tell if any mount is NFSv2 or NFSv3 on AIX?


Thanks,
Pocodot
# 6  
Old 08-07-2015
Quote:
Originally Posted by pocodot
I'm still not clear on one thing though. How can I tell if any mount is NFSv2 or NFSv3 on AIX?
I am glad you solved your problem. The command you are looking for is mknfsmnt and the option you need is -K <version>. For more information see the man page of mknfsmnt.

I strongly suggest to use this command to create NFS mounts even if it is a little cumbersome at first. It guarantees that AIX is perfectly aware of all the intricacies needed to have it available across reboots (doing the same "on your own" by patching the necessary files might work but is as well prone to errors the program will not make).

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 7  
Old 08-07-2015
The easiest way to see if AIX is using NFSv2, versus NFSv3 or NFSv4 is to check the output of nfsstat -rc. The -r is for rpc information, the -c is for client information (-s would be for AIX as a NFS server).

The NFSv3 and NFSv4 rpc info is Connection oriented based. and NFSv2 - being UDP - is Connectionless oriented

Code:
michael@x071:[/home/michael]nfsstat -rc

Client rpc:
Connection oriented
calls      badcalls   badxids    timeouts   newcreds   badverfs   timers     
8132122    1          1          0          0          0          0          
nomem      cantconn   interrupts 
0          0          0          
Connectionless
calls      badcalls   retrans    badxids    timeouts   newcreds   badverfs   
0          0          0          0          0          0          0          
timers     nomem      cantsend   
0          0          0

Another easy way to see is to start NFS. Depending on your level of AIX you will be able to see NFS stats for NFSv2 and NFSv3 only, or perhaps including NFSv4 - screen excerpt for topas

Code:
NFS (calls/sec)
SerV2         0
CliV2         0
SerV3         0
CliV3       201
SerV4         0
CliV4         0

Hope this helps!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Automount issue

Hi there, I have a strange problem, I have a NFS server running AIX 7.1 TL3 SP3, let's call it server A. I have another AIX 7.1 TL3 SP3 server, let's call it server B, that's automounting a filesystem from server A. When server B is automounting the filesystem from server A, I can't see any... (3 Replies)
Discussion started by: ce9888
3 Replies

2. Red Hat

Automount in RHEL

Hello experts, On my RHEL box when i mount a nfs file system using autofs, the df -t shows the file system as nfs only. For which mounts does it report the filesystem as autofs. ?? I actually want to see the filesystem getting reported as autofs instead of nfs. Pls guide me I... (1 Reply)
Discussion started by: achak01
1 Replies

3. AIX

AIX 6.1 automount issues from Linux/Openfiler

Hello folks... have a problem here hopefully can find some direction with... we have a network using NIS authentication and automount for home dirs and other shared resources. Recently migrated some of our shares off of an EMC Celerra to an Openfiler solution. All of the clients in the NIS domain... (0 Replies)
Discussion started by: cruzshark
0 Replies

4. AIX

AutoMount in AIX

Hi Admins, I am new to AIX, pls help me on my below doubts 1) I have received below alerts Orange : PORTAL detected Filesystem (/nfs/sources) is 92.07% Utilized Here Orange is server name. When i did df -k in orange i do not see /nfs/sources filesystem in output. Doubts 1) how to... (2 Replies)
Discussion started by: saurabh84g
2 Replies

5. Solaris

Automount in Solaris 10

Hi friends I'm a newbie trying to automount a nfs shared directory. Below is the configuration I'm using FreeBSD machine as NFS server. IP Address - 192.168.1.60 # cat /etc/exports /shared 192.168.1.50 Solaris 10 as NFS client. IP Address - 192.168.1.50 # cat... (1 Reply)
Discussion started by: pankajj
1 Replies

6. Shell Programming and Scripting

automount script

I'm attempting to take an fstab that looks something like this: /proc /proc proc rw,nosuid,nodev,noexec 0 0 /sys /sys sysfs rw,nosuid,nodev,noexec 0 0 /dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 /dev/pts /dev/pts devpts mode=0622 0 0... (6 Replies)
Discussion started by: unclecameron
6 Replies

7. AIX

problem with automount in Aix

Dear Frndz, I have a problem in automount. please find the config file entry for automount /etc/auto_master /- /mount.map I have specified all the mappings in /mount.map The service is operative. But when i cd into the directory it is not mounting with the server. Could you... (6 Replies)
Discussion started by: sriram.s
6 Replies

8. UNIX for Advanced & Expert Users

AutoMount

Hi All How do I do a auto mount to a directory in a different unix server. I am using Solaris. Please advise!! TIA Jana (7 Replies)
Discussion started by: janavenki
7 Replies

9. UNIX for Advanced & Expert Users

Automount

My site has a few sun solaris server including out NIS server and NFS server on solaris machines. we also have few suse linux and redhat linux machine. All our home directory is on our NFS server(sun Solaris) and this is automounted through /etc/auto_master and /etc/auto_home this worked fine... (1 Reply)
Discussion started by: hassan2
1 Replies

10. UNIX for Advanced & Expert Users

automount

I install an external disk on my sun solaris 8 this went fine and I was able to access all filesystem on the disk. the new disk is mounted on /local then 6 hours later files under /local/files was 1 byte in size at the same time I received the following error message in... (4 Replies)
Discussion started by: hassan2
4 Replies
Login or Register to Ask a Question