Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

How to change Stack

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


gukaicorosync at 163

Jun 1, 2012, 4:05 AM

Post #1 of 2 (195 views)
Permalink
How to change Stack

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_15 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?


andreas at hastexo

Jun 1, 2012, 4:42 AM

Post #2 of 2 (186 views)
Permalink
Re: How to change Stack [In reply to]

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_15 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
> 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
Attachments: signature.asc (0.22 KB)

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.