LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-08-2013, 09:08 AM   #1
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 195

Rep: Reputation: 22
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)
 
Old 11-08-2013, 10:08 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,706

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
#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
 
Old 11-08-2013, 02:33 PM   #3
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 195

Original Poster
Rep: Reputation: 22
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"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Centos 5.4 Issue: "CentOS CD Not found in any of the media drives. Please i g.navink Red Hat 1 04-07-2010 04:12 PM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 11:40 AM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration