[Linux-ha-jp] cib.xml$B!!$G(Bfailback off $B$r<B8=$7$?$$(B

Takenaka Kazuhiro takenaka.kazuhiro at oss.ntt.co.jp
Mon Dec 24 22:53:35 MST 2007


$B4X:,$5$s(B

$BC]Cf$G$9!#(B

$B$A$g$C$HNI$/$o$+$i$J$$$N$G$9$,%j%=!<%9%0%k!<%W$rFs$DDj5A$7$F(B
$B=i4|>uBV$G$OJL!9$N%N!<%I$G5/F0$7$h$&$H$5$l$F$$$k$N$G$7$g$&$+!)(B

# cib.xml $B$K%$%s%G%s%H$r$D$1$F$$$?$@$1$k$H$b$&>/$74X:,$5$s$N(B
# $B0U?^$5$l$F$$$k$H$3$m$,$o$+$k$H;W$$$^$9$N$G$*4j$$$7$^$9!#(B
# $B$"$k$$$O0lEY(B Heartbeat $B$r5/F0$5$l$F$+$i(B cibadmin -Q $B$G(B
# $B=PNO$5$l$?7k2L$rAw$C$F$/$@$5$$!#(B

> $BC]Cf$5$s(B
> $B$"$j$,$H$&$4$6$$$^$9!#(B
>> > 1. $B$=$b$=$b(B IPaddr $B$b(B cmsgrouter $B$b5/F0$7$J$$(B
>> > 2. $B$I$A$i$+$N$_$,5/F0$7$J$$(B
>> >   
> $B8=>u$H$7$F$O%"%W%j%W%m%;%9$O5/F0$9$k$h$&$K$J$j$^$7$?$,!"JR7O$K(B4$B%W%m%;%9(B
> $B$h$C$F$$$k;~$K>e<j$/5/F0$7$^$;$s!#(B
> 
> IP$B%"%I%l%9$NF0:n$O>e<j$/9T$C$F$$$^$9!#(B
> 
> $B8=:_$N(Bxml$B$O0J2<$NDL$j$G$9!#(B
> 
> <cib admin_epoch="0" have_quorum="true" cib_feature_revision="1.3"
> ignore_dtd="false" num_peers="2" generated="true" ccm_transition="4"
> dc_uuid="a78ccc61-0edd-41ae-aa88-fea8ce6d086c" epoch="11"
> num_updates="1968" cib-last-written="Tue Dec 25 12:20:50 2007">
> <configuration>
> <crm_config>
> <cluster_property_set id="set01">
> <attributes>
> <nvpair id="default-resource-stickiness"
> name="default-resource-stickiness" value="INFINITY"/>
> </attributes>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="ba688f65-cbe7-4289-86ff-80c72776b1dd" uname="capp02"
> type="normal"/>
> <node id="a78ccc61-0edd-41ae-aa88-fea8ce6d086c" uname="capp01"
> type="normal"/>
> </nodes>
> <resources>
> <group id="ip_sample01" class="ocf" type="group"
> resource_stickiness="INFINITY">
> <primitive id="ip_sample01:1" class="ocf" type="IPaddr"
> provider="heartbeat">
> <operations>
> <op id="start01" name="start" prereq="nothing"/>
> <op id="monitor01" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> <instance_attributes id="ip_sample1:attr">
> <attributes>
> <nvpair id="ip01" name="ip" value="192.168.30.8"/>
> <nvpair id="mask01" name="netmask" value="24"/>
> <nvpair id="nic01" name="nic" value="bond0"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive id="cmsgrouter" class="lsb" type="cmsgrouter">
> <operations>
> <op id="op_start_cmsgrouter" name="start" prereq="nothing" timeout="600s"/>
> </operations>
> </primitive>
> <primitive id="capp-tfx_1" class="lsb" type="capp-tfx_1">
> <operations>
> <op id="op_start_capp-tfx_1" name="start" prereq="nothing" timeout="600s"/>
> </operations>
> </primitive>
> </group>
> <group id="ip_sample02" class="ocf" type="group"
> resource_stickiness="INFINITY">
> <primitive id="ip_sample02:1" class="ocf" type="IPaddr"
> provider="heartbeat">
> <operations>
> <op id="start02" name="start" prereq="nothing"/>
> <op id="monitor02" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> <instance_attributes id="ip_sample2:attr">
> <attributes>
> <nvpair id="ip02" name="ip" value="192.168.30.9"/>
> <nvpair id="mask02" name="netmask" value="24"/>
> <nvpair id="nic02" name="nic" value="bond0"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive id="capp-tfx_2" class="lsb" type="capp-tfx_2">
> <operations>
> <op id="op_start_capp-tfx_2" name="start" prereq="nothing" timeout="600s"/>
> </operations>
> </primitive>
> <primitive id="news" class="lsb" type="news">
> <operations>
> <op id="op_start_news" name="start" prereq="nothing" timeout="600s"/>
> </operations>
> </primitive>
> </group>
> </resources>
> <constraints>
> <rsc_location id="ip_sample:location01" rsc="ip_sample01">
> <rule score="300" id="rulNode1:1">
> <expression attribute="#uname" operation="eq" id="expNode1:1"
> value="capp01"/>
> </rule>
> <rule score="200" id="rulNode1:2">
> <expression attribute="#uname" operation="eq" id="expNode1:2"
> value="capp02"/>
> </rule>
> </rsc_location>
> <rsc_location id="ip_sample:location02" rsc="ip_sample02">
> <rule score="300" id="rulNode2:1">
> <expression attribute="#uname" operation="eq" id="expNode2:1"
> value="capp02"/>
> </rule>
> <rule score="200" id="rulNode2:2">
> <expression attribute="#uname" operation="eq" id="expNode2:2"
> value="capp01"/>
> </rule>
> </rsc_location>
> </constraints>
> </configuration>
> </cib>
> 
> $B5/F0=g$K@)Ls$,$"$C$F(Bmsgrouter$B$,5/F0$7$F$$$J$$$H(Bcapp-tfx_*$B%W%m%;%9$O5/F0(B
> $B$7$^$;$s!#(B
> $B$I$A$i$N%5!<%P$G5/F0$7$F$$$F$b$$$$$N$G$9$,!">e<j$/9T$/J}K!$,J,$+$j$^$;$s!#(B
> 
> capp01$B"*(Bcapp02$B$X$N(Bfail$B$,FC$K>e<j$/9T$+$J$$MM$J5$$,$7$F$$$^$9!#(B
> $B<g4Q$G?=$7LuM-$j$^$;$s!#(B
> 
> $B4X:,(B
-- 
$BC]Cf(B $B0lGn(B
Takenaka Kazuhiro <takenaka.kazuhiro at oss.ntt.co.jp>

_______________________________________________
Linux-ha-japan mailing list
Linux-ha-japan at lists.sourceforge.jp
http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan


More information about the Linux-ha-jp mailing list