LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NFS on CentOS 6 can talk to Centos 5 but not Centos 6 clients (https://www.linuxquestions.org/questions/linux-server-73/nfs-on-centos-6-can-talk-to-centos-5-but-not-centos-6-clients-4175483891/)

deathsfriend99 11-08-2013 09:08 AM

NFS on CentOS 6 can talk to Centos 5 but not Centos 6 clients
 
My setup is running nfs and nis. The CentOS 6.x client can't mount CentOS 6.x machine, but can connect fine to a CentOS 5.x. The CentOS 5.x machine can also mount a CentOS 6.x machine fine.

mount.nfs compton:/compton /temp -vvv
mount.nfs: trying text-based options 'vers=4,addr=9.9.9.9,clientaddr=9.9.9.31'
mount.nfs: mount(2): Connection refused


Iptables disabled
SElinux disabled
/etc/exports:
Code:

/compton        @nis1(rw,sync,nohide,root_squash) @nis2(rw,sync,nohide,root_squash)

lleb 11-08-2013 10:08 AM

#1, never disable SELinux, set it to permissive mode, but dont disable it.

#2. you are being refused connection, that means a user, permission, IP range, etc... something along that line is bad. This is not a NFS issue, but a network permissions issue.

#3. you also do not have any fsid for the exports. that can cause a permissions issue.

#4. try mount -t nfsv4 instead of mount.nfs

#5. have you run exportfs -a

deathsfriend99 11-08-2013 02:33 PM

So it looks like an incompatibility with NFS3 vs NFS4. My CentOS 5.x machines have been running this config for years without issue. As soon as I moved to CentOS 6.x, they default to NFS4. I can force NFS3, but this is not the solution I was hoping for.

On most systems I can do cd /nfs/compton1 for compton:/compton/disk1
This is accomplished via an auto.nfs.
In the end, forcing nfs to mount version 3 in the auto.nfs file fixed
Code:

# Issue the output string that autofs needs to make the mount
echo -e "-fstype=nfs,nfsvers=3,rsize=8192,wsize=8192,intr  $MACHINE.mydomain.com:/$MACHINE$DIRECTORY"



All times are GMT -5. The time now is 10:34 PM.