>On 6/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> Hi together,
>>
>> I have to set up some sles 10 sp1 / heartbeat 2 clusters running xen
>> virtual machines mirrored with drbd as well as jboss portals. The new
>> documetation at the novell web site for sles 10 sp1 is very fine, thank
you
>> very much for all that helped to build it !
>>
>> The cluster is running fine with all the configurations, the only thing
I
>> don't know right how is how I can manually switch the master status of a
>> clone to the other node. I would like to make the drbd primary site to
the
>> secondary and the secondary to the primary.
>
>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.

Can you help me with a sample ? I was reading through the docs and tried
some samples but couldn't get it working.
Do I have to set some environment variables that point to the resource
before calling crm_master ?

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>


>>
>> As the constraints are configured for the order and the placement all
the
>> rest should be managed by the cluster. Meaning shutdown the xen machine,
>> dismounting the filesystem, ....
>>
>> Any help would be great !
>>
>> Thanks,Rainer
>>
>
> _______________________________________________
> 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

Reply via email to