centos 7搭建GlusterFS并创建Dispersed Glusterfs Volume

glusterfs官方文档: 文档地址
超详细教程: 文档地址
超详细教程,需要结合官方文档的的step 6 ,在挂载点文件夹下创建新的未挂载文件夹,为之后创建gluste volume做准备,否则会报错。

# mkdir /bricks/brick1/gv0

如果不在已经mount的文件目录下创建新的文件夹,当执行

[root@kn1 bricks]#gluster volume create test-gluster disperse 6 redundancy 2 kn1:/bricks/brick1 kn1:/bricks/brick2 kn2:/bricks/brick1 kn2:/bricks/brick2 kn3:/bricks/brick1 kn3:/bricks/brick2

报错:

volume create: test-gluster: failed: The brick kn1:/bricks/brick1 is a mount point. Please create a sub-directory under the mount point and use that as the brick directory. Or use 'force' at the end of the command if you want to override this behavior.

注意:
创建Dispersed Glusterfs Volume时,一台服务器上有两个盘,要想把这两个盘同时加入一个glusterfs volume中是会影响整个gluster volume的性能。
当试图将一个服务器的两个盘都想加入glusterfs volume时:

[root@kn1 bricks]#gluster volume create test-gluster disperse 6 redundancy 2 kn1:/bricks/brick1 kn1:/bricks/brick2 kn2:/bricks/brick1 kn2:/bricks/brick2 kn3:/bricks/brick1 kn3:/bricks/brick2

提示:

volume create: test-gluster: failed: Multiple bricks of a disperse volume are present on the same server. This setup is not optimal. Bricks should be on different nodes to have best fault tolerant configuration. Use 'force' at the end of the command if you want to override this behavior. 

一个服务器一个盘,然后组成glusterfs volume更加可靠。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值