[Pacemaker] How to change Stack
Andreas Kurz
andreas at hastexo.com
Fri Jun 1 11:42:43 UTC 2012
On 06/01/2012 01:05 PM, Mars gu wrote:
> hi,
> My cluster:
> corosync-1.4.1-4.el6_2.2.x86_64
> pacemaker-1.1.6-3.el6.x86_64
use corosync-2 and pacemaker 1.1.7
Regards,
Andreas
--
Need help with Pacemaker?
http://www.hastexo.com/now
>
> 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?
>
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 222 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120601/1e66e5b3/attachment-0004.sig>
More information about the Pacemaker
mailing list