Hi, I defined a group containing a ip resource and a FS resource that
depends on DRBD. Created a prefered location for that group, the group
starts on the prefered node, but when the drbd master is the other
node, the fs stays at the prefered node in stopped status.
Is there any way to tell HB that i would like to make the group
prefered node the master of the Master/Slave pair if needed?
Odd State:
----------------------------------------------------------------------------
============
Last updated: Sat Jul 14 01:33:55 2007
Current DC: asusis-ope2 (9b4731c8-163c-482a-93f4-084a5067a414)
2 Nodes configured.
3 Resources configured.
============
Node: asusis-ope1 (34b56337-2402-4e2d-a66a-f0f0c2cee1b5): online
Node: asusis-ope2 (9b4731c8-163c-482a-93f4-084a5067a414): online
Resource Group: gp-monitoreo
ip-principal (heartbeat::ocf:IPaddr2): Started asusis-ope2
fs-hadata (heartbeat::ocf:Filesystem): Stopped
Master/Slave Set: ms-hadata0
hadata0:0 (heartbeat::ocf:drbd): Master asusis-ope1
hadata0:1 (heartbeat::ocf:drbd): Started asusis-ope2
----------------------------------------------------------------------------
Config:
----------------------------------------------------------------------------
<configuration>
<crm_config/>
<nodes>
<node id="34b56337-2402-4e2d-a66a-f0f0c2cee1b5"
uname="asusis-ope1" type="normal">
<instance_attributes id="nodes-34b56337-2402-4e2d-a66a-f0f0c2cee1b5">
<attributes>
<nvpair id="standby-34b56337-2402-4e2d-a66a-f0f0c2cee1b5"
name="standby" value="off"/>
</attributes>
</instance_attributes>
</node>
<node id="9b4731c8-163c-482a-93f4-084a5067a414"
uname="asusis-ope2" type="normal"/>
</nodes>
<resources>
<group id="gp-monitoreo">
<primitive class="ocf" type="IPaddr2" provider="heartbeat"
id="ip-principal" description="Alias principal a donde apuntan los
usuarios para la interfaz web y los chequeos pasivos, traps, etc">
<instance_attributes id="ip-principal_instance_attrs">
<attributes>
<nvpair id="9fc324b3-85e5-416f-bb5f-d3b0075e26f1"
name="ip" value="10.129.4.236"/>
<nvpair id="e5746557-2130-4286-862d-bcee1c08ad63"
name="nic" value="eth0"/>
<nvpair id="5d11783f-72ce-4736-b62e-a51d5a4b9191"
name="cidr_netmask" value="22"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" provider="heartbeat" type="Filesystem"
id="fs-hadata" description="Filesystem contenedor de todos los datos
que deben ser redundantes">
<meta_attributes id="ma-fs-hadata">
<attributes>
<nvpair name="target_role" id="ma-fs-hadata-1" value="#default"/>
</attributes>
</meta_attributes>
<instance_attributes id="ia-fs-hadata">
<attributes>
<nvpair id="ia-fs-hadata-1" name="fstype" value="reiserfs"/>
<nvpair id="ia-fs-hadata-2" name="directory" value="/hadata"/>
<nvpair id="ia-fs-hadata-3" name="device" value="/dev/drbd0"/>
</attributes>
</instance_attributes>
</primitive>
</group>
<master_slave id="ms-hadata0">
<meta_attributes id="ma-ms-hadata0">
<attributes>
<nvpair id="ma-ms-hadata0-1" name="clone_max" value="2"/>
<nvpair id="ma-ms-hadata0-2" name="clone_node_max" value="1"/>
<nvpair id="ma-ms-hadata0-3" name="master_max" value="1"/>
<nvpair id="ma-ms-hadata0-4" name="master_node_max" value="1"/>
<nvpair id="ma-ms-hadata0-5" name="notify" value="yes"/>
<nvpair id="ma-ms-hadata0-6" name="globally_unique" value="false"/>
<nvpair id="ma-ms-hadata0-7" name="target_role" value="#default"/>
</attributes>
</meta_attributes>
<primitive id="hadata0" class="ocf" provider="heartbeat" type="drbd">
<instance_attributes id="ia-hadata0">
<attributes>
<nvpair id="ia-hadata0-1" name="drbd_resource" value="hadata0"/>
</attributes>
</instance_attributes>
</primitive>
</master_slave>
</resources>
<constraints>
<rsc_location id="prefer-gp-monitoreo" rsc="gp-monitoreo">
<rule id="prefer-rule-gp-monitoreo" score="INFINITY">
<expression id="prefer-expr-gp-monitoreo"
attribute="#uname" operation="eq" value="asusis-ope2" type="string"/>
</rule>
</rsc_location>
<rsc_location id="hadata0-placement-1" rsc="ms-hadata0">
<rule id="hadata0-rule-1" score="-INFINITY">
<expression id="exp-01" value="asusis-ope1"
attribute="#uname" operation="eq"/>
<expression id="exp-02" value="asusis-ope2"
attribute="#uname" operation="eq"/>
</rule>
</rsc_location>
<rsc_order id="hadata0-before-fs-hadata" from="fs-hadata"
action="start" to="ms-hadata0" to_action="promote"/>
<rsc_colocation id="fs-hadata-on-hadata0" to="ms-hadata0"
to_role="master" from="fs-hadata" score="infinity"/>
</constraints>
</configuration>
----------------------------------------------------------------------------
Ciro
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems