Hi Andrew, I moved to corosync, since you said there are more tutorials for corosync. The nodes that I configured when I was using heartbeat are still there. I tryed to delete/remove them but with no success. Could you help me please?
I saw these commands on this page: http://clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-node-delete.html Thanks in advance. Felipe # /etc/init.d/corosync stop * Stopping corosync daemon corosync [ OK ] root@cloud4:/etc/corosync# crm_node --force -R cloud4 root@cloud4:/etc/corosync# crm_node --force -R cloud11 root@cloud4:/etc/corosync# crm_node --force -R 193a0634-90b5-4c1b-aed1- b987dbae188e root@cloud4:/etc/corosync# crm_node -R COROSYNC_ID # crm_mon --one-shot -V crm_mon[2558]: 2012/12/07_19:52:31 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined crm_mon[2558]: 2012/12/07_19:52:31 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option crm_mon[2558]: 2012/12/07_19:52:31 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity ============ Last updated: Fri Dec 7 19:52:31 2012 Last change: Fri Dec 7 18:43:14 2012 via crmd on cloud11 Stack: openais Current DC: cloud11 - partition with quorum Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c 4 Nodes configured, 2 expected votes 0 Resources configured. ============ Node cloud4 (01f645d4-c8d5-4b2a-8c44-5727101d56c5): UNCLEAN (offline) Node cloud11 (193a0634-90b5-4c1b-aed1-b987dbae188e): UNCLEAN (offline) Online: [ cloud4 cloud11 ] On Fri, Dec 7, 2012 at 12:10 AM, Andrew Beekhof <[email protected]> wrote: > On Fri, Dec 7, 2012 at 5:07 AM, Felipe Gutierrez > <[email protected]> wrote: > > Thanks for the reply Andrew, > > > > Acctualy I am strugling with my system failover. > > When I configure crm respawn at ha.cf file, my fail over doesn't work > > anymore. I believe it is because the heartbeat use scripts to migrate Xen > > virtual machines. > > > > My question is: > > Do I need to configure crm respawn to use pacemaker? > > Yes. > > Where are you configuring resources? haresources by any chance? Don't do > that. > > > Is there another option to make failover? > > Does anybody has any tutorial that can help? > > I think most of the tutorials are for pacemaker+corosync these days. > > > > > Thanks in advance! > > Felipe > > > > > > > > On Thu, Dec 6, 2012 at 1:34 AM, Andrew Beekhof <[email protected]> > wrote: > > > >> On Wed, Dec 5, 2012 at 6:52 AM, Felipe Gutierrez > >> <[email protected]> wrote: > >> > I think I found how to configure. I change eth0 to xenbr0, because I > >> > modified the networ/interface (ifconfig) > >> > # cat ha.cf > >> > logfacility daemon > >> > keepalive 2 > >> > deadtime 10 > >> > warntime 5 > >> > initdead 120 > >> > udpport 694 > >> > ucast xenbr0 192.168.188.8 > >> > auto_failback on > >> > node cloud10 > >> > node cloud8 > >> > use_logd yes > >> > crm respawn > >> > > >> > Now my command crm_mon -1 display it: > >> > # crm_mon -1 > >> > ============ > >> > Last updated: Sat Jan 1 00:45:27 2005 > >> > Last change: Tue Dec 4 17:48:49 2012 via crmd on cloud8 > >> > Stack: Heartbeat > >> > Current DC: cloud8 (949237ab-9f7d-47d1-b4ad-39e4583d8f0d) - partition > >> with > >> > quorum > >> > Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c > >> > 2 Nodes configured, unknown expected votes > >> > 0 Resources configured. > >> > ============ > >> > > >> > Online: [ cloud8 cloud10 ] > >> > > >> > The two nodes =) But now I need to learn how to configure crm to > failover > >> > xendomains scrpts. > >> > Does anyone know? > >> > >> Just like any other resource, assuming there is a resource agent for it. > >> Otherwise you'll need to write an OCF one. > >> _______________________________________________ > >> Linux-HA mailing list > >> [email protected] > >> http://lists.linux-ha.org/mailman/listinfo/linux-ha > >> See also: http://linux-ha.org/ReportingProblems > >> > > > > > > > > -- > > *-- > > -- Felipe Oliveira Gutierrez > > -- [email protected] > > -- https://sites.google.com/site/lipe82/Home/diaadia* > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > -- *-- -- Felipe Oliveira Gutierrez -- [email protected] -- https://sites.google.com/site/lipe82/Home/diaadia* _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
