How to configure NFSv4 only server in CentOS 6.10











up vote
1
down vote

favorite












I am trying to configure NFSv4 only server in CentOS 6.10



I've disabled NFS v2 and v3 using this conf file /etc/sysconfig/nfs




MOUNTD_NFS_V2="no"
MOUNTD_NFS_V3="no"
RPCNFSDARGS="-N 2 -N 3"


I followed this link for reference.



As per this document NFSv4 doesn't need rpcbind anymore.



But if I start nfs service without starting rpcbind service I am getting below error. NFS service is not starting.




[root@server ~]# service rpcbind status
rpcbind is stopped
[root@server ~]# service nfs restart
Shutting down NFS daemon: [FAILED]
Shutting down NFS mountd: [ OK ]
Shutting down NFS quotas: [FAILED]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]
Starting NFS mountd: [ OK ]
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
[FAILED]
[root@server ~]#



If I start rpcbind then nfs service is starting properly.




[root@server ~]# service rpcbind restart
Stopping rpcbind: [ OK ]
Starting rpcbind: [ OK ]
[root@server ~]# service nfs restart
Shutting down NFS daemon: [ OK ]
Shutting down NFS mountd: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Shutting down RPC idmapd: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
Starting RPC idmapd: [ OK ]
[root@server ~]#



How to start nfsv4 without rpcbind ? Is it possible ?



NFSv4 still need rpcbind ?



My kernel version is 2.6.32-754.6.3.el6.x86_64










share|improve this question


























    up vote
    1
    down vote

    favorite












    I am trying to configure NFSv4 only server in CentOS 6.10



    I've disabled NFS v2 and v3 using this conf file /etc/sysconfig/nfs




    MOUNTD_NFS_V2="no"
    MOUNTD_NFS_V3="no"
    RPCNFSDARGS="-N 2 -N 3"


    I followed this link for reference.



    As per this document NFSv4 doesn't need rpcbind anymore.



    But if I start nfs service without starting rpcbind service I am getting below error. NFS service is not starting.




    [root@server ~]# service rpcbind status
    rpcbind is stopped
    [root@server ~]# service nfs restart
    Shutting down NFS daemon: [FAILED]
    Shutting down NFS mountd: [ OK ]
    Shutting down NFS quotas: [FAILED]
    Shutting down NFS services: [ OK ]
    Starting NFS services: [ OK ]
    Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
    rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
    [FAILED]
    Starting NFS mountd: [ OK ]
    Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
    rpc.nfsd: unable to set any sockets for nfsd
    [FAILED]
    [root@server ~]#



    If I start rpcbind then nfs service is starting properly.




    [root@server ~]# service rpcbind restart
    Stopping rpcbind: [ OK ]
    Starting rpcbind: [ OK ]
    [root@server ~]# service nfs restart
    Shutting down NFS daemon: [ OK ]
    Shutting down NFS mountd: [ OK ]
    Shutting down NFS quotas: [ OK ]
    Shutting down NFS services: [ OK ]
    Shutting down RPC idmapd: [ OK ]
    Starting NFS services: [ OK ]
    Starting NFS quotas: [ OK ]
    Starting NFS mountd: [ OK ]
    Starting NFS daemon: [ OK ]
    Starting RPC idmapd: [ OK ]
    [root@server ~]#



    How to start nfsv4 without rpcbind ? Is it possible ?



    NFSv4 still need rpcbind ?



    My kernel version is 2.6.32-754.6.3.el6.x86_64










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to configure NFSv4 only server in CentOS 6.10



      I've disabled NFS v2 and v3 using this conf file /etc/sysconfig/nfs




      MOUNTD_NFS_V2="no"
      MOUNTD_NFS_V3="no"
      RPCNFSDARGS="-N 2 -N 3"


      I followed this link for reference.



      As per this document NFSv4 doesn't need rpcbind anymore.



      But if I start nfs service without starting rpcbind service I am getting below error. NFS service is not starting.




      [root@server ~]# service rpcbind status
      rpcbind is stopped
      [root@server ~]# service nfs restart
      Shutting down NFS daemon: [FAILED]
      Shutting down NFS mountd: [ OK ]
      Shutting down NFS quotas: [FAILED]
      Shutting down NFS services: [ OK ]
      Starting NFS services: [ OK ]
      Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
      rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
      [FAILED]
      Starting NFS mountd: [ OK ]
      Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
      rpc.nfsd: unable to set any sockets for nfsd
      [FAILED]
      [root@server ~]#



      If I start rpcbind then nfs service is starting properly.




      [root@server ~]# service rpcbind restart
      Stopping rpcbind: [ OK ]
      Starting rpcbind: [ OK ]
      [root@server ~]# service nfs restart
      Shutting down NFS daemon: [ OK ]
      Shutting down NFS mountd: [ OK ]
      Shutting down NFS quotas: [ OK ]
      Shutting down NFS services: [ OK ]
      Shutting down RPC idmapd: [ OK ]
      Starting NFS services: [ OK ]
      Starting NFS quotas: [ OK ]
      Starting NFS mountd: [ OK ]
      Starting NFS daemon: [ OK ]
      Starting RPC idmapd: [ OK ]
      [root@server ~]#



      How to start nfsv4 without rpcbind ? Is it possible ?



      NFSv4 still need rpcbind ?



      My kernel version is 2.6.32-754.6.3.el6.x86_64










      share|improve this question













      I am trying to configure NFSv4 only server in CentOS 6.10



      I've disabled NFS v2 and v3 using this conf file /etc/sysconfig/nfs




      MOUNTD_NFS_V2="no"
      MOUNTD_NFS_V3="no"
      RPCNFSDARGS="-N 2 -N 3"


      I followed this link for reference.



      As per this document NFSv4 doesn't need rpcbind anymore.



      But if I start nfs service without starting rpcbind service I am getting below error. NFS service is not starting.




      [root@server ~]# service rpcbind status
      rpcbind is stopped
      [root@server ~]# service nfs restart
      Shutting down NFS daemon: [FAILED]
      Shutting down NFS mountd: [ OK ]
      Shutting down NFS quotas: [FAILED]
      Shutting down NFS services: [ OK ]
      Starting NFS services: [ OK ]
      Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
      rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
      [FAILED]
      Starting NFS mountd: [ OK ]
      Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
      rpc.nfsd: unable to set any sockets for nfsd
      [FAILED]
      [root@server ~]#



      If I start rpcbind then nfs service is starting properly.




      [root@server ~]# service rpcbind restart
      Stopping rpcbind: [ OK ]
      Starting rpcbind: [ OK ]
      [root@server ~]# service nfs restart
      Shutting down NFS daemon: [ OK ]
      Shutting down NFS mountd: [ OK ]
      Shutting down NFS quotas: [ OK ]
      Shutting down NFS services: [ OK ]
      Shutting down RPC idmapd: [ OK ]
      Starting NFS services: [ OK ]
      Starting NFS quotas: [ OK ]
      Starting NFS mountd: [ OK ]
      Starting NFS daemon: [ OK ]
      Starting RPC idmapd: [ OK ]
      [root@server ~]#



      How to start nfsv4 without rpcbind ? Is it possible ?



      NFSv4 still need rpcbind ?



      My kernel version is 2.6.32-754.6.3.el6.x86_64







      linux nfs centos-6






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      max

      2,45294161




      2,45294161



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374977%2fhow-to-configure-nfsv4-only-server-in-centos-6-10%23new-answer', 'question_page');
          }
          );

          Post as a guest





































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374977%2fhow-to-configure-nfsv4-only-server-in-centos-6-10%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          Popular posts from this blog

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix