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.
Before changing NFS to version 2, please try to do the following from AIX side:
# 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
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.
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).
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
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