我计划使用glusterfs设置许多节点来创建分布式复制卷
我使用主(且唯一)分区上的目录在两个节点上创建了一个gluster复制卷.
gluster volume create vol_dist-replica replica 2 transport tcp 10.99.0.3:/glusterfs/dist-replica 10.99.0.4:/glusterfs/dist-replica
Run Code Online (Sandbox Code Playgroud)
这返回了以下警告
volume create: vol_dist-replica: failed: The brick 10.99.0.3:/glusterfs/dist-replica is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior.
所以我最后使用force了卷并创建了卷.然后我就能将gluster卷挂载到本地目录.
我的问题是,为什么不建议使用root分区?
我只能想到系统可能永远不会因为xyz原因而启动的明显原因,因此你会丢失一个节点的砖块内容.但是,如果你有足够的节点,你应该能够从中恢复吗?
小智 3
以下是为什么不这样做的示例:
卷删除砖提交强制:失败:卷 X 不存在
集群中不存在卷
卷创建:X:失败:/export/gv01/brick 或其前缀已经是卷的一部分
完美的循环我无法逃脱。