[Linux-ha-jp] pacemakerが正常に起動できません。

Back to archive index

よしばー kitab****@gmail*****
2015年 6月 4日 (木) 12:12:14 JST


$B;3FbMM(B

$B8f@$OC$K$J$C$F$*$j$^$9!#(B
$BKLNS$G$9!#(B
$B$42sEz$"$j$,$H$&$4$6$$$^$9!#(B

$B2?EY$b?=$7$o$1$"$j$^$;$s!"(B
$B5/F0!"Dd;_$N=g$O(B
$B!J5/F0!K(B
#initctl start corosync
#initctl start pacemaker
$B!JDd;_!K(B
#initctl stop pacemaker
#initctl stop corosync

$B$G$h$m$7$$$G$7$g$&$+!#(B

2015/06/04 renay****@ybb***** <renay****@ybb*****>:
> $BKLNS$5$s(B
>
>
> $B$3$s$K$A$O!";3Fb$G$9!#(B
>
> $B#1!$#2!$#36&$K4pK\E*$JF0:n$K0c$$$O$"$j$^$;$s!#(B
>
> $B5/F0!&Dd;_$r4J0W$K$7$F$$$k$N$,!"(Bpacemaker.combined$B$H$$$&G'<1$G(BOK$B$G$9!#(B
>
>
> pacemaker.combined$B$G5/F0$G$-$J$$7o$G$9$,!"<j85$N(BRHEL6.5$B!J(BVM)$B$G$O:#$N=j!":F8=$7$^$;$s!#(B
>
> $B2?$+$o$+$j$^$7$?$i!"$4O"Mm$7$^$9!#(B
>
> $B0J>e$G$9!#(B
>
>
>
> ----- Original Message -----
>> From: $B$h$7$P!<(B <kitab****@gmail*****>
>> To: renay****@ybb*****; linux****@lists*****
>> Cc:
>> Date: 2015/6/4, Thu 11:36
>> Subject: Re: [Linux-ha-jp] pacemaker$B$, @ 5>o$K5/F0$G$-$^$;$s!#(B
>>
>> $B;3FbMM(B
>>
>> $B2?EY$b?=$7$o$1$"$j$^$;$s!#(B
>> $BKLNS$G$9!#(B
>> $BDI2C$G<ALd$,$4$6$$$^$9!#(B
>>
>> $B!Z(B1$B![(B
>> pacemaker$B$r5/F0$7$?8e!"(B
>> $B0J2<$N @ _Dj$r(Bpacemaker$B$KFI$_9~$^$;$?$$$N$G$9$,!"(B
>> #initctl start corosync
>> #initctl start pacemaker
>> $B$G!"(Bpacemaker$B$r5/F0$5$;$?>l9g$G$b2DG=$J$N$G$7$g$&$+!#(B
>>
>>
>> $B<j=g-!(B#vi 0604.crm
>> ===========================
>> $B!J @ _DjFbMF!K(B
>> node 1: first
>> node 2: second
>> primitive vipcheck ocf:heartbeat:VIPcheck \
>>         params \
>>                 target_ip="172.16.87.233" \
>>                 count=3 \
>>                 wait=5 \
>>         op start   interval=0  timeout=60 on-fail="restart" \
>>         op stop    interval=0  timeout=60 on-fail="ignore" \
>>         op monitor interval=10 timeout=60 on-fail="restart"
>> start-delay=0
>> primitive tomcat ocf:heartbeat:tomcat \
>>         params \
>>                 java_home="/usr/lib/jvm/java-1.7.0-openjdk.x86_64"
>> \
>>                 catalina_home="/var/lib/tomcat" \
>>         op start   interval=0  timeout=60  on-fail="restart" \
>>         op stop    interval=0  timeout=120 on-fail="ignore" \
>>         op monitor interval=10 timeout=30  on-fail="restart"
>> primitive apache ocf:heartbeat:apache \
>>         op start   interval=0  timeout=40 on-fail="restart" \
>>         op stop    interval=0  timeout=60 on-fail="ignore" \
>>         op monitor interval=10 timeout=20 on-fail="restart"
>> primitive vip ocf:heartbeat:IPaddr2 \
>>         params ip="172.16.87.233" \
>>         op start   interval=0  timeout=20 on-fail="restart" \
>>         op stop    interval=0  timeout=20 on-fail="ignore" \
>>         op monitor interval=10 timeout=20 on-fail="restart"
>> group web-group \
>>         vipcheck tomcat apache vip
>> location rsc_location-1 web-group \
>>     rule 200: #uname eq first \
>>     rule 100: #uname eq second
>> property cib-bootstrap-options: \
>>         no-quorum-policy=ignore \
>>         stonith-enabled=false
>> rsc_defaults rsc-options: \
>>         resource-stickiness=INFINITY \
>>         migration-threshold=1
>> ===========================
>> $B<j=g-"(B#crm configure load update$B!!(B0604.crm
>>
>>
>> $B!Z(B2$B![(B
>> #initctl start corosync
>> #initctl start pacemaker
>> $B$G(Bpacemaker$B$r5/F0$5$;$?>l9g$G$b!"(B
>> #initctl start pacemaker.combined$B$G5/F0$5$;$?>l9g$H(B
>> $B>c32$,5/$3$C$?8e$N!"%N!<%I$N @ Z$jBX$(J}$OF1$8$G$7$g$&$+!#(B
>>
>> $B!J(B#crm resource cleanup $B!{!{(B
>> #crm resource move $B!{!{(B
>> #crm resource unmove $B!{!{Ey!K(B
>>
>> $B!Z(B3$B![(B
>> $B$=$NB>!"(B
>> #initctl start corosync
>> #initctl start pacemaker
>> $B$G(Bpacemaker$B$r5/F0$5$;$?>l9g$H(B
>> #initctl start pacemaker.combined
>> $B$G(Bpacmaker$B$G5/F0$5$;$?>l9g$G!"A`:nJ}K!Ey$K0c$$$O$"$j$^$9$G$7$g$&$+!#(B
>> (#initctl start corosync
>> #initctl start pacemaker$B$N5/F0!&Dd;_$N=gHV$J$I(B)
>>
>> $B0J>e$G$9!#(B
>> $BD9$/$J$j?=$7$o$1$"$j$^$;$s!#(B
>>
>> $B$h$m$7$/$*4j$$CW$7$^$9!#(B
>>
>> 2015/06/04 $B$h$7$P!<(B <kitab****@gmail*****>:
>>>  $B;3FbMM(B
>>>
>>>  $B8f@$OC$K$J$C$F$*$j$^$9!#(B
>>>  $BKLNS$G$9!#(B
>>>  $BJV?.$"$j$,$H$&$4$6$$$^$9!#(B
>>>
>>>  $B2sEz$5$;$FD:$-$^$9!#(B
>>>
>>>  $B!Z(B1$B![4D6-(B(OS,libqb,corosyn$B$N%P!<%8%g%s(B)
>>>  OS$B!'(BRHEL6.5
>>>  libqb:0.17.1-1el6
>>>  corosync:2.3.4-1.el6
>>>
>>>  $B!Z(B2$B![(Bpacemaker.combined$B$OMxMQ$;$:$K8DJL$N5/F0$O2DG=$+(B
>>>  $B-!(Binitctl start corosync$B!!"M2DG=(B
>>>  $B-"(Binitctl start pacemaker$B!!"M2DG=(B
>>>
>>>  #crm_mon -fAD$B%3%^%s%I$N7k2L!"(B
>>>  $BN>%N!<%I$N>uBV$,!V(BOnline$B!W$K$J$C$F$$$k$3$H$r3NG'=PMh$^$7$?!#(B
>>>
>>>  $B!Z(B3$B![(Bpacemaker.combined$B$N%U%!%$%k(B
>>>  $B$3$l$O!"(B
>>>  /etc/init/pacemaker.combined.conf$B$G$h$m$7$$$G$7$g$&$+!#(B
>>>
>>>  #view /etc/init/pacemaker.combined.conf
>>>  ($BFbMF(B)
>>>  # pacemaker-corosync - High-Availability cluster
>>>  #
>>>  # Starts Corosync cluster engine and Pacemaker cluster manager.
>>>
>>>  stop on runlevel [0123456]
>>>  kill timeout 3600
>>>  respawn
>>>
>>>  env prog=pacemakerd
>>>  env rpm_sysconf=/etc/sysconfig/pacemaker
>>>  env rpm_lockfile=/var/lock/subsys/pacemaker
>>>  env deb_sysconf=/etc/default/pacemaker
>>>  env deb_lockfile=/var/lock/pacemaker
>>>
>>>  script
>>>      [ -f "$rpm_sysconf" ] && . $rpm_sysconf
>>>      [ -f "$deb_sysconf" ] && . $deb_sysconf
>>>      exec $prog
>>>  end script
>>>
>>>  pre-start script
>>>      # setup the software watchdog which corosync uses.
>>>      # rewrite according to environment.
>>>      modprobe softdog soft_margin=60
>>>      pidof corosync || start corosync
>>>
>>>      # if you use corosync-notifyd, uncomment the line below.
>>>      #start corosync-notifyd
>>>
>>>      # give it time to fail.
>>>      sleep 2
>>>      pidof corosync || { exit 1; }
>>>  end script
>>>
>>>  post-start script
>>>      [ -f "$rpm_sysconf" ] && . $rpm_sysconf
>>>      [ -f "$deb_sysconf" ] && . $deb_sysconf
>>>      [ -z "$LOCK_FILE" -a -d /etc/sysconfig ] &&
>> LOCK_FILE="$rpm_lockfile"
>>>      [ -z "$LOCK_FILE" -a -d /etc/default ] &&
>> LOCK_FILE="$deb_lockfile"
>>>      touch $LOCK_FILE
>>>      pidof $prog > /var/run/$prog.pid
>>>  end script
>>>
>>>  post-stop script
>>>      [ -f "$rpm_sysconf" ] && . $rpm_sysconf
>>>      [ -f "$deb_sysconf" ] && . $deb_sysconf
>>>      [ -z "$LOCK_FILE" -a -d /etc/sysconfig ] &&
>> LOCK_FILE="$rpm_lockfile"
>>>      [ -z "$LOCK_FILE" -a -d /etc/default ] &&
>> LOCK_FILE="$deb_lockfile"
>>>      rm -f $LOCK_FILE
>>>      rm -f /var/run/$prog.pid
>>>
>>>      # if you use watchdog of corosync, uncomment the line below.
>>>      pidof corosync || false
>>>
>>>      pidof crmd || stop corosync
>>>
>>>      # if you want to reboot a machine by watchdog of corosync when
>>>      # pacemakerd disappeared unexpectedly, uncomment the line below
>>>      # and invalidate above "respawn" stanza.
>>>      #pidof crmd && killall -q -9 corosync
>>>
>>>      # if you use corosync-notifyd, uncomment the line below.
>>>      #stop corosync-notifyd || true
>>>  end script
>>>
>>>
>>>  $B0J>e$G$9!#(B
>>>
>>>  #initctl start corosync
>>>  #initctl start pacemaker
>>>  $B$G$b(Bpacemaker$B$r5/F0$5$;$k$3$H$,=PMh$k$N$r3NG'CW$7$^$7$?$,!"$d$O$j(B
>>>  #initctl start pacemaker.combined
>>>  $B$G5/F0$5$;$?$$$G$9!#(B
>>>
>>>  $B$*<j?t$r$*$+$1$7?=$7$o$1$"$j$^$;$s$,!"CN7C$rD:$1$^$;$s$G$7$g$&$+!#(B
>>>
>>>  $B$h$m$7$/$*4j$$CW$7$^$9!#(B
>>>
>>>  2015/06/04 renay****@ybb***** <renay****@ybb*****>:
>>>>  $BKLNS$5$s(B
>>>>
>>>>
>>>>  $B$3$s$K$A$O!";3Fb$G$9!#(B
>>>>
>>>>  $B$9$$$^$;$s!#$b$&#1E@!&!&!&(B
>>>>
>>>>  $BG0$N0Y!"(Bpacemaker.combined$B$N%U%!%$%k$b3+<($7$FD:$1$^$9$G$7$g$&$+!)(B
>>>>
>>>>  $B0J>e$G$9!#(B
>>>>
>>>>
>>>>  ----- Original Message -----
>>>>>  From: "renay****@ybb*****"
>> <renay****@ybb*****>
>>>>>  To: "linux****@lists*****"
>> <linux****@lists*****>;
>>>>>  linux-ha-japan <linux****@lists*****>
>>>>>  Cc:
>>>>>  Date: 2015/6/4, Thu 08:22
>>>>>  Subject: Re: [Linux-ha-jp] pacemaker$B$, @ 5>o$K5/F0$G$-$^$;$s!#(B
>>>>>
>>>>>  $BKLNS$5$s(B
>>>>>
>>>>>  $B$3$s$K$A$O!";3Fb$G$9!#(B
>>>>>
>>>>>  RAID1$B$N @ _Dj$O4X78$J$$$H;W$o$l$^$9!#(B
>>>>>
>>>>>  $B$A$J$_$K!"4D6-(B(OS,libqb,corosyn$B$N%P!<%8%g%s(B)$B$J$I3NG'$7$FD:$1$^$9$G$7$g$&$+!)(B
>>>>>
>>>>>  $B8e#1E@!"(Bpacemaker.combined$B$OMxMQ$;$:$K8DJL$N5/F0$O2DG=$G$7$g$&$+!)(B
>>>>>
>>>>>  $B-!(Binitctl start corosync
>>>>>  $B-"(Binitctl start pacemaker
>>>>>
>>>>>  $B0J>e$G$9!#(B
>>>>>
>>>>>
>>>>>  ----- Original Message -----
>>>>>>   From: $B$h$7$P!<(B <kitab****@gmail*****>
>>>>>>   To: linux-ha-japan <linux****@lists*****>
>>>>>>   Cc:
>>>>>>   Date: 2015/6/3, Wed 15:53
>>>>>>   Subject: Re: [Linux-ha-jp] pacemaker$B$, @ 5>o$K5/F0$G$-$^$;$s!#(B
>>>>>>
>>>>>>   $B$$$D$b8f@$OC$K$J$C$F$*$j$^$9!#(B
>>>>>>   $BKLNS$G$9!#(B
>>>>>>   $B2?EY$b?=$7$o$1$"$j$^$;$s!#(B
>>>>>>
>>>>>>   $B @ hDx<ALd$5$;$FD:$$$?%5!<%P$N4D6-$G$9$,!"(B
>>>>>>   2$BBf$G%/%i%9%?9=@.$rAH$b$&$H;W$C$F$$$F!"(B
>>>>>>   $B$J$*$+$D!"$=$l$>$l(BRAID1$B$N @ _Dj$,$7$F$"$j$^$9!#(B
>>>>>>
>>>>>>   $B$J$K$+4X78$,$"$k$N$G$7$g$&$+!#(B
>>>>>>
>>>>>>   $B$*<j?t$r$*$+$1$7?=$7$o$1$"$j$^$;$s!#(B
>>>>>>   $B:#$^$G$HA4$/F1$8<j=g$G9T$C$F$$$k$N$K!"(B
>>>>>>   $B$J$<$3$3$G%(%i!<$,5/$-$k$N$+$o$+$i$::$OG$7$F$$$^$9!#(B
>>>>>>
>>>>>>   $B$h$m$7$/$*4j$$CW$7$^$9!#(B
>>>>>>
>>>>>>
>>>>>>   2015/06/03 $B$h$7$P!<(B <kitab****@gmail*****>:
>>>>>>>    $B$$$D$b8f@$OC$K$J$C$F$*$j$^$9!#(B
>>>>>>>    $BKLNS$G$9!#(B
>>>>>>>
>>>>>>>    Pacemaker-1.1.12$B$r;H$C$?%/%i%9%?9=@.$K$*$$$F!"(B
>>>>>>>    $B0J2<$N%(%i!<$,H/@8$$$?$7$^$7$?!#(B
>>>>>>>    $B$*<j?t$r$*$+$1$7?=$7$o$1$"$j$^$;$s$,!"$465<xD:$1$J$$$G$7$g$&$+!#(B
>>>>>>>
>>>>>>>    $B @ _DjJ}K!$O!"0J2<$r;29M$K$7$F$$$^$9!#(B
>>>>>>>
>> http://linux-ha.osdn.jp/wp/wp-content/uploads/OSC-Tokyo2014Fall.pdf
>>>>>>>
>>>>>>>    $B-!(B#initctl start pacemaker.combined$B!!$,;H$($J$$!#(B
>>>>>>>
>>>>>>>    $B=i4|@_Dj$r9T$$!"(Binitctl start pacemaker.combined$B%3%^%s%I$rF~NO$7$^$9$H!"(B
>>>>>>>    $B!Z(Binitctl: Job failed to start$B![(B
>>>>>>>    $B$H(Bpacemaker$B$r5/F0$9$k$3$H$,=PMh$^$;$s!#(B
>>>>>>>    $B$3$N>l9g!"2?$,860x$H9M$($i$l$k$N$G$7$g$&$+!#(B
>>>>>>>
>>>>>>>    $B-"-!$NB3$-$K!";n$7$K(B#initctl start pacemake$B$H$&$C$F$_$k$H!"(B
>>>>>>>    $B%W%m%;%9$O5/F0$9$k$b$N$N!"(B
>>>>>>>     #crm_mon -fAD$B%3%^%s%I$r$&$C$F$b(B
>>>>>>>    $B!Z(BAttempting connection to the cluster...$B![$N$^$^F0$-$,$"$j$^$;$s!#(B
>>>>>>>
>>>>>>>    $B$3$N:]$N!"(Bpacemaker.log$B$NFbMF$O0J2<$G$9!#(B
>>>>>>>
>>>>>>>    $B"'(Bpacemaker.log
>>>>>>>
>>>>>>>    Jun 03 13:32:12 [4600] first pacemakerd:     info:
>> mcp_read_config:
>>>>>>>      cmap connection setup failed: CS_ERR_LIBRARY.  Retrying
>> in 2s
>>>>>>>    Jun 03 13:32:14 [4600] first pacemakerd:     info:
>> mcp_read_config:
>>>>>>>      cmap connection setup failed: CS_ERR_LIBRARY.  Retrying
>> in 3s
>>>>>>>    Jun 03 13:32:17 [4600] first pacemakerd:     info:
>> mcp_read_config:
>>>>>>>      cmap connection setup failed: CS_ERR_LIBRARY.  Retrying
>> in 4s
>>>>>>>    Jun 03 13:32:21 [4600] first pacemakerd:     info:
>> mcp_read_config:
>>>>>>>      cmap connection setup failed: CS_ERR_LIBRARY.  Retrying
>> in 5s
>>>>>>>    Jun 03 13:32:26 [4600] first pacemakerd:  warning:
>> mcp_read_config:
>>>>>>>      Could not connect to Cluster Configuration Database
>> API, error 2
>>>>>>>    Jun 03 13:32:26 [4600] first pacemakerd:   notice: main:
>>>>>>>  Could
>>>>>>>    not obtain corosync config data, exiting
>>>>>>>    Jun 03 13:32:26 [4600] first pacemakerd:     info:
>> crm_xml_cleanup:
>>>>>>>      Cleaning up memory from libxml2
>>>>>>>    Jun 03 13:32:26 [4612] first pacemakerd:     info:
>> crm_log_init:
>>>>>>>      Changed active directory to
>> /var/lib/heartbeat/cores/root
>>>>>>>    Jun 03 13:32:26 [4612] first pacemakerd:     info:
>> crm_ipc_connect:
>>>>>>>      Could not establish pacemakerd connection: Connection
>> refused
>>>>>>>  (111)
>>>>>>>    Jun 03 13:32:26 [4612] first pacemakerd:     info:
>> mcp_read_config:
>>>>>>>      cmap connection setup failed: CS_ERR_LIBRARY.  Retrying
>> in 1s
>>>>>>>    Jun 03 13:32:27 [4612] first pacemakerd:     info:
>> mcp_read_config:
>>>>>>>      cmap connection setup failed: CS_ERR_LIBRARY.  Retrying
>> in 2
>>>>>>>
>>>>>>>    $B0J>e$G$9!#(B
>>>>>>>
>>>>>>>    pacemaker$B$r @ 5>o$K5/F0$5$;$k$?$a$K$O$I$&$9$l$P$h$m$7$$$G$7$g$&$+!#(B
>>>>>>>
>>>>>>>    $B$*<j?t$r$*$+$1CW$7$^$9$,!"(B
>>>>>>>    $B$h$m$7$/$*4j$$CW$7$^$9!#(B
>>>>>>>
>>>>>>
>>>>>>
>>>>>>   _______________________________________________
>>>>>>   Linux-ha-japan mailing list
>>>>>>   Linux****@lists*****
>>>>>>   http://lists.osdn.me/mailman/listinfo/linux-ha-japan
>>>>>>
>>>>>
>>>>>  _______________________________________________
>>>>>  Linux-ha-japan mailing list
>>>>>  Linux****@lists*****
>>>>>  http://lists.osdn.me/mailman/listinfo/linux-ha-japan
>>>>>
>>>>
>>>>  _______________________________________________
>>>>  Linux-ha-japan mailing list
>>>>  Linux****@lists*****
>>>>  http://lists.osdn.me/mailman/listinfo/linux-ha-japan
>>>>
>>>
>>
>
> _______________________________________________
> Linux-ha-japan mailing list
> Linux****@lists*****
> http://lists.osdn.me/mailman/listinfo/linux-ha-japan
>




Linux-ha-japan メーリングリストの案内
Back to archive index