On 2007-04-20T09:36:38, Doug Knight <[EMAIL PROTECTED]> wrote:
> <master_slave notify="true" id="ms_drbd_7788">
> <instance_attributes id="ms_drbd_7788_instance_attrs">
> <attributes>
> <nvpair id="ms_drbd_7788_clone_max" name="clone_max"
> value="2"/>
> <nvpair id="ms_drbd_7788_clone_node_max"
> name="clone_node_max" value="1"/>
> <nvpair id="ms_drbd_7788_master_max" name="master_max"
> value="1"/>
> <nvpair id="ms_drbd_7788_master_node_max"
> name="master_node_max" value="1"/>
> <nvpair name="target_role" id="ms_drbd_7788_target_role"
> value="started"/>
> </attributes>
> </instance_attributes>
> <primitive class="ocf" type="drbd" provider="heartbeat"
> id="rsc_drbd_7788">
> <instance_attributes id="rsc_drbd_7788_instance_attrs">
> <attributes>
> <nvpair id="fdb586b1-d439-4dfb-867c-3eefbe5d585f"
> name="drbd_resource" value="pgsql"/>
> <nvpair id="rsc_drbd_7788:0_target_role"
> name="target_role" value="started"/>
> </attributes>
> </instance_attributes>
> </primitive>
> </master_slave>
It should be pointed out that, in addition to notify needing to be
enabled, target_role == started also will prevent the resource from
being promoted; started is equal to "Slave" is less than "Master".
Sincerely,
Lars
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems