CentOS 6.4 iSCSI Target – crmshell错误

我尝试在CentOS 6.4上制作带有DRBD,Pacemaker,Open-iSCSI和LVM2的iSCSI Target。

现在我需要在crmshell上准备高可用性iSCSI目标configuration,但如果进入configuration模式,则会显示一条错误消息:

[root@centos ~]# crm crm(live)# configure ERROR: running cibadmin -Q1: Could not establish cib_rw connection: Connection refused (111) Signon to CIB failed: Transport endpoint is not connected Init failed, could not perform requested operations 

由于crm不包含在最新的pacemaker-cli软件包中,因此我在安装软件包crmsh.x86_64之前添加了此 OpenSUSE Repo。

cat / var / log / messages | grep corosync:

 corosync[1052]: [MAIN ] Compatibility mode set to whitetank. Using V1 and V2 of the synchronization engine. corosync[1052]: [TOTEM ] A processor joined or left the membership and a new membership was formed. corosync[1052]: [CPG ] chosen downlist: sender r(0) ip(127.0.0.1) ; members(old:0 left:0) pacemakerd[1259]: error: find_corosync_variant: Corosync is running, but Pacemaker could not find the CMAN or Pacemaker plugin loaded corosync[1052]: [TOTEM ] The network interface [192.168.1.101] is now up. corosync[1052]: [TOTEM ] A processor joined or left the membership and a new membership was formed. corosync[1052]: [CPG ] chosen downlist: sender r(0) ip(127.0.0.1) ; members(old:0 left:0) corosync[1052]: [MAIN ] Completed service synchronization, ready to provide service. 

cat / var / log / messages | grep心脏起搏器

 pacemakerd[1251]: error: find_corosync_variant: Corosync is running, but Pacemaker could not find the CMAN or Pacemaker plugin loaded pacemakerd[1251]: notice: get_cluster_type: This installation does not support the ´(null)´ cluster infrastructure: terminating. 

除了crmshpssh之外,你不应该使用Suse repo中的任何东西,所以你应该在repo文件中添加一行,说includepkgs=crmsh,pssh这样它就不会覆盖CentOS提供的corosync等

CentOS 6.4上使用corosync唯一支持的方法是通过cman使用它,所以你不再直接启动corosync,你启动cman,然后你开始起搏器。 configuration是通过/etc/cluster/cluster.conf完成的,这告诉cman如何启动corosync。

您应该看到这些页面的更多细节: RHEL6.4和Pacemaker和RHEL 6.4(Redux)上的起搏器

也许这是因为你的集群不工作,你应该使用crm_mon来确认它。 只有在你集群工作的时候,crm configure才能使用。