mount nfs with nolock option, do not take effect

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to mount a nfs volume with nolock option, and it does mount success.
But, the result seem that, the nolock option doesn't work.



[root@k8s-worker-2 opt]# umount nfs-test1/
[root@k8s-worker-2 opt]# mount -t nfs -o nolock,local_lock=all 369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ /opt/nfs-test1/
[root@k8s-worker-2 opt]# mount | grep nfs-test1
369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ on /opt/nfs-test1 type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.83.54,local_lock=none,addr=192.168.83.57)


even the local_lock option doesn't seems ok.







share|improve this question


























    up vote
    1
    down vote

    favorite












    I want to mount a nfs volume with nolock option, and it does mount success.
    But, the result seem that, the nolock option doesn't work.



    [root@k8s-worker-2 opt]# umount nfs-test1/
    [root@k8s-worker-2 opt]# mount -t nfs -o nolock,local_lock=all 369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ /opt/nfs-test1/
    [root@k8s-worker-2 opt]# mount | grep nfs-test1
    369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ on /opt/nfs-test1 type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.83.54,local_lock=none,addr=192.168.83.57)


    even the local_lock option doesn't seems ok.







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I want to mount a nfs volume with nolock option, and it does mount success.
      But, the result seem that, the nolock option doesn't work.



      [root@k8s-worker-2 opt]# umount nfs-test1/
      [root@k8s-worker-2 opt]# mount -t nfs -o nolock,local_lock=all 369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ /opt/nfs-test1/
      [root@k8s-worker-2 opt]# mount | grep nfs-test1
      369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ on /opt/nfs-test1 type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.83.54,local_lock=none,addr=192.168.83.57)


      even the local_lock option doesn't seems ok.







      share|improve this question














      I want to mount a nfs volume with nolock option, and it does mount success.
      But, the result seem that, the nolock option doesn't work.



      [root@k8s-worker-2 opt]# umount nfs-test1/
      [root@k8s-worker-2 opt]# mount -t nfs -o nolock,local_lock=all 369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ /opt/nfs-test1/
      [root@k8s-worker-2 opt]# mount | grep nfs-test1
      369d24acc5-iba25.cn-shanghai.nas.aliyuncs.com:/ on /opt/nfs-test1 type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.83.54,local_lock=none,addr=192.168.83.57)


      even the local_lock option doesn't seems ok.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 16 at 8:01

























      asked Mar 16 at 7:53









      Jeff

      85




      85




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          By default mount begins from upper NFS protocol version and descends to lower. In your case NFS server supports version 4 therefore version 4 will be used. But NFS4 doesn't support lock/nolock and local_lock options.
          man 5 nfs. If you want to use this lock options, then you need append vers=3 option to your mount command.






          share|improve this answer




















          • I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
            – Yurij Goncharuk
            Mar 16 at 10:12











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430570%2fmount-nfs-with-nolock-option-do-not-take-effect%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          By default mount begins from upper NFS protocol version and descends to lower. In your case NFS server supports version 4 therefore version 4 will be used. But NFS4 doesn't support lock/nolock and local_lock options.
          man 5 nfs. If you want to use this lock options, then you need append vers=3 option to your mount command.






          share|improve this answer




















          • I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
            – Yurij Goncharuk
            Mar 16 at 10:12















          up vote
          0
          down vote



          accepted










          By default mount begins from upper NFS protocol version and descends to lower. In your case NFS server supports version 4 therefore version 4 will be used. But NFS4 doesn't support lock/nolock and local_lock options.
          man 5 nfs. If you want to use this lock options, then you need append vers=3 option to your mount command.






          share|improve this answer




















          • I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
            – Yurij Goncharuk
            Mar 16 at 10:12













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          By default mount begins from upper NFS protocol version and descends to lower. In your case NFS server supports version 4 therefore version 4 will be used. But NFS4 doesn't support lock/nolock and local_lock options.
          man 5 nfs. If you want to use this lock options, then you need append vers=3 option to your mount command.






          share|improve this answer












          By default mount begins from upper NFS protocol version and descends to lower. In your case NFS server supports version 4 therefore version 4 will be used. But NFS4 doesn't support lock/nolock and local_lock options.
          man 5 nfs. If you want to use this lock options, then you need append vers=3 option to your mount command.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 16 at 10:09









          Yurij Goncharuk

          2,2582521




          2,2582521











          • I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
            – Yurij Goncharuk
            Mar 16 at 10:12

















          • I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
            – Yurij Goncharuk
            Mar 16 at 10:12
















          I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
          – Yurij Goncharuk
          Mar 16 at 10:12





          I've just forgotten to add that NFS 4 has builtin locking mechanism instead of RPC lock mechanism in NFS2/3.
          – Yurij Goncharuk
          Mar 16 at 10:12













           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430570%2fmount-nfs-with-nolock-option-do-not-take-effect%23new-answer', 'question_page');

          );

          Post as a guest













































































          EKK,4t V
          rObAOBUC3vcJadE1559,siHXKDJ,sM,MnWVI02fqWP,AlLNOWxL MEAN,Vd Pu,IF9F

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS