免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1743 | 回复: 0
打印 上一主题 下一主题

mysql cluster管理点中start命令的用法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-06 16:55 |只看该作者 |倒序浏览
看了mysql的邮件列表(
http://lists.mysql.com/cluster/3431
),终于知道了mysql cluster管理点中start命令的用法,一个困惑我很久的问题终于有答案了。下面是邮件的原文:


原邮件:
Hi,
After I stop one ndb (node_id=2) using ndb_mgm command : 2 stop, I failed to bring it back
through ndb_mgm.
I first tried  '2 start' ,   get error msg:
'Start failed.
*    22: Error
*        No contact with the process (dead ?).
I then tried '2 restart -n' , get error msg:
Restart failed.
*  2003: Restart failed
*        5000-No contact with the process (dead ?).
The processes representing node_id=2 indeed are gone due to the '2 stop'.
mgm's show :
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2 (not connected, accepting connect from 10.89.51.242)
id=3    @10.89.51.243  (Version: 5.0.19, Nodegroup: 0, Master)
[ndb_mgmd(MGM)] 1 node(s)
id=1    @10.87.20.107  (Version: 5.0.19)
[mysqld(API)]   2 node(s)
id=4    @10.89.51.242  (Version: 5.0.19)
id=5    @10.89.51.243  (Version: 5.0.19)
Can anyone point to me what is wrong ?
Thanks,
Frank
回复一:
Hi Frank,
On Apr 5, 2006, at 17:12:48, Frank Xie wrote:
..
>
> The processes representing node_id=2 indeed are gone due to the '2  
> stop'.
..
If you 'stop' a data node, the angle process is killed too. So, the  
ndb_mgm can't can't connect anymore to start or restart it and you  
need to manually start ndbd again.
Use '2 restart' instead of '2 stop' and '2 start'.
Best regards,
Geert
回复二:
Thanks, Geert.
Based on what you said, it seems to me that the only way to start ndb is manual way, since
both 'start' and 'restart' need  the ndb process  to be there.  Sounds like  'egg first vs
chicken first'
If so, under which occasion 'start' command is used ?  
Best Regards,
Frank
Geert Vanderkelen stripped> wrote: Hi Frank,
On Apr 5, 2006, at 17:12:48, Frank Xie wrote:
..
>
> The processes representing node_id=2 indeed are gone due to the '2  
> stop'.
..
If you 'stop' a data node, the angle process is killed too. So, the  
ndb_mgm can't can't connect anymore to start or restart it and you  
need to manually start ndbd again.
Use '2 restart' instead of '2 stop' and '2 start'.
Best regards,
Geert
回复三:
Hi Frank,
On Apr 5, 2006, at 17:56:11, Frank Xie wrote:
> Thanks, Geert.
>
> Based on what you said, it seems to me that the only way to start  
> ndb is manual way, since both 'start' and 'restart' need  the ndb  
> process  to be there.  Sounds like  'egg first vs chicken first'
On a side node: egg or chicken first... Egg ofcourse, it's evolution :)
>
> If so, under which occasion 'start' command is used ?
ndb_mgm> 9 restart -n
-n means don't start the node right away, just stop it. This will not  
kill the angle process of the data node.
ndb_mgm> 9 start
This will then start the node. Could be useful.
Best regards,
Geert



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/30557/showart_292530.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP