LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2011, 08:32 PM   #1
Rapitharian
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
NFS Question.


I have a question about NFS and CentOS 6.0.
Here is the environment:
Server running VMware's esxi 3.5 (Fully patched) 10.1.1.50
Server running CentOS 5.5 with NFS. 10.1.1.51
With the systems in the above config everything is working fine.

Install a new hard drive in the CentOS server and install CentOS 6.0. Use the same IP 10.1.1.51. Configure NFS, the VM server can't attach to the NFS share.

Here is the config of the NFS server:
Firewall Disabled
SELinux Disabled
NFS installed and running.
NFS-Utils installed.
Contents of /etc/exports
/fileshare 10.1.1.0/24 (rw,async,no_root_squash)
/etc/hosts.allow is empty
/etc/hosts.deny is empty
Perms on /fileshare 755

rpcinfo -p 10.1.1.51
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 51781 status
100024 1 tcp 33679 status
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 41232 nlockmgr
100021 3 udp 41232 nlockmgr
100021 4 udp 41232 nlockmgr
100021 1 tcp 51294 nlockmgr
100021 3 tcp 51294 nlockmgr
100021 4 tcp 51294 nlockmgr
100005 1 udp 44019 mountd
100005 1 tcp 57834 mountd
100005 2 udp 44019 mountd
100005 2 tcp 57834 mountd
100005 3 udp 44019 mountd
100005 3 tcp 57834 mountd

I have confirmed I can telnet to the ports listed.
Any clue why the setup with CentOS 6.0 doesn't work? Is this a NFS4 vs. NFS3 thing? Is there a way to force CentOS to use NFS3? I am pretty sure the CentOS 5.5 server is using NFS4. I am at a loss and any help is appreciated.

-Rap
 
Old 08-05-2011, 12:05 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
There's a good HOWTO etc here http://www.linuxtopia.org/online_boo...ion/index.html Chap 18. It mentions the differences in versions.
iirc, NFSv4 (amongst other things) has rpc.mountd & portmap functionality built in, so you don't need those daemons.
It also goes into details about exportfs file maps 18.7.1.1. Using exportfs with NFSv4
 
Old 08-05-2011, 07:30 PM   #3
Rapitharian
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
After reading through section 18 of the link I did find a little new information but, it didn't help.

I learned my exports file need to be formatted this way:
/ *(ro,fsid=0)
/backups 10.1.1.0/255.255.255.0(rw,async,no_root_squash,nohide)

Any other Ideas?
-Rap
 
Old 08-06-2011, 11:48 AM   #4
Rapitharian
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I found the issue, it was a ID10T error.
I needed to remove the old mount from the client and reestablish with the mount with the rebuild (CentOS 6) server.
I did find that for whatever reason I could not us bit masks (/24) in my files I had to use subnet masks (255.255.255.0) to get the exports to work.
-Rap
 
  


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
NFS Question benjamin_whitehead Linux - Newbie 4 10-27-2010 09:34 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
NFS Question kdelover Linux - Server 1 02-27-2010 06:49 AM
nfs question phonecian Linux - Security 3 10-02-2005 09:34 PM
NFS question sassman Linux - Networking 4 11-17-2004 12:24 PM


All times are GMT -5. The time now is 02:14 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