[Linux-HA] hb 2.0.8 - manually switch master slave resource [wd-vc]

Andrew Beekhof beekhof at gmail.com
Mon Jul 9 03:45:32 MDT 2007


On 7/5/07, Rainer.Brunold at allianz.at <Rainer.Brunold at allianz.at> wrote:
>
> Hi together,
>
> can somebody still help me with the crm_master command and it's parameters
> to manually switch the master resource to the second node ?


The host name is automatically determined from the current host.
But you'll need OCF_RESOURCE_INSTANCE set to the correct value in your
environment.
Normally this is done automatically by the RA.

However, crm_master is just a fancy wrapper for cibadmin and in your case,
it might be easier to use it instead since the attributes already exist.
 Eg.

cibadmin -M -X '  <nvpair  value="INFINITY" id="status-master-LX-DOMI01
-drbd:0-1a7b3371-fad3-4f16-9968-ab60ddea9ad5"/>'


More information about the Linux-HA mailing list