Re: NFS4: CentOS 7 client with a Fedora 32 server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux