I've been trying to set up a 2 node, heartbeat v2 cluster to present Samba
shares.

For reasons I don't understand, the resource group I've created REALLY wants
to run on my second node.  If I start node1, without node2 running at all,
the service will not start.  If I start node2, the resource group will start
on node2.  If I stop heartbeat on node2, it will failover cleanly to run the
process on node1, but as soon as node2 starts back up, it fails back over to
node2.

/etc/ha.d/ha.cf looks like this:

-------------------------
#logfacility    local0
use_logd        yes
auto_failback   off
bcast           eth1
node            node1.domain.com node2.domain.com
crm             on

keepalive       1

initdead        33
-------------------------

and I've attached the two nodes cib.xml files.  Both cib.xml files were
generated from the hb_gui program

What I would like is for the resource group to be able to float between the
nodes easily, and to not have a preference for either.  I thought setting
auto_failback to 'off' and fully restarting the cluster would do this, but I
seem to be missing something.

Any insight would be appreciated.

--Jason
 <cib generated="false" admin_epoch="0" have_quorum="false" ignore_dtd="false" num_peers="0" cib_feature_revision="1.3" epoch="11" num_updates="1" cib-last-written="Tue Jan  8 15:55:17 2008">
   <configuration>
     <crm_config/>
     <nodes>
       <node id="03355d20-8527-4fab-8f16-e01817c3fc18" uname="node2.domain.com" type="normal">
         <instance_attributes id="nodes-03355d20-8527-4fab-8f16-e01817c3fc18">
           <attributes>
             <nvpair id="standby-03355d20-8527-4fab-8f16-e01817c3fc18" name="standby" value="off"/>
           </attributes>
         </instance_attributes>
       </node>
       <node id="6c95a2d9-6158-4b0b-bc02-ff58fb48fd29" uname="node1.domain.com" type="normal"/>
     </nodes>
     <resources>
       <group id="group_samba" ordered="true" collocated="true">
         <primitive id="resource_samba_ip" class="ocf" type="IPaddr" provider="heartbeat">
           <instance_attributes id="resource_samba_ip_instance_attrs">
             <attributes>
               <nvpair id="a572b727-1aaf-43b5-b2c3-826305b6d533" name="ip" value="10.31.11.114"/>
               <nvpair id="3669be20-7782-432e-9504-ba65668186ca" name="nic" value="eth0"/>
               <nvpair id="14fbbd65-3019-43e9-8eb5-d9fb88deced2" name="cidr_netmask" value="255.255.255.0"/>
               <nvpair id="941cbbab-490d-48e7-88a8-3d4d62ff79a5" name="broadcast" value="10.31.11.255"/>
               <nvpair id="e44afc64-42cb-470e-b418-9a981991ee02" name="iflabel" value="vtqfs"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive id="resource_samba_storage" class="lsb" type="hb-vxvol" provider="heartbeat">
           <instance_attributes id="resource_samba_storage_instance_attrs">
             <attributes/>
           </instance_attributes>
         </primitive>
         <primitive id="resource_samba_daemon" class="lsb" type="hb-samba" provider="heartbeat">
           <instance_attributes id="resource_samba_daemon_instance_attrs">
             <attributes/>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints/>
   </configuration>
 </cib>
 <cib generated="false" admin_epoch="0" have_quorum="false" ignore_dtd="false" num_peers="0" cib_feature_revision="1.3" epoch="11" num_updates="1" cib-last-written="Tue Jan  8 15:55:17 2008">
   <configuration>
     <crm_config/>
     <nodes>
       <node uname="node2.domain.com" type="normal" id="03355d20-8527-4fab-8f16-e01817c3fc18">
         <instance_attributes id="nodes-03355d20-8527-4fab-8f16-e01817c3fc18">
           <attributes>
             <nvpair name="standby" id="standby-03355d20-8527-4fab-8f16-e01817c3fc18" value="off"/>
           </attributes>
         </instance_attributes>
       </node>
       <node id="6c95a2d9-6158-4b0b-bc02-ff58fb48fd29" uname="node1.domain.com" type="normal"/>
     </nodes>
     <resources>
       <group id="group_samba" ordered="true" collocated="true">
         <primitive id="resource_samba_ip" class="ocf" type="IPaddr" provider="heartbeat">
           <instance_attributes id="resource_samba_ip_instance_attrs">
             <attributes>
               <nvpair id="a572b727-1aaf-43b5-b2c3-826305b6d533" name="ip" value="10.31.11.114"/>
               <nvpair id="3669be20-7782-432e-9504-ba65668186ca" name="nic" value="eth0"/>
               <nvpair id="14fbbd65-3019-43e9-8eb5-d9fb88deced2" name="cidr_netmask" value="255.255.255.0"/>
               <nvpair id="941cbbab-490d-48e7-88a8-3d4d62ff79a5" name="broadcast" value="10.31.11.255"/>
               <nvpair id="e44afc64-42cb-470e-b418-9a981991ee02" name="iflabel" value="vtqfs"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive id="resource_samba_storage" class="lsb" type="hb-vxvol" provider="heartbeat">
           <instance_attributes id="resource_samba_storage_instance_attrs">
             <attributes/>
           </instance_attributes>
         </primitive>
         <primitive id="resource_samba_daemon" class="lsb" type="hb-samba" provider="heartbeat">
           <instance_attributes id="resource_samba_daemon_instance_attrs">
             <attributes/>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints/>
   </configuration>
 </cib>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to