Hi,
I have the following 3 node configuration:
Node1: Service drbd0
Node2: Service drbd0 and drbd1
Node3: Service drbd1
The services drbd0 and drbd1 should never run on node2 at the same time.
My scenarios looks like this:
Node1:up | Node2:up | Node3:up = its all fine, drbd0 run on node1 and
drbd1 run on node2
Node1:up | Node2:up | Node3:down = its ok
Node1:up | Node2:down | Node3:up = drbd0 still run on node1 and drbd1
will be started on node3
Node1:down | Node2:up | Node3:up = this is the part where I stuck. The
drbd0 will started on node2 but the drbd1 is still running, so how can
it be done that the drbd1 will automaticly migrate to node3 before
starting drbd0.
this is my cib.xml:
<cib admin_epoch="0" have_quorum="false" num_peers="0"
cib_feature_revision="1.3" ignore_dtd="false" generated="false"
epoch="51" num_updates="12" cib-last-written="Fri Feb 22 10:57:18 2008"
ccm_transition="1">
<configuration>
<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="ignore"/>
<nvpair
id="cib-bootstrap-options-default-resource-stickiness"
name="default-resource-stickiness" value="0"/>
<nvpair
id="cib-bootstrap-options-default-resource-failure-stickiness"
name="default-resource-failure-stickiness" value="0"/>
<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="true"/>
<nvpair id="cib-bootstrap-options-stop-orphan-actions"
name="stop-orphan-actions" value="true"/>
<nvpair id="cib-bootstrap-options-remove-after-stop"
name="remove-after-stop" value="false"/>
<nvpair id="cib-bootstrap-options-cluster-delay"
name="cluster-delay" value="5min"/>
<nvpair id="cib-bootstrap-options-default-action-timeout"
name="default-action-timeout" value="5m"/>
<nvpair id="cib-bootstrap-options-is-managed-default"
name="is-managed-default" value="true"/>
<nvpair id="cib-bootstrap-options-dc-version"
name="dc-version" value="2.1.3-node:
552305612591183b1628baa5bc6e903e0f1e26a3"/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes>
<node id="2743d23e-4a65-4eca-8cca-1304c2dd6e32" uname="ioc-node1"
type="normal"/>
<node id="138a7f68-711f-48ea-a347-aaccdc9ae88c" uname="ioc-node2"
type="normal"/>
<node id="f8526e47-b2dc-4f71-aa9f-05f021808ee8" uname="ioc-node3"
type="normal"/>
</nodes>
<resources>
<group id="group_ve0">
<primitive class="heartbeat" id="drbddisk_ve0"
provider="heartbeat" type="drbddisk">
<instance_attributes id="drbddisk_ve0_inst_attr">
<attributes>
<nvpair id="drbddisk_ve0_attr_1" name="1" value="r0"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" id="Filesystem_ve0" provider="heartbeat"
type="Filesystem">
<instance_attributes id="Filesystem_ve0_inst_attr">
<attributes>
<nvpair id="Filesystem_ve0_attr_0" name="device"
value="/dev/drbd0"/>
<nvpair id="Filesystem_ve0_attr_1" name="directory"
value="/cluster/ve0"/>
<nvpair id="Filesystem_ve0_attr_2" name="fstype"
value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="lsb" id="run_ve0" provider="heartbeat"
type="ve0"/>
</group>
<group id="group_ve1">
<primitive class="heartbeat" id="drbddisk_ve1"
provider="heartbeat" type="drbddisk">
<instance_attributes id="drbddisk_ve1_inst_attr">
<attributes>
<nvpair id="drbddisk_ve1_attr_1" name="1" value="r1"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" id="Filesystem_ve1" provider="heartbeat"
type="Filesystem">
<instance_attributes id="Filesystem_ve1_inst_attr">
<attributes>
<nvpair id="Filesystem_ve1_attr_0" name="device"
value="/dev/drbd1"/>
<nvpair id="Filesystem_ve1_attr_1" name="directory"
value="/cluster/ve1"/>
<nvpair id="Filesystem_ve1_attr_2" name="fstype"
value="ext3"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="lsb" id="run_ve1" provider="heartbeat"
type="ve1"/>
</group>
</resources>
<constraints>
<rsc_location id="rsc_location_ve0" rsc="group_ve0">
<rule id="not_prefered_location_ve0" score="-INFINITY">
<expression attribute="#uname"
id="not_prefered_location_ve0_node3" operation="eq" value="ioc-node3"/>
</rule>
<rule id="prefered_location_ve0_node1" score="INFINITY">
<expression attribute="#uname"
id="prefered_location_ve0_node1_exp" operation="eq" value="ioc-node1"/>
</rule>
</rsc_location>
<rsc_location id="rsc_location_ve1" rsc="group_ve1">
<rule id="not_prefered_location_ve1" score="-INFINITY">
<expression attribute="#uname"
id="not_prefered_location_ve1_node1" operation="eq" value="ioc-node1"/>
</rule>
<rule id="prefered_location_ve1_node2" score="INFINITY">
<expression attribute="#uname"
id="prefered_location_ve1_node2_exp" operation="eq" value="ioc-node2"/>
</rule>
</rsc_location>
</constraints>
</configuration>
</cib>
Thanks,
Florin
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems