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 ?
Here is a part of the cibadmin -Q that represents such a master / slave
resource, maybe you can give me the command for the sample resource
LX-AUDI01-drbd
<master_slave id="LX-AUDI01-drbd" notify="true">
<instance_attributes id="LX-AUDI01-drbd_instance_attrs">
<attributes>
<nvpair id="LX-AUDI01-drbd_clone_max" name="clone_max"
value="2"/>
<nvpair id="LX-AUDI01-drbd_clone_node_max"
name="clone_node_max" value="1"/>
<nvpair id="LX-AUDI01-drbd_master_max" name="master_max"
value="1"/>
<nvpair id="LX-AUDI01-drbd_master_node_max"
name="master_node_max" value="1"/>
<nvpair id="LX-AUDI01-drbd_target_role" name="target_role"
value="started"/>
</attributes>
</instance_attributes>
<primitive id="drbd-LX-AUDI01" class="ocf" type="drbd"
provider="heartbeat">
<instance_attributes id="drbd-LX-AUDI01_instance_attrs">
<attributes>
<nvpair id="drbd-LX-AUDI01_target_role" name="target_role"
value="started"/>
<nvpair id="25c1f63d-f42e-43c6-a436-df39cd314f05"
name="drbd_resource" value="LX-AUDI01"/>
</attributes>
</instance_attributes>
<operations>
<op id="30b1bb6b-cde0-48d8-927c-ef675f8d21b9" name="monitor"
interval="10" timeout="20" start_delay="1m" role="Started"
disabled="false" on_fail="restart"/>
</operations>
</primitive>
</master_slave>
...
<status>
<node_state uname="lx-xen007" crmd="online" in_ccm="true" ha="active"
shutdown="0" join="member" expected="member"
id="1a7b3371-fad3-4f16-9968-ab60ddea9ad5"
crm-debug-origin="do_update_resource">
<transient_attributes id="1a7b3371-fad3-4f16-9968-ab60ddea9ad5">
<instance_attributes
id="status-1a7b3371-fad3-4f16-9968-ab60ddea9ad5">
<attributes>
<nvpair
id="status-1a7b3371-fad3-4f16-9968-ab60ddea9ad5-probe_complete"
name="probe_complete" value="true"/>
<nvpair
id="status-1a7b3371-fad3-4f16-9968-ab60ddea9ad5-fail-count-LX-DOMI01-drbd:0"
name="fail-count-LX-DOMI01-drbd:0" value="2"/>
</attributes>
</instance_attributes>
<instance_attributes
id="master-1a7b3371-fad3-4f16-9968-ab60ddea9ad5">
<attributes>
<nvpair name="master-LX-DOMI01-drbd:0"
id="status-master-LX-DOMI01-drbd:0-1a7b3371-fad3-4f16-9968-ab60ddea9ad5"
value="10"/>
<nvpair
id="status-master-LX-DOMI01-drbd:1-1a7b3371-fad3-4f16-9968-ab60ddea9ad5"
name="master-LX-DOMI01-drbd:1" value="10"/>
<nvpair
id="status-master-drbd-LX-AUDI01:0-1a7b3371-fad3-4f16-9968-ab60ddea9ad5"
name="master-drbd-LX-AUDI01:0" value="10"/>
<nvpair
id="status-master-drbd-LX-AUDI01:1-1a7b3371-fad3-4f16-9968-ab60ddea9ad5"
name="master-drbd-LX-AUDI01:1" value="75"/>
</attributes>
</instance_attributes>
</transient_attributes>
Thanks a lot,
Rainer
On 2007-06-30T16:15:27, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
>> you need to use the crm_master command.
>> either increase the value on the secondary or reduce it on the primary.
>>
>> the master will be placed on the machine with the highest value.
>
>We need to fix this to make the master value either be a multiplier or
>an addition to the normal scoring rules (with the exception of 0 or
>unset, which must imply -INFINITY), so that it's actually possible to
>figure out what's going on and make it play nice with the other weight.
>;-)
>
>Is that insanely hard or a simple change?
>
>
>Regards,
> 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
Allianz Elementar Versicherungs-Aktiengesellschaft
A-1130 Wien, Hietzinger Kai 101-105
FN 34004g, Handelsgericht Wien
UID: ATU 1536 4406; DVR: 0003565
http://www.allianz.at
********************************************************
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge
enthalten Informationen, die vertraulich und
ausschliesslich fuer den (die) bezeichneten Adressaten
bestimmt sind.
Wenn Sie nicht der genannte Adressat sind, darf dieses
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen
Personen zugaenglich gemacht noch in anderer Weise
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen.
********************************************************
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems