よしばー
kitab****@gmail*****
2015年 2月 18日 (水) 14:53:03 JST
$B>>EgMM(B $B8f@$OC$K$J$C$F$*$j$^$9!#(B $BKLNS$G$9!#(B $BO"Ej<:NiCW$7$^$9!#(B $B%m%0%m!<%F!<%H$N @ _Dj$K4X$7$^$7$F!"(B $B;n$7$K$d$C$F$_$?$N$G$9$,!"(B $B0J2<$NJ}K!$G @ 5$7$$$NH]$+!"$43NG'$$$?$@$1$J$$$G$7$g$&$+!#(B # vi /etc/logrotate.d/corosync.log $B!J(Bcorosync.log$BFbMF!K(B /var/log/cluster/corosync.log{ $B!!(Bmissingok $B!!(Bnotifempty $B!!(Bdaily $B!!(Brotate 30 $B!!(Bcompress } $B!JKhF|%m!<%F!<%H$7$F05=L!"(B30$BF|0J>eA0$N%m%0$O>C$($k @ _Dj$G$9!#!K(B $B0J>e$G$9!#(B $B2?EY$b?=$7Lu$"$j$^$;$s!#(B $B$h$m$7$/$*4j$$CW$7$^$9!#(B 2015/02/18 $B$h$7$P!<(B <kitab****@gmail*****>: > $B>>EgMM(B > > $B?=$7Lu$4$6$$$^$;$s!#(B > $B>e5-$K2C$($^$7$F!"(B > > pacemaker$B$N%m%0(B > /var/log/cluster/corosync.log > $B$r%m%0%m!<%F!<%H$9$k$K$O(B > $B$I$&$9$l$P$$$$$N$+!"(B > $B;29M(BURL$B$r$*65$($$$?$@$1$J$$$G$7$g$&$+!#(B > > $B$h$m$7$/$*4j$$CW$7$^$9!#(B > > 2015/02/18 $B$h$7$P!<(B <kitab****@gmail*****>: >> $B>>EgMM(B >> >> $B$*K;$7$$$J$+JV?.$/$@$5$j!"(B >> $B$"$j$,$H$&$4$6$$$^$9!#(B >> $B>>EgMM$[$I$NJ}$G$b$&$C$+$j$5$l$k$s$G$9$M!!>P(B >> >> $B2?EY$b?=$7Lu$"$j$^$;$s!"(B >> $B2TF0<+BN$O @ 5>o$J$N$G$9$,!"@_Dj>e$N5?Ld$,(B2$BE @ Ib$+$S$^$7$?(B;; >> $B$465<xD:$1$J$$$G$7$g$&$+!#(B >> >> $BA0Ds!((B >> $B!Z%[%9%HL>![(B >> $B%5!<%P(B1$B!'(Bfirst >> $B%5!<%P(B2$B!'(Bsecond >> >> $B-!(B >> $B!Z4pK\2TF0$O(Bfirst$B%5!<%P$K$7$F!"(B >> first$B%5!<%P$G0[>o$,$"$C$?>l9g$O(Bsecond$B%5!<%P$K4IM}$r$^$+$;$?$$!#(B >> $B$=$N8e!"(Bfirst$B%5!<%P$N0[>o$,$J$*$C$F!"4IM}$r(Bsecond$B$+$i(Bfirst$B$K0\$7$?$$;~!"(B >> second$B%5!<%P$N(Bpacemaker$B$N:F5/F00J30$KJ}K!$O$"$k$N$+![(B >> >> $B>e5-$NF0$-$r$5$;$?$$:]$K;d$,$H$C$F$$$k<j=g$H$7$^$7$F$O(B >> >> 1.[first]:# initctl restart pacemaker.combined >> 2.[first]:# crm_mon -fAD1 >> Online: [ first second ] >> >> Resource Group: web-group >> vipcheck (ocf::heartbeat:VIPcheck): Started first >> tomcat (ocf::heartbeat:tomcat): Started first >> apache (ocf::heartbeat:apache): Started first >> vip (ocf::heartbeat:IPaddr2): Started first >> 3.[first]:# service httpd stop $B"+%F%9%H$G(Bhttpd$B$r$H$a$F$_$k(B >> 4.[first]:# crm_mon -fAD1 >> Online: [ first second ] >> >> Resource Group: web-group >> vipcheck (ocf::heartbeat:VIPcheck): Started second >> tomcat (ocf::heartbeat:tomcat): Started second >> apache (ocf::heartbeat:apache): Started second >> vip (ocf::heartbeat:IPaddr2): Started second >> >> Node Attributes: >> * Node first: >> * Node second: >> >> Migration summary: >> * Node first: >> apache: migration-threshold=1 fail-count=1 last-failure='Wed Feb 18 >> 11:02:00 2015' >> * Node second: >> >> Failed actions: >> apache_monitor_10000 on first 'not running' (7): call=102, >> status=complete, >> last-rc-change='Wed Feb 18 11:02:00 2015', queued=0ms, exec=0ms >> >> 5.[first]# crm resource cleanup apache >> Cleaning up apache on first >> Cleaning up apache on second >> Waiting for 2 replies from the CRMd.. OK >> >> 6.[first]# crm_mon -fAD1 >> Online: [ first second ] >> >> Resource Group: web-group >> vipcheck (ocf::heartbeat:VIPcheck): Started second >> tomcat (ocf::heartbeat:tomcat): Started second >> apache (ocf::heartbeat:apache): Started second >> vip (ocf::heartbeat:IPaddr2): Started second >> >> Node Attributes: >> * Node first: >> * Node second: >> >> Migration summary: >> * Node first: >> * Node second: >> >> $B"((Bsecond$B%5!<%P!<$GA`:n(B >> 7.[second]# initctl restart pacemaker.combined >> >> 8.[first]# crm_mon -fAD1 >> Online: [ first second ] >> >> Resource Group: web-group >> vipcheck (ocf::heartbeat:VIPcheck): Started first >> tomcat (ocf::heartbeat:tomcat): Started first >> apache (ocf::heartbeat:apache): Started first >> vip (ocf::heartbeat:IPaddr2): Started first >> >> Node Attributes: >> * Node first: >> * Node second: >> >> Migration summary: >> * Node first: >> * Node second: >> >> $B!J8=:_(Bcrm$B @ _Dj%U%!%$%k$K!"(B >> $B>>EgMM$N(B >> http://qiita.com/takehironet/items/08716d3a9d1165f47b5c >> $B$NFbMF$K2C$(!"(B >> $B"-"-(B >> location rsc_location-1 web-group \ >> rule 200: #uname eq first \ >> rule 100: #uname eq second >> $B",",(B >> $B$H$$$&@_Dj$r2C$($F$*$j$^$9!#!K(B >> >> $B>e5-$N<j=g$G!"(Bsecond$B$+$i(Bfirst$B$K4IM}$r0\$7$F$7$F$$$^$9$,!"(B >> $B$3$N$h$&$K(Bpacemaker$B$r:F5/F0$9$k%3%^%s%I$G$O$J$/!"(B >> $BB>$N%3%^%s%I$G(Bsecond$B$+$i(Bfirst$B$K4IM}$r0\$9J}K!$O$J$$$G$7$g$&$+!#(B >> $B$h$m$7$/$*4j$$CW$7$^$9!#(B >> >> $B-"(B >> $B!Z(B"corosync.conf.example"$B$H(B"corosync.conf.example.udpu"$B$N0c$$$H!"@_Dj$NFbMF![(B >> >> $B>>EgMM$N @ _Dj$r;29M$K!"(B >> /etc/corosync/corosync.conf$B$r(B"corosync.conf.example.udpu"$B$r85$K:n @ .$7$F$$$^$9$,!"(B >> "corosync.conf.example"$B$H$N0c$$$O$J$s$J$N$G$7$g$&$+!#(B >> >> $B$^$?!"(B >> >> corosync.conf >> # Please read the corosync.conf.5 manual page >> totem { >> version: 2 >> >> crypto_cipher: none $B"((B1 >> crypto_hash: none $B"((B2 >> >> interface { >> ringnumber: 0 >> bindnetaddr: 192.168.128.0 >> mcastport: 5405 >> ttl: 1 >> } >> transport: udpu $B"((B3 >> } >> >> logging { >> fileline: off >> to_logfile: yes >> to_syslog: no >> logfile: /var/log/cluster/corosync.log >> debug: off >> timestamp: on >> logger_subsys { $B"((B4 >> subsys: QUORUM >> debug: off >> } >> } >> >> nodelist { >> node { >> ring0_addr: 192.168.128.121 >> nodeid: 1 >> } >> >> node { >> ring0_addr: 192.168.128.122 >> nodeid: 2 >> } >> } >> >> quorum { >> # Enable and configure quorum subsystem (default: off) >> # see also corosync.conf.5 and votequorum.5 >> provider: corosync_votequorum >> expected_votes: 2 >> } >> >> $B>e5-$N"($,$D$$$F$$$kItJ,$N @ _Dj$r!"(B >> $B$6$C$/$j$H65$($F$$$?$@$1$J$$$G$7$g$&$+!#(B >> >> $B$h$m$7$/$*4j$$CW$7$^$9!#(B >> >> 2015/02/17 Takehiro Matsushima <takeh****@gmail*****>: >>> $BKLNS$5$s(B >>> >>> $B>>Eg$G$9!"$*@$OC$K$J$C$F$*$j$^$9!#(B >>> $BI.$,CY$/$F?=$7Lu$4$6$$$^$;$s!#(B >>> >>> $B$*$C$7$c$k$H$*$j!"86B'$G$O(BPacemaker$B$G4IM}$9$k%j%=!<%9$O(BPacemaker$B30$G5/F0$7$J$$$H$$$&$3$H$K$J$j$^$9!#(B >>> $B<B83$N$?$a$K<j$GF0$+$7$?$3$H$rK:$l$F;d$b;~!9%O%^$C$F$*$j$^$9(B($B4@(B) >>> >>> $B$R$H$^$:@.8y$5$l$?$H$$$&$3$H$G!"0B?4CW$7$^$7$?!#(B >>> $B:#8e$H$b$h$m$7$/$*4j$$$$$?$7$^$9!#(B >>> >>> ---- >>> Takehiro Matsushima >>> _______________________________________________ >>> Linux-ha-japan mailing list >>> Linux****@lists***** >>> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan >>> >> >