On Wed, May 02, 2007 at 11:25:10AM -0400, Doug Knight wrote: > Thanks Lars, that makes senses. So, to start and stop a master/slave > resource, do you recommend adding target_role=stopped to stop it, and > deleting target_role altogether to start it?
Yes, I'd say that removing the target_role is a safe bet: you get whatever is default. > And, should the nvpair for > target_role be at the master_slave tag level or at the primitive (i.e. > rsc_drpd_7788:0, etc) tag level? > > One other thing, did you see the question I raised about the Place > constraint I've been using? I have one defined against the drbd > master_slave resource ID, and the question was whether this was the > right resource, or should I make the constraint against postgres? And if > against postgres, how does the preference for a particular node get > communicated from the group postgres is in back to the drbd master_slave > resource? > > Thanks, > Doug > > On Wed, 2007-05-02 at 12:36 +0200, Lars Marowsky-Bree wrote: > > > 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 > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems -- Dejan _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
