Hi, On Mon, Jun 07, 2010 at 11:17:42AM +0200, Jorge Santos Fonseca wrote: > Hi again, > > I have made some tests wtihout bonding, and it appears that all > works perfect.
You didn't show ha.cf. Did you try (with bonding) to use unicast? Thanks, Dejan > Regards, > > Jorge > > > > > > > De: > Andrew Beekhof <and...@beekhof.net> > Para: > The Pacemaker cluster resource manager <pacemaker@oss.clusterlabs.org> > Fecha: > 02/06/2010 08:52 > Asunto: > Re: [Pacemaker] Both nodes become master > > > > On Tue, Jun 1, 2010 at 6:22 PM, Jorge Santos Fonseca > <jorge.san...@fedetec.es> wrote: > > > > > > Hi all! > > > > I'm installing a system with heartbeat 3.0.3 and Pacemaker 1.0.8 > with > > the configuration showed at the end of the message. Network is bonded > (NIC > > teaming) > > > > If I unplug nic cables from the master server the other become inactive > > (slave) that it's ok. > > Now, I plug the machine again to the network and some times both nodes > > become Active/active and only if I restart heartbeat synchronizes again. > > Does the same thing happen without bonding? > Could be a CCM bug if so. > > > > > Thanks in advance > > > > Jorge > > > > > > NODE1: > > > > ============ > > Last updated: Tue Jun 1 18:23:02 2010 > > Stack: Heartbeat > > Current DC: sipserver1 (336b9a65-615b-4ae0-9c54-de46fafc478a) - > partition > > with quorum > > Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd > > 2 Nodes configured, 2 expected votes > > 5 Resources configured. > > ============ > > > > Online: [ sipserver1 ] > > OFFLINE: [ sipserver2 ] > > > > Clone Set: clonePing > > Started: [ sipserver1 ] > > Stopped: [ resPing:1 ] > > asterisk (ocf::heartbeat:asterisk): Started sipserver1 > > virtual_IPaddr (ocf::heartbeat:IPaddr2): Started sipserver1 > > Clone Set: cloneOpenser > > Started: [ sipserver1 ] > > Stopped: [ openser:1 ] > > Clone Set: cloneMysql > > Started: [ sipserver1 ] > > Stopped: [ mysql:1 ] > > > > NODE2: > > > > crm_mon -1 shows : > > > > ============ > > Last updated: Tue Jun 1 18:19:40 2010 > > Stack: Heartbeat > > Current DC: sipserver2 (b694d28c-41e6-4fdd-bfc1-ff097b5a9349) - > partition > > with quorum > > Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd > > 2 Nodes configured, 2 expected votes > > 5 Resources configured. > > ============ > > > > Online: [ sipserver2 ] > > OFFLINE: [ sipserver1 ] > > > > Clone Set: clonePing > > Started: [ sipserver2 ] > > Stopped: [ resPing:0 ] > > asterisk (ocf::heartbeat:asterisk): Started sipserver2 > > virtual_IPaddr (ocf::heartbeat:IPaddr2): Started sipserver2 > > Clone Set: cloneOpenser > > Started: [ sipserver2 ] > > Stopped: [ openser:0 ] > > Clone Set: cloneMysql > > Started: [ sipserver2 ] > > Stopped: [ mysql:0 ] > > > > > > > > ========================= CONFIG ================================ > > > > node $id="336b9a65-615b-4ae0-9c54-de46fafc478a" sipserver1 \ > > attributes standby="off" > > node $id="b694d28c-41e6-4fdd-bfc1-ff097b5a9349" sipserver2 \ > > attributes standby="off" > > primitive asterisk ocf:heartbeat:asterisk \ > > op monitor interval="10s" timeout="20s" depth="0" \ > > meta target-role="Started" > > primitive openser ocf:heartbeat:openser \ > > op monitor interval="10s" timeout="20s" depth="0" > > primitive resPing ocf:pacemaker:ping \ > > params host_list="192.168.210.156" multiplier="10" dampen="5s" \ > > op monitor interval="10" timeout="10" > > primitive virtual_IPaddr ocf:heartbeat:IPaddr2 \ > > params ip="192.168.210.248" nic="bond0" \ > > op monitor interval="5s" timeout="20s" depth="0" \ > > meta target-role="Started" > > clone cloneOpenser openser > > clone clonePing resPing \ > > meta globally-unique="false" > > location IPrunWhenConn virtual_IPaddr \ > > rule $id="IPrunWhenConn-rule" -inf: not_defined pingd or pingd > lte 0 > > location openserRunWhenConn openser \ > > rule $id="openserRunWhenConn-rule" -inf: not_defined pingd or > pingd > > lte 0 > > location runWhenConn asterisk \ > > rule $id="runWhenConn-rule" -inf: not_defined pingd or pingd lte > 0 > > order asterisk_after_ip inf: virtual_IPaddr asterisk > > property $id="cib-bootstrap-options" \ > > dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \ > > cluster-infrastructure="Heartbeat" \ > > is-managed-default="true" \ > > stonith-enabled="FALSE" \ > > no-quorum-policy="ignore" \ > > expected-quorum-votes="2" > > rsc_defaults $id="rsc-options" \ > > resource-stickiness="INFINITY" > > ADVERTENCIA > > > > Este mensaje y/o sus anexos, pueden contener información personal y > > confidencial cuyo uso, reproducción o distribución no autorizados están > > legalmente prohibidos. Por lo tanto, si Vd. no fuera su destinatario y, > > erróneamente, lo hubiera recibido, le rogamos que informe al remitente y > lo > > borre de inmediato. > > > > En cumplimiento de la Ley Orgánica 15/1999, de Protección de Datos de > > Carácter Personal le informamos de que su dirección de correo > electrónico, > > así como sus datos personales y de empresa pasarán a formar parte de > nuestro > > fichero de Gestión, y serán tratados con la única finalidad de > mantenimiento > > de la relación adquirida con usted. Los datos personales que existen en > > nuestro poder están protegidos por nuestra Política de Seguridad, y no > serán > > compartidos con ninguna otra empresa. Usted puede ejercitar los derechos > de > > acceso, rectificación, cancelación y oposición dirigiéndose por escrito > a la > > dirección arriba indicada. > > > > This e-mail and its attachments may include confidential personal > > information which may be protected by any legal rules and cannot be > used, > > copied, distributed or disclosed to any person without authorisation. If > you > > are not the intended recipient and have received this e-mail by mistake, > > please advise the sender and erase it. > > > > In compliance with the Spanish Organic Act 15/1999 on Personal Data > > Protection, we hereby inform you that your email address, as well as > your > > personal and business information, will be included in our Management > files > > and used solely for purposes corresponding to our commercial > relationship. > > All personal data in our possession is protected by our Data Safety > Policy > > and thus shall not be released to any other third party whatsoever. You > may > > exercise your right to access, rectify, cancel and contest by writing to > the > > address provided above. > > _______________________________________________ > > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > > > > > _______________________________________________ > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > > > ADVERTENCIA > > Este mensaje y/o sus anexos, pueden contener información personal y > confidencial cuyo uso, reproducción o distribución no autorizados están > legalmente prohibidos. Por lo tanto, si Vd. no fuera su destinatario y, > erróneamente, lo hubiera recibido, le rogamos que informe al remitente y > lo borre de inmediato. > > En cumplimiento de la Ley Orgánica 15/1999, de Protección de Datos de > Carácter Personal le informamos de que su dirección de correo electrónico, > así como sus datos personales y de empresa pasarán a formar parte de > nuestro fichero de Gestión, y serán tratados con la única finalidad de > mantenimiento de la relación adquirida con usted. Los datos personales que > existen en nuestro poder están protegidos por nuestra Política de > Seguridad, y no serán compartidos con ninguna otra empresa. Usted puede > ejercitar los derechos de acceso, rectificación, cancelación y oposición > dirigiéndose por escrito a la dirección arriba indicada. > > This e-mail and its attachments may include confidential personal > information which may be protected by any legal rules and cannot be used, > copied, distributed or disclosed to any person without authorisation. If > you are not the intended recipient and have received this e-mail by > mistake, please advise the sender and erase it. > > In compliance with the Spanish Organic Act 15/1999 on Personal Data > Protection, we hereby inform you that your email address, as well as your > personal and business information, will be included in our Management > files and used solely for purposes corresponding to our commercial > relationship. All personal data in our possession is protected by our Data > Safety Policy and thus shall not be released to any other third party > whatsoever. You may exercise your right to access, rectify, cancel and > contest by writing to the address provided above. > _______________________________________________ > Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker _______________________________________________ Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker