在启动时启动Corosync 2.X + Pacemaker 1.1集群(Debian Wheezy)

我找不到在Debian启动时启动群集(corosync + pacemaker)的方法

我在两个节点上使用以下configuration更新了2节点群集:

  • Debian Wheezy 7.7
  • Corosync v2.3.4
  • 起搏器v1.1.12
  • Libqb v0.17.1
  • Cluster-glue v1.0.12
  • 资源代理v3.9.6
  • crmsh v2.1.0

我已经安装了来自Source的集群软件,在Clusterlabs for Jessie上编译Compiling_on_Debian指南。

在安装之前,我确定没有老的corosync或起搏器的依赖关系。

在所有的configuratins我已经开始corosync和起搏器

/etc/init.d/corosync start /etc/init.d/pacemaker/start 

群集已启动并正在运行,但是我无法在启动时find启动群集的方法

我已经尝试添加init.d脚本运行级别,但我得到这个响应,没有任何效果(没有符号链接创build)corosync

 root@PC:~# update-rc.d corosync defaults update-rc.d: using dependency based boot sequencing 

和起搏器上的这个错误

 root@PC:~# update-rc.d pacemaker defaults update-rc.d: using dependency based boot sequencing insserv: Service corosync has to be enabled to start service pacemaker insserv: exiting now! update-rc.d: error: insserv rejected the script header 

这里是corosync初始化脚本和起搏器初始化脚本

启动时运行群集的正确方法是什么? 什么守护进程必须启动和启用?

Ps在我以前的configuration(corosync 1.4.2和pacemaker 1.1.7)中,我所要做的就是在/ etc / default / corosync中设置START = yes ,这个新版本中缺less一个文件

在我的configuration(corosync 1.4.2-3)中,我使用service.d out of corosync。

 /etc/corosync/service.d/pcmk service { # Load the Pacemaker Cluster Resource Manager name: pacemaker ver: 0 } 

这告诉corosync启动起搏器资源pipe理器。 在这个configuration中你不会有起搏器的启动脚本(甚至service pacemaker status也会显示它已经停止),但是crm和起搏器本身也会运行。

ver: #的定义ver: #

  1. corosync +起搏器插件(v0)
  2. corosync +起搏器插件(v1)+ mcp
  3. corosync + cpg + cman + mcp
  4. corosync + cpg + quorumd + mcp

我希望这仍然足够准确( 链接 )

编辑:刚刚find适当的文件

那么,好像你必须开始起搏器服务,那么我显然不是最新的。 你可以尝试自己连接初始化脚本,而不使用update-rc.d