语法格式:
gluster volume set <VOLNAME> locks.mandatory-locking <off / file / forced / optimal>
注:
off - 为指定的卷禁用强制锁
file - 启用Linux内核风格的强制锁语义和位模式的帮助(没有充分测试)
forced - 为卷检查字节范围锁定每个数据编辑操作
optimal - Combinational mode where POSIX clients can live with their advisory lock semantics which will still honour the mandatory locks acquired by other clients like SMB.
参阅文档
http://gluster.readthedocs.io/en/latest/Administrator%20Guide/Mandatory%20Locks/
https://github.com/gluster/glusterfs-specs/blob/master/done/GlusterFS%203.8/Mandatory%20Locks.md
本文出自 “老谭linux集群博客” 博客,请务必保留此出处http://cmdschool.blog.51cto.com/2420395/1858776
原文地址:http://cmdschool.blog.51cto.com/2420395/1858776