Hi all,
I think I'm doing something wrong, but after many serach can't where I'm
going wrong...
I'm working on a two nodes setup wit hdrbd + filesystem + xen virtual
machines.
I made a group for each xen resources :
group1 = drbd0 + /xen/virtual1 + xen1
group2 = drbd1 + /xen/virutal2 + xen2
and so on
What I want is : if xen1 (on nodeA) fails, then it switches on nodeB.
If fails on nodeB too, the resource goes into unmanaged stateement (or
stays in stop statement...)
I also setted up location constraints to tel on which node a resource
can run per default.
I've foud help about resource stickiness on the faq of linux-ha.org, but
it doesn't work properly for me.
For the moment, when I start one group (by putting into the cib with
"cibadmin" commands), everything looks ok.
If I add the second group, it starts on the second node even if I
configured it with the same constraints.
(see my xml in attachment)
I can't understand what's the link between score, resource stickiness,
resource failure stickiness and the failcount.
Could you also explain me how to get the curent score for a resource on
a node ? (if possible...)
Many thanks
Serge.
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="true"/>
<nvpair id="cib-bootstrap-options-no_quorum-policy" name="no_quorum-policy" value="stop"/>
<nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="100"/>
<nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="-200"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
<nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot"/>
<nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources" value="false"/>
<nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions" value="false"/>
<nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop" value="false"/>
<nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names" value="true"/>
<nvpair id="cib-bootstrap-options-transition-idle-timeout" name="transition-idle-timeout" value="5min"/>
<nvpair id="cib-bootstrap-options-default-action-timeout" name="default-action-timeout" value="300s"/>
<nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true"/>
</attributes>
</cluster_property_set>
</crm_config>
<group id="xen1" ordered="true" collocated="true" is_managed="true">
<primitive id="drbd1" class="heartbeat" type="drbddisk" provider="heartbeat">
<instance_attributes id="ia-drbd1">
<attributes>
<nvpair name="1" value="r1" id="r1"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="mount-drbd1" class="ocf" type="Filesystem" provider="heartbeat">
<instance_attributes id="ia-mount-drbd1">
<attributes>
<nvpair name="device" value="/dev/drbd1" id="device_drbd1"/>
<nvpair name="directory" value="/xen/xen1" id="directory_drbd1"/>
<nvpair name="fstype" value="ext3" id="fstype_drbd1"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="xen-xen1" class="ocf" type="Xen" provider="heartbeat">
<operations>
<op id="monitor-xen1" name="monitor" on_fail="restart" interval="200s" timeout="300s" >
<instance_attributes id="ia-monitor-xen1">
<attributes>
<nvpair id="xen-xen1_monitor_start_delay" name="start-delay" value="60s"/>
</attributes>
</instance_attributes>
</op>
</operations>
<instance_attributes id="ia-xen-xen1">
<attributes>
<nvpair name="xmfile" value="/etc/xen/xen1" id="xmfile_xen1"/>
<nvpair name="host_name" value="wen1" id="host_name_xen1"/>
<nvpair id="xen-wen1-role" name="target_role" value="Started"/>
</attributes>
</instance_attributes>
</primitive>
</group>
<rsc_location id="drbd1_loc_nodeA" rsc="drbd1">
<rule id="pref_drbd1_loc_nodeA" score="100">
<expression attribute="#uname" operation="eq" value="nodeA" id="pref_drbd1_loc_nodeA_attr"/>
</rule>
<rule id="drbd1_loc_nodeB" score="150">
<expression attribute="#uname" operation="eq" value="nodeB" id="pref_drbd1_loc_nodeB_attr"/>
</rule>
</rsc_location>
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems