Does the nfs client support NFSv4 replicas?

Issues related to applications and software problems
Post Reply
pmadrid
Posts: 4
Joined: 2018/08/09 06:49:25

Does the nfs client support NFSv4 replicas?

Post by pmadrid » 2018/10/15 15:54:19

I wondered if the CentOS 7 nfs client supports NFSv4 replicas. I've been trying to configure it with no luck, and I don't really know if it's because of a wrong configuration or because the client does not yet support this functionality.

In my particular deployment the server seems to support it, and the server logs show the following:

================
[...]
oct 15 17:29:23 nfs03.nfs.com rpc.mountd[1332]: method_list(/backup04@nfs01.nfs.com:/backup04@nfs03.nfs.com)
oct 15 17:29:23 nfs03.nfs.com rpc.mountd[1332]: converted to /backup04@nfs01.nfs.com:/backup04@nfs03.nfs.com
oct 15 17:29:23 nfs03.nfs.com rpc.mountd[1332]: replicas listsize=2
oct 15 17:29:23 nfs03.nfs.com rpc.mountd[1332]: nfs01.nfs.com:/backup04
oct 15 17:29:23 nfs03.nfs.com rpc.mountd[1332]: nfs03.nfs.com:/backup04
[...]
================

But if the server fails the client doesn't try to access the replica. Following the exports man page I configured the export in the following manner:

================
[...]
/exports/backup04 *(ro,sync,root_squash,insecure,nohide,no_subtree_check,sec=krb5,replicas=/backup04@nfs01.nfs.com:/backup04@nfs03.nfs.com)
================

Am I missing something? Do I have to configure something in the client?

Thank you in advance. Regards
Francisco Madrid-S.

Post Reply