On 2020-07-27 22:03, Braden McDaniel wrote:
On Thu, 2020-07-16 at 10:03 +0800, Ed Greshko wrote:
> On 2020-07-15 22:20, Braden McDaniel wrote:
>> I'd like to support a CentOS 7 client from a Fedora 32 NFS4 server.
>> Other Fedora 32 clients can mount the volume just fine using:
>>
>> $ mount -t nfs4 my-server:/my-export-root/foo /foo
>>
>> But when I try this from a CentOS 7 client, I get:
>>
>> mount.nfs4: Operation not permitted
>>
>> Is there any bit of configuration I can do on the client and/or
>> server
>> to make this work, short of allowing fallback to pre-4 NFS
>> versions?
> I think you need to show a bit more of your configuration. I just
> configured a nfs server on an
> F32 system and was able to mount on a centos7 system just fine.
>
> [egreshko@cos7 ~]$ cat /etc/centos-release
> CentOS Linux release 7.7.1908 (Core)
> [egreshko@cos7 ~]$ sudo mount f32k:/home/egreshko /mnt
> [egreshko@cos7 ~]$ df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/mapper/centos-root 29861636 4256540 25605096 15% /
> /dev/vda1 1038336 164476 873860 16% /boot
> f32k:/home/egreshko 29296640 8147200 19638272 30% /mnt
>
> Or are you asking a different question.
Maybe. :-)
I am asking specifically about NFS4. It is not obvious from your
example that the remote volume is being mounted using NFS4.
Yes, I am using NFS4. On the centos client....
[egreshko@cos7 ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos-root 29861636 4524940 25336696 16% /
/dev/vda1 1038336 205688 832648 20% /boot
f32k:/home/egreshko 29296640 8154368 19631104 30% /mnt
[egreshko@cos7 ~]$ mount | grep home
f32k:/home/egreshko on /mnt type nfs4
(rw,relatime,vers=4.1,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,
sec=sys,clientaddr=2001:b030:112f:2::41,local_lock=none,addr=2001:b030:112f:2::30)
As for my configuration, in /etc/nfs.conf, I have set:
[nfsd]
vers2=n
vers3=n
I have not altered the nfs.conf. I see no need to do that.
Apart from that, it has the Fedora 32 installation defaults.
/etc/exports looks like:
/my-export-root/foo *(rw)
For my exports on the F32 side I have...
/home/egreshko 192.168.0.0/16(rw,no_root_squash) 2001:b030:112f::/56(rw,no_root_squash)
Unfortunately, I haven't been able to turn up any useful log
messages
on either side.
--
The key to getting good answers is to ask good questions.