
nemo at zuku
Mar 26, 2012, 3:00 AM
Post #3 of 3
(245 views)
Permalink
|
|
Re: $BI|5l$7$?%N!<%I$+$i(B$B!"%j%=!<%9$r85$N>uBV$KLa$9J}K!(B$B$K4X$7$F(B
[In reply to]
|
|
$BCfJ?(B $BMM(B $B:,K\$G$9!#(B $BJV?.$"$j$,$H$&$4$6$$$^$9!#(B $BJs9p$,CY$l$F?=$7Lu$"$j$^$;$s!#(B $B$4;XE&DL$j$NFbMF$r<B;\$9$k$3$H$G!"LdBj$J$/%j%=!<%9$rI|5l$5$;$k;v$,$G$-$^$7$?!#(B $B3NG'$N$?$a!"<B:]$K9T$C$?:n6H$rJs9p$5$;$F$b$i$$$^$9$H!"(B 1. crm$B%7%'%k$+$i [at] _D%U%!%$%k$r0J2<$NDL$j$KJQ99(B # crm crm(live)# configure crm(live)configure# edit ---- node $id="5162e974-3a14-4e12-a66a-eb94e6b08736" v00c.ss.jp node $id="e7ac0179-2154-4f51-a969-ba6655882ad4" v00d.ss.jp primitive res_Filesystem1 ocf:heartbeat:Filesystem \ params device="/dev/drbd1" directory="/vz1" fstype="ext4" \ op start interval="0s" timeout="60" \ op stop interval="0s" timeout="60s" \ op monitor interval="20" timeout="40" depth="0" primitive res_Filesystem2 ocf:heartbeat:Filesystem \ params device="/dev/drbd2" directory="/vz2" fstype="ext4" \ op start interval="0s" timeout="60" \ op stop interval="0s" timeout="60s" \ op monitor interval="20" timeout="40" depth="0" primitive res_MailTo1 ocf:heartbeat:MailTo \ params email="nemoto [at] hoge" \ op start interval="0" timeout="10s" \ op stop interval="0" timeout="10s" \ op monitor interval="10s" timeout="10s" primitive res_MailTo2 ocf:heartbeat:MailTo \ params email="nemoto [at] hoge" \ op start interval="0" timeout="10s" \ op stop interval="0" timeout="10s" \ op monitor interval="10s" timeout="10s" primitive res_drbd1 ocf:heartbeat:drbd \ params drbd_resource="r1" drbdconf="/etc/drbd.conf" ignore_deprecation="true" \ op start interval="0s" timeout="240s" on-fail="restart" \ op monitor interval="11s" timeout="60s" on-fail="restart" \ op monitor interval="10s" role="Master" timeout="60s" on-fail="restart" \ op stop interval="0s" timeout="100s" on-fail="block" primitive res_drbd2 ocf:heartbeat:drbd \ params drbd_resource="r2" drbdconf="/etc/drbd.conf" ignore_deprecation="true" \ op start interval="0s" timeout="240s" on-fail="restart" \ op monitor interval="11s" timeout="60s" on-fail="restart" \ op monitor interval="10s" role="Master" timeout="60s" on-fail="restart" \ op stop interval="0s" timeout="100s" on-fail="block" primitive res_ip1 ocf:heartbeat:IPaddr2 \ params ip="10.1.0.13" cidr_netmask="24" nic="eth0" \ op start interval="0" timeout="20s" \ op monitor interval="10s" timeout="20s" \ op stop interval="0" timeout="20s" primitive res_ip2 ocf:heartbeat:IPaddr2 \ params ip="10.1.0.14" cidr_netmask="24" nic="eth0" \ op start interval="0" timeout="20s" \ op monitor interval="10s" timeout="20s" \ op stop interval="0" timeout="20s" primitive res_vps1 ocf:heartbeat:vps \ params vps="/vz1" \ op start interval="0" timeout="1800s" \ op monitor interval="10s" timeout="60s" \ op stop interval="0" timeout="1800s" primitive res_vps2 ocf:heartbeat:vps \ params vps="/vz2" \ op start interval="0" timeout="1800s" \ op monitor interval="10s" timeout="60s" \ op stop interval="0" timeout="1800s" group group1 res_Filesystem1 res_ip1 res_vps1 res_MailTo1 group group2 res_Filesystem2 res_ip2 res_vps2 res_MailTo2 ms ms_drbd1 res_drbd1 \ meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" target-role="Master" ms ms_drbd2 res_drbd2 \ meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" target-role="Master" location rsc_location-ms_drbd1 ms_drbd1 \ rule $id="rsc_location-ms_drbd1-rule-0" $role="master" 150: #uname eq v00c.ss.jp \ rule $id="rsc_location-ms_drbd1-rule-1" $role="master" 100: #uname eq v00d.ss.jp location rsc_location-ms_drbd2 ms_drbd2 \ rule $id="rsc_location-ms_drbd2-rule-0" $role="master" 150: #uname eq v00d.ss.jp \ rule $id="rsc_location-ms_drbd2-rule-1" $role="master" 100: #uname eq v00c.ss.jp colocation drbd1_colocation inf: group1 ms_drbd1:Master colocation drbd2_colocation inf: group2 ms_drbd2:Master order order1 inf: ms_drbd1:promote group1:start order order2 inf: ms_drbd2:promote group2:start property $id="cib-bootstrap-options" \ dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \ cluster-infrastructure="Heartbeat" \ stonith-enabled="false" \ no-quorum-policy="ignore" \ default-resource-stickiness="200" \ last-lrm-refresh="1332422399" 2. $B [at] _D$rH?1G(B crm(live)configure# commit 3. ms_drbd2$B$r(B demote # crm crm(live)# resource crm(live)resource# crm(live)resource# demote ms_drbd2 4. $BN>%N!<%I>e$G(B Slave$B2=$7$?$3$H$r3NG'(B Master/Slave Set: ms_drbd2 Slaves: [ v00c.ss.jp v00d.ss.jp ] 5. ms_drbd2$B$r(B promote crm(live)resource# promote ms_drbd2 $B0J>e$G$9!#(B $B%j%=!<%9G[.CV@)Ls$O!"DI2C$5$l$^$;$s$G$7$?!#(B $B%j%=!<%9F15o@)Ls [at] _D$H$O8+Mn$H$7$F$$$^$7$?!#(B $B$3$l$K(B1$B=54VG:$s$G$$$?$N$GBgJQ=u$+$j$^$7$?!#(B $B$^$?!"F0:n$r8+$k8B$j!"(BDRBD$B$N@Z$jBX$($K$bLdBj$J$5$2$G$9!#(B $B$"$j$,$H$&$4$6$$$^$7$?!*!*(B $B(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(B $B:,K\(B $BL-Li(B E-mail nemo [at] zuku $B(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(B NAKAHIRA Kazutomo <nakahira.kazutomo [at] oss>$B$5$s!'(B > TO$B!':,K\$5$s(B > > $BCfJ?$H?=$7$^$9!#(B > > group2$B$,Dd;_$7$?8e!"%N!<%I(B v00d.ss.jp$B$X0\F0$7$J$$860x$G$9$,!"(B > $B0J2<$N%j%=!<%9F15o@)Ls [at] _D$K$h$k$b$N$G$9!#(B > > colocation drbd2_colocation inf: group2 ms_drbd2:Master > > $B>e5- [at] _D$K$h$j!"(Bgroup2$B$O(B ms_drbd2$B$,(B Master$B$H$7$FF0:n$7$F$$$k%N!<%I>e(B > ($B8N>cI|5l;~E@$G$O(B v00c.ss.jp)$B$G$N$_5/F02DG=$H$J$C$F$$$k$?$a!"(B > $B%N!<%I(B v00d.ss.jp$B>e$G(B group2$B$,5/F0$5$l$J$$>uBV$K$J$C$F$$$^$9!#(B > > $B$^$?8=:_$N [at] _D$G$O!"(Bgroup2$B$N0\F0$K9g$o$;$F(B ms_drbd2$B$N(B Master$B%N!<%I$r(B > $B<+F0E*$K(B v00d.ss.jp$B$K@Z$jBX$($k!"$H$$$C$?F0:n$b$7$F$/$l$^$;$s!#(B > > > $B$=$3$G:#2s$N8N>cI|5l<j=g$G$9$,!"(Bgroup2$B$r85!95/F0$7$F$$$?%N!<%I$X(B > $B0\F0$5$;$k$N$G$O$J$/!"(Bms_drbd2$B$N(B Master$B$r85$N%N!<%I$XLa$9!"(B > $B$H$$$C$?J}K!$r$H$kI,MW$,$"$j$^$9!#(B > # group2$B$O!"(Bms_drbd2$B$H$NF15o@)Ls$K$h$j<+F0E*$K(B Master$BB&$X0\F0$7$^$9!#(B > > $B$^$?!":,K\$5$s$,%a!<%k$KE:IU$7$F$$$?(B crm$B [at] _D$G$O!"(Bms_drbd1$B!"(Bms_drbd2$B$r(B > $B$I$A$i$N%N!<%I$G(B Master$B2=$9$k$N$+@_Dj$5$l$F$$$^$;$s$G$7$?$,!"$3$l$i$r(B > $B:G=i$K(B Master$B$H$7$F5/F0$9$k%N!<%I$rL@<(E*$K [at] _D$7$F$*$/I,MW$,$"$j$^$9!#(B > > $B$3$l$i$r$U$^$(!":#2s$NI|5l<j=g$O0J2<$N$H$*$j$H$J$j$^$9!#(B > > 1. ms_drbd1$B!&(Bms_drbd2$B$N(B Master$B%N!<%I$r;XDj$9$k [at] _D$NDI2C(B > crm$B%3%^%s%I$K$h$j!"0J2<$N(B location$B [at] _D$rDI2C$7$F$/$@$5$$!#(B > > location rsc_location-ms_drbd1 ms_drbd1 \ > rule $id="rsc_location-ms_drbd1-rule-0" $role="master" 150: > #uname eq v00c.ss.jp \ > rule $id="rsc_location-ms_drbd1-rule-1" $role="master" 100: > #uname eq v00d.ss.jp \ > location rsc_location-ms_drbd2 ms_drbd2 \ > rule $id="rsc_location-ms_drbd2-rule-0" $role="master" 150: > #uname eq v00d.ss.jp \ > rule $id="rsc_location-ms_drbd2-rule-1" $role="master" 100: > #uname eq v00c.ss.jp \ > > 2. ms_drbd2$B$r(B demote$B$9$k(B > # crm resource demote ms_drbd2 > > 3. crm_mon$B%3%^%s%I$K$h$j!"N>%N!<%I>e$G(B Slave$B2=$7$?$3$H$r3NG'(B > Master/Slave Set: ms_drbd2 > Slaves: [ v00c.ss.jp v00d.ss.jp ] > > 4. ms_drbd2$B$r(B promote$B$9$k(B > # crm resource promote ms_drbd2 > > $B>e5-<j=g$N<B9T8e!"(Bms_drbd2$B$OG[.CV@)Ls$K=>$C$?%N!<%I>e$G(B > Master$B2=$7!"(Bgroup2$B$b(B Master$B%N!<%I$X<+F0E*$K0\F0$7$^$9!#(B > > 5. "crm resource move group2 v00d.ss.jp force"$B%3%^%s%I$K$h$j(B > $BDI2C$5$l$?%j%=!<%9G[CV@)Ls$,;D$C$F$$$k>l9g$O!"$3$l$r>C5n$9$k!#(B > # crm_resource -U -r group2 > > > $B$J$*!";d$O(B DRBD$B$K$D$$$F$O$"$^$j>\$7$/$J$$$N$G!"$b$7(B DRBD$B$K8GM-$N(B > Master/Slave$B@Z$jBX$(F0:n$H$7$FLdBj$,$"$j$=$&$G$7$?$i!"(B > $B$9$$$^$;$s$,C/$+JdB-$r$*4j$$$7$^$9!#(B > > > $B0J>e$G$9!#(B > > (2012/03/23 12:36), nemo [at] zuku wrote: > > $B:,K\$H?=$7$^$9!#(B > > > > $BI|5l$7$?%N!<%I$+$i!"%j%=!<%9%0%k!<%W$r$r85$N>uBV$KLa$9J}K!$K4X$7$F<ALd$,$"$j%a!<%kCW$7$^$9!#(B > > > > > > [$B4D6-(B] > > OS : CentOS release 6.2 > > $B"((B $B [at] 53$K$O!"(BOpenvz Kernel$B$G$9!#(B > > # uname -a > > Linux v00c.ss.jp 2.6.32-042stab049.6 #1 SMP Mon Feb 20 19:46:19 JST 2012 x86_64 x86_64 x86_64 GNU/Linux > > > > $B9=@.!';PKe9=@.(B(2$BBf9=@.(B) > > pacemaker-1.0.11-1.2.2.el6.x86_64(Linux-HA Japan$BDs6!(B) > > > > > > ----$BEv=i$N3F%N!<%I$N>uBV(B---- > > # crm_mon > > ============ > > Last updated: Thu Mar 22 22:37:01 2012 > > Stack: Heartbeat > > Current DC: v00c.ss.jp (5162e974-3a14-4e12-a66a-eb94e6b08736) - partition with quorum > > Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87 > > 2 Nodes configured, unknown expected votes > > 4 Resources configured. > > ============ > > > > Online: [ v00c.ss.jp v00d.ss.jp ] > > > > Resource Group: group1 > > res_Filesystem1 (ocf::heartbeat:Filesystem): Started v00c.ss.jp > > res_ip1 (ocf::heartbeat:IPaddr2): Started v00c.ss.jp > > res_vps1 (ocf::heartbeat:vps): Started v00c.ss.jp > > res_MailTo1 (ocf::heartbeat:MailTo): Started v00c.ss.jp > > Resource Group: group2 > > res_Filesystem2 (ocf::heartbeat:Filesystem): Started v00d.ss.jp > > res_ip2 (ocf::heartbeat:IPaddr2): Started v00d.ss.jp > > res_vps2 (ocf::heartbeat:vps): Started v00d.ss.jp > > res_MailTo2 (ocf::heartbeat:MailTo): Started v00d.ss.jp > > Master/Slave Set: ms_drbd1 > > Masters: [ v00c.ss.jp ] > > Slaves: [ v00d.ss.jp ] > > Master/Slave Set: ms_drbd2 > > Masters: [ v00d.ss.jp ] > > Slaves: [ v00c.ss.jp ] > > > > > > > > $B>e5->uBV$+$i!"JRB&(B(v00d)$B$N(Bheartbeat$B$rMn$H$7$^$9!#(B > > # /etc/rc.d/init.d/heartbeat stop > > ----$BJRJ}$N%N!<%I(B(v00d)$B$N(Bheartbeat$B$rMn$H$7$?>uBV(B---- > > # crm_mon > > ============ > > Last updated: Thu Mar 22 22:40:11 2012 > > Stack: Heartbeat > > Current DC: v00c.ss.jp (5162e974-3a14-4e12-a66a-eb94e6b08736) - partition with quorum > > Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87 > > 2 Nodes configured, unknown expected votes > > 4 Resources configured. > > ============ > > > > Online: [ v00c.ss.jp ] > > OFFLINE: [ v00d.ss.jp ] > > > > Resource Group: group1 > > res_Filesystem1 (ocf::heartbeat:Filesystem): Started v00c.ss.jp > > res_ip1 (ocf::heartbeat:IPaddr2): Started v00c.ss.jp > > res_vps1 (ocf::heartbeat:vps): Started v00c.ss.jp > > res_MailTo1 (ocf::heartbeat:MailTo): Started v00c.ss.jp > > Resource Group: group2 > > res_Filesystem2 (ocf::heartbeat:Filesystem): Started v00c.ss.jp > > res_ip2 (ocf::heartbeat:IPaddr2): Started v00c.ss.jp > > res_vps2 (ocf::heartbeat:vps): Started v00c.ss.jp > > res_MailTo2 (ocf::heartbeat:MailTo): Started v00c.ss.jp > > Master/Slave Set: ms_drbd1 > > Masters: [ v00c.ss.jp ] > > Stopped: [ res_drbd1:1 ] > > Master/Slave Set: ms_drbd2 > > Masters: [ v00c.ss.jp ] > > Stopped: [ res_drbd2:1 ] > > > > > > > > $BJRB&(B(v00d)$B$N(Bheartbeat$B$r5/F0$7$^$9!#(B > > # /etc/rc.d/init.d/heartbeat start > > ----$BJRJ}$N%N!<%I(B(v00d)$B$N(Bheartbeat$B$rN)$A>e$2$?>uBV(B---- > > # crm_mon > > ============ > > Last updated: Thu Mar 22 22:38:25 2012 > > Stack: Heartbeat > > Current DC: v00c.ss.jp (5162e974-3a14-4e12-a66a-eb94e6b08736) - partition with quorum > > Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87 > > 2 Nodes configured, unknown expected votes > > 4 Resources configured. > > ============ > > > > Online: [ v00c.ss.jp v00d.ss.jp ] > > > > Resource Group: group1 > > res_Filesystem1 (ocf::heartbeat:Filesystem): Started v00c.ss.jp > > res_ip1 (ocf::heartbeat:IPaddr2): Started v00c.ss.jp > > res_vps1 (ocf::heartbeat:vps): Started v00c.ss.jp > > res_MailTo1 (ocf::heartbeat:MailTo): Started v00c.ss.jp > > Resource Group: group2 > > res_Filesystem2 (ocf::heartbeat:Filesystem): Started v00c.ss.jp > > res_ip2 (ocf::heartbeat:IPaddr2): Started v00c.ss.jp > > res_vps2 (ocf::heartbeat:vps): Started v00c.ss.jp > > res_MailTo2 (ocf::heartbeat:MailTo): Started v00c.ss.jp > > Master/Slave Set: ms_drbd1 > > Masters: [ v00c.ss.jp ] > > Slaves: [ v00d.ss.jp ] > > Master/Slave Set: ms_drbd2 > > Masters: [ v00c.ss.jp ] > > Slaves: [ v00d.ss.jp ] > > > > > > > > $B$3$N>uBV$+$i!"!V(B----$BEv=i$N3F%N!<%I$N>uBV(B----$B!W$XLa$7$?$$$N$G$9$,$I$&$b$&$^$/$$$+$J$$$h$&$G$9!#(B > > $B;d$,9T$C$?;v$H$7$F$O!"2<5-%3%^%s%I$G%j%=!<%9$r0\F0$7$^$7$?!#(B > > # crm > > crm(live)# resource > > crm(live)resource# move group2 v00d.ss.jp force > > ----$B0J2<=PNO$5$l$F%a%C%;!<%8(B---- > > WARNING: Creating rsc_location constraint 'cli-standby-group2' with a score of -INFINITY for resource group2 on v00c.ss.jp. > > This will prevent group2 from running on v00c.ss.jp until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin > > This will be the case even if v00c.ss.jp is the last node in the cluster > > This message can be disabled with -Q > > > > ----move$B$7$?8e$N>uBV(B---- > > # crm_mon > > ============ > > Last updated: Fri Mar 23 12:27:39 2012 > > Stack: Heartbeat > > Current DC: v00c.ss.jp (5162e974-3a14-4e12-a66a-eb94e6b08736) - partition with quorum > > Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87 > > 2 Nodes configured, unknown expected votes > > 4 Resources configured. > > ============ > > > > Online: [ v00c.ss.jp v00d.ss.jp ] > > > > Resource Group: group1 > > res_Filesystem1 (ocf::heartbeat:Filesystem): Started v00c.ss.jp > > res_ip1 (ocf::heartbeat:IPaddr2): Started v00c.ss.jp > > res_vps1 (ocf::heartbeat:vps): Started v00c.ss.jp > > res_MailTo1 (ocf::heartbeat:MailTo): Started v00c.ss.jp > > Master/Slave Set: ms_drbd1 > > Masters: [ v00c.ss.jp ] > > Slaves: [ v00d.ss.jp ] > > Master/Slave Set: ms_drbd2 > > Masters: [ v00c.ss.jp ] > > Slaves: [ v00d.ss.jp ] > > > > > > > > group1$B$N%j%=!<%9$,Dd;_$7$?$"$H!"(Bv00d$BB&$G%j%=!<%9$,N)$A>e$,$C$F$/$l$^$;$s!#(B > > $B$I$3$+!"<j=g$,4V0c$C$FF~$k$N$G$7$g$&$+!#3F%[%9%H$N(Bheartbeat$B$N%m%0$rE:IU$7$^$9!#(B > > > > $B$^$?!"(Bheartbeat$B$N%j%=!<%9 [at] _D$O(Bcrm$B%7%'%k$+$i [at] _D$7$F$$$^$9!#(B > > $B$=$l$bE:IU$7$^$9!#(B > > > > > > > > $BITL@E@$J$I$,$"$l$P!"$4;XE&D:2<$5$$!#(B > > $B0J>e!"$h$m$7$/$*4j$$CW$7$^$9!#(B > > > > > > > > _______________________________________________ > > Linux-ha-japan mailing list > > Linux-ha-japan [at] lists > > http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > > > -- > NAKAHIRA Kazutomo > Infrastructure Software Technology Unit > NTT Open Source Software Center > > _______________________________________________ > Linux-ha-japan mailing list > Linux-ha-japan [at] lists > http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan _______________________________________________ Linux-ha-japan mailing list Linux-ha-japan [at] lists http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan
|