mount nfs with nolock option, do not take effect
Clash 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.
linux mount nfs
add a comment |Â
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.
linux mount nfs
add a comment |Â
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.
linux mount nfs
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.
linux mount nfs
edited Mar 16 at 8:01
asked Mar 16 at 7:53
Jeff
85
85
add a comment |Â
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password