Are you sure that your CentOS 7 box exports the file system also as NFS 2?
That is probably the problem. Do you know how to enable that?
Thanks,
Mark
________________________________
From: Ralph Lange [[email protected]]
Sent: Thursday, January 19, 2017 7:08 AM
To: Mark Rivers
Cc: EPICS Tech Talk
Subject: Re: Problem NFS mounting Centos 7 file systems from vxWorks 5.5
Hi Mark,
You do recall that VxWorks 5.5 only has an NFS 2 implementation, right?
(See http://www.vxdev.com/docs/vx55man/vxworks/netguide/c-remAccApps.html#87831)
Are you sure that your CentOS 7 box exports the file system also as NFS 2?
Cheers,
~Ralph
On Thu, Jan 19, 2017 at 1:51 PM, Mark Rivers <[email protected]<mailto:[email protected]>> wrote:
But one observation I made is that Centos 7 uses NFS 4.
To my understanding NFS 4 does not map the numerical user/group id
"1:1", by default, but wants to translate the remote user id into a local one in some way.
And this is a security improvement.
Can you mount Centos 7 -> Centos 7 ?
Yes, we have successfully NFS mounted Centos 7 file systems from the following systems:
Centos 7
RHEL 6
Fedora 9
Fedora 15
Fedora 23
vxWorks 6.9.4
The only one that does not seem to work is vxWorks 5.5.
Han wrote:
Do you enable firewall service?
No, firewalld is not running.
Mark
________________________________________
From: Torsten Bögershausen [[email protected]<mailto:[email protected]>]
Sent: Thursday, January 19, 2017 12:37 AM
To: Mark Rivers; [email protected]<mailto:[email protected]>
Subject: Re: Problem NFS mounting Centos 7 file systems from vxWorks 5.5
Is anyone running vxWorks 5.5 with a Centos 7/ RHEL 7, etc. modern NFS server?
Not me.
But one observation I made is that Centos 7 uses NFS 4.
To my understanding NFS 4 does not map the numerical user/group id
"1:1", by default, but wants to translate the remote user id into a local one
in some way.
And this is a security improvement.
In short: We needed to tweak a file called /etc/idmapd.conf.
I can dig out the details later.
Can you mount Centos 7 -> Centos 7 ?
On 19/01/17 02:00, Mark Rivers wrote:
Folks,
We are mostly running VxWorks 6.9.4 now, and with that we have no problem NFS
mounting file systems on Centos 7.
However, we have a few IOCs that still need to run VxWorks 5.5. These can
mount file systems on Centos 5 servers fine. However, on Centos 7 we see the
following:
- The NFS mount command from vxWorks succeeds with no error
- showmount on the Centos 7 system shows that the vxWorks system has
mounted the file system OK
- However, the vxWorks system cannot actually read or write any files
on the file system.
If I type the “ls” command in a valid directory I get
Cant’ open “null”.
Value=-1
The problem is not file permissions, it works fine if we are running the
identical IOC with vxWorks 6.9.4, and we have tried setting the files in that
directory to mode 755.
Is anyone running vxWorks 5.5 with a Centos 7/ RHEL 7, etc. modern NFS server?
If so, how does one get it to work?
Thanks,
Mark