Chinaunix

标题: mysql cluster不能从管理节点启动 [打印本页]

作者: coocal    时间: 2007-05-05 11:54
标题: mysql cluster不能从管理节点启动
show的结果如下:
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2    @192.168.2.151  (Version: 5.0.36, Nodegroup: 0)
id=3    @192.168.2.152  (Version: 5.0.36, Nodegroup: 0, Master)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @192.168.2.155  (Version: 5.0.36)

[mysqld(API)]   2 node(s)
id=4    @192.168.2.153  (Version: 5.0.36)

把一个节点关掉:

ndb_mgm> 2 stop
Node 2: Node shutdown initiated
Node 2: Node shutdown completed.
Node 2 has shutdown.
再启动的时候就有问题了:
ndb_mgm> 2 start
Start failed.
*    22: Error
*        No contact with the process (dead ?).
有没有哪位兄弟知道是怎么回事,到底是哪里出问题了呢?
作者: showsa    时间: 2007-05-05 12:10
需要从 data node节点启动
作者: coocal    时间: 2007-05-05 13:17
to showsa:
从data node上启动没有问题,我的意思是能不能从管理节点启动,管理节点的start命令应该能用才对啊。
作者: showsa    时间: 2007-05-05 15:49
mgmd启动之后监听端口,等待连接

ndbd进程启动之后,根据配置连接上mgmd

当你stop 某ndbd之后,该进程结束之后已不能再与mgmd通信,这时自然不能通过mgmd启动data node节点


ps:个人理解,没有详细的官方文档,共同学习,一起进步
作者: coocal    时间: 2007-05-05 17:09
我也这样想过,但是管理节点上的start命令[<id> START  Start data node (started with -n)]应该有某些用途才对啊,什么情况下才能用呢?
ps:restart命令可以用。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2