LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS Question. (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-question-895633/)

Rapitharian 08-04-2011 08:32 PM

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

chrism01 08-05-2011 12:05 AM

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

Rapitharian 08-05-2011 07:30 PM

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

Rapitharian 08-06-2011 11:48 AM

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


All times are GMT -5. The time now is 12:57 PM.