语法格式:
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
时间: 2024-11-06 12:42:43