[Pacemaker] How to change Stack
Mars gu
gukaicorosync at 163.com
Fri Jun 1 07:05:33 EDT 2012
hi,
My cluster:
corosync-1.4.1-4.el6_2.2.x86_64
pacemaker-1.1.6-3.el6.x86_64
I want to use votequorum as a qourum provider for corosync. yes, I did it.
but pacemaker did not uses the corosync iface,then I have two problem.
Q1.
Here,~~~ /lib/cluster/cluster.c gboolean /crm_connect_corosync(void)
I add a log
*******************************************
if (is_openais_cluster()) {
+ crm_info("I use openais iface!");
crm_set_status_callback(&ais_status_callback);
rc = crm_cluster_connect(&fsa_our_uname, &fsa_our_uuid, crmd_ais_dispatch, crmd_ais_destroy,
NULL);
}
if (rc && is_corosync_cluster()) {
+ crm_info("I use corosync iface!");
init_quorum_connection(crmd_cman_dispatch, crmd_quorum_destroy);
}
if (rc && is_cman_cluster()) {
+ crm_info("I use cman iface!");
init_cman_connection(crmd_cman_dispatch, crmd_cman_destroy);
set_bit_inplace(fsa_input_register, R_CCM_DATA);
}
diff -Nuar ClusterLabs-pacemaker-a02c0f1/lib/cluster/cluster.c ClusterLabs-pacemaker-a02c0f1-new/lib/cluster/cluster.c
******************************************
It believe that I am a openais cluster .
*****************************
Jun 1 08:45:05 h10_147 crmd: [2014]: info: get_cluster_type: Cluster type is: 'openais'
Jun 1 08:45:05 h10_147 crmd: [2014]: info: crm_connect_corosync: I use openais iface!
*****************************
when I execute this cli, you can find the Stack
[root at h10_150 SOURCES]# crm status
============
Last updated: Fri Jun 1 19:00:02 2012
Last change: Thu May 31 14:05:04 2012 via crmd on 10_146
Stack: openais
Current DC: h10_150 - partition WITHOUT quorum
Version: 1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558
3 Nodes configured, 3 expected votes
12 Resources configured.
============
How to change Stack ???
Q2
I find something confusing in pacemaker.spec
*******************
# Supported cluster stacks, must support at least one
%bcond_without cman
%bcond_without doc
%bcond_without corosync
%bcond_with heartbeat
*********************
Must I make a change here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120601/6d62dd8a/attachment-0002.html>
More information about the Pacemaker
mailing list