作者pizzahut (...)
看板Linux
标题[问题] 请教glusterfs的问题
时间Fri May 23 14:31:06 2014
首先先简单介绍一下配置
我手边总共有四个VM(hadoop111、hadoop112、hadoop113、hadoop114)
且都有加入彼此的host对应IP的设定在/etc/hosts内,
四台的OS都是使用CentOS 5.6,且gluster安装的版本均为3.3.2。
1.用glusterfs删除volume碰到以下状况:
[root@hadoop111 /]# gluster volume info
Volume Name: dist-vol
Type: Distribute
Volume ID: b8eefa6f-8cc6-435f-919d-b608e0419cef
Status: Created
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: hadoop113:/dist
Brick2: hadoop114:/dist
[root@hadoop111 /]# gluster volume delete dist-vol
Deleting volume will erase all information about the volume. Do you want to
continue? (y/n) y
Volume dist-vol does not exist
[root@hadoop111 /]#
明明用volume info查看是存在的,但是要删除的时候却会提示已经不存在了,
这样的话要怎样处理?
2.若是要在已经建立完成的volume上新增brick,会出现以下讯息
[root@hadoop111 /]# gluster volume info repli-vol
Volume Name: repli-vol
Type: Replicate
Volume ID: 592c815e-f34c-4a5b-93e6-47fa153a9173
Status: Created
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: hadoop111:/repli-vol
Brick2: hadoop112:/repli-vol
[root@hadoop111 /]# gluster volume add-brick repli-vol hadoop113:/repli-vol
Incorrect number of bricks supplied 1 with count 2
[root@hadoop111 /]# gluster volume add-brick repli-vol hadoop113:/repli-vol
hadoop114:/repli-vol
Host hadoop113 not connected
[root@hadoop111 /]#
系统会一直告知「没有连结」的讯息,请问这在什麽情况下会发生?
烦请各位先进不吝解答,谢谢...
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 210.61.66.43
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Linux/M.1400826669.A.D22.html
1F:推 soem:2的话可以贴一下gluster peer status吗? 05/23 23:06
[root@hadoop111 ~]# gluster peer status
Number of Peers: 3
Hostname: hadoop113
Uuid: 2fc10c38-b2fa-497c-9859-8104143fdb8f
State: Peer in Cluster (Connected)
Hostname: hadoop114
Uuid: 6912bcac-6127-4dfc-b1e9-bc578d6159e4
State: Peer in Cluster (Connected)
Hostname: hadoop112
Uuid: b5e6e6bc-f6d4-413b-af14-23e86d80d3b3
State: Peer in Cluster (Connected)
[root@hadoop111 ~]#
※ 编辑: pizzahut (114.24.97.38), 05/24/2014 09:00:07
第二个我试出来了,但是必须在创造volume时不包含本机Host,
这样才可以加入其他brick,
但是只要创造该volume时有用到本机Host,
加入brick时则一定会出现这种情况。但目前还不知道为啥..
※ 编辑: pizzahut (118.163.122.55), 05/27/2014 13:13:07
2F:推 soem:3.3我没用过,但这还真的是很奇怪的情况 05/28 06:52
3F:→ pizzahut:我曾google到这个问题,但上面是写跟hostname有关,我也 05/29 00:49
4F:→ pizzahut:看不太懂@@ 05/29 00:49