[Linux-ha-jp] DRBDのPrimaryとSecondaryが切り替わらない

Back to archive index

Takehiro Matsushima takeh****@gmail*****
2012年 3月 24日 (土) 22:56:45 JST


san$BMM(B

$B>>Eg$G$9!#@hDx4JC1$G$O$"$j$^$9$,;n$7$F$_$^$7$?!#(B

$B @ h$[$I$N%a!<%k$NFbMF$O4V0c$C$F$*$j$^$7$?!#?=$7Lu$4$6$$$^$;$s!#(B
$B$^$?!"(Bchkconfig drbd off$B$b(Bservice drbd stop$B$b<B$OITMW$G$7$?!#(B
$B$`$7$mF0$$$F$$$J$$$H$$$1$J$$$h$&$G$7$?!#(B

$B7k2L$HCW$7$^$7$F!"(Bharesources$B$K(Bdrbddisk::r0$B$rB-$9$@$1$GLdBj$J$/(Bfail-over$B$r$7$F$/$l$^$7$?!#(B

$BBgJQ<:Ni$$$?$7$^$7$?!#(B


-- 
Takehiro Matsushima
<takeh****@gmail*****>

2012$BG/(B3$B7n(B24$BF|(B18:18 Takehiro Matsushima <takeh****@gmail*****>:
> san$BMM(B
>
> $B>>Eg$G$9!#(B
> $B=P @ h$+$i<:Ni$$$?$7$^$9!#(B
>
> $B<:Ni$$$?$7$^$7$?!#(B
> DRBD$B$O(BActive/Standby$B$G$O$J$/(BMaster/Slave$B$H$7$F @ _Dj$9$kI,MW$,M-$j$^$9!#(B
> $B:#$Q$C$H6qBNE*$K$O=q$1$^$;$s$,!"<+Bp$K5"$j<!Bh8!>Z$7$F$_$h$&$H;W$$$^$9!#(B
>
> #$B$9$0$K$+$1$kJ}$,$$$i$C$7$c$l$P$*4j$$$$$?$7$^$9!#(B
>
> 2012/03/24 17:08 $B;0H?ED(B@$B$R$`$+N.DL%M%C%H%o!<%/(B <santa****@himuk*****>:
>
>> san$B$G$9!#(B
>>
>> $B>>EgMM(B
>>
>> $B$*@$OC$K$J$j$^$9!#(B
>>
>> >Filesystem$B$NA0$"$?$j$K(B
>> > drbddisk::$B%j%=!<%9L>(B \
>> $B"*(B/etc/drbd.conf$B$N(Bdual-primary$B$r$J$/$7!"(Bcib.xml$B$K%"%I%P%$%9D:$$$?FbMF$G(B
>> $B!!?J$a$h$&$H$7$F$^$9$,!#(B
>> $B!!#1$D!"5?Ld$,$"$j$^$9!#(B
>>
>> > /etc/init.d/drbd stop
>> > $B$rN>%N!<%I$G9T$J$C$?$&$($G(Bheartbeat$B$rAv$i$;$F$/$@$5$$!#(B
>> $B"*N;2r$7$^$7$?!#(B
>>
>>
>> $B<B;\FbMF$G$9!#(B
>> $B%(%i!<$H$J$j$^$7$?!#(B
>>
>>
>> $B-!(B/etc/init.d/drbd
>> $B!!(Bdrbd not loaded
>> $B-"(Brm -rf /var/lib/heartbeat/crm/*
>> $B-#(Bcrm_verify -x /etc/ha.d/cib.xml
>> $B!!%(%i!<$J$7(B
>> $B-$(B/etc/init.d/heartbeat start
>> $B-%(Bcibadmin -V -U -x /etc/ha.d/cib.xml
>>
>> ------crm_mon$B7k2L(B------
>> $B%(%i!<$G$7$?!#(B
>> Resource Group: grpApache
>>    prm:Apache:ip:IPaddr        (heartbeat::ocf:IPaddr):        Started
>> cluster1
>>    prm:Apache:ap:apache        (heartbeat::ocf:apache):        Started
>> cluster1
>> Resource Group: grpPgsql
>>    prm:Pgsql:ip:IPaddr (heartbeat::ocf:IPaddr):        Started cluster2
>>    prm:Pgsql:ap:pgsql  (heartbeat::ocf:pgsql): Stopped
>> Resource Group: grpDrbddisk
>>    prm:Drbddisk:ap:bddisk      (heartbeat::ocf:drbddisk)[      cluster2
>>      cluster1 ]
>>
>> Failed actions:
>>    prm:Pgsql:ap:pgsql_start_0 (node=cluster2, call=13, rc=-2): Timed Out
>>    prm:Drbddisk:ap:bddisk_monitor_0 (node=cluster2, call=6, rc=1): Error
>>    prm:Drbddisk:ap:bddisk_stop_0 (node=cluster2, call=8, rc=1): Error
>>    prm:Filesystem:ap:Filesystem_start_0 (node=cluster2, call=9, rc=2):
>> Error
>>    prm:Pgsql:ap:pgsql_start_0 (node=cluster1, call=16, rc=-2): Timed Out
>>    prm:Drbddisk:ap:bddisk_monitor_0 (node=cluster1, call=6, rc=1): Error
>>    prm:Drbddisk:ap:bddisk_stop_0 (node=cluster1, call=10, rc=1): Error
>>    prm:Filesystem:ap:Filesystem_start_0 (node=cluster1, call=11, rc=2):
>> Error
>>
>> -------------------------------------------------------------------------------
>>
>> cib.xml$B$N(Bdrbd$BItJ,$G$9!#(B
>>      <group id="grpDrbddisk">
>>       <primitive class="ocf" id="prm:Drbddisk:ap:bddisk"
>> provider="heartbeat" type="drbddisk">
>>        <operations>
>>            <op id="prm:Drbddisk:ap:bddisk-start"
>> name="start"on_fail="restart" timeout="300s"/>
>>            <op id="prm:Drbddisk:ap:bddisk-monitor" interval="120s"
>> name="monitor" on_fail="restart" timeout="60s"/>
>>        </operations>
>>          <instance_attributes id="prm:Drbddisk:ap:bddisk_inst_attr">
>>            <attributes>
>>             <nvpair id="prm:Drbddisk:ap:bddisk_attr_0" name="1"
>> value="d0"/>
>>            </attributes>
>>          </instance_attributes>
>>       </primitive>
>>      </group>
>>
>> ---------------------------------------------------------------------------------------
>>
>>
>>
>>
>> Mar 24 16:27:06 cluster1 pengine: [4023]: notice: NoRoleChange: Leave
>> resource prm:Apache:ip:IPaddr     (cluster1)
>> Mar 24 16:27:06 cluster1 pengine: [4023]: notice: NoRoleChange: Leave
>> resource prm:Apache:ap:apache     (cluster1)
>> Mar 24 16:27:06 cluster1 pengine: [4023]: WARN: native_color: Resource
>> prm:Pgsql:ap:pgsql cannot run anywhere
>> Mar 24 16:27:06 cluster1 pengine: [4023]: notice: NoRoleChange: Leave
>> resource prm:Pgsql:ip:IPaddr      (cluster1)
>> Mar 24 16:27:06 cluster1 pengine: [4023]: notice: StopRsc:   cluster1
>> Stop prm:Pgsql:ap:pgsql
>> Mar 24 16:27:06 cluster1 pengine: [4023]: WARN: native_color: Resource
>> prm:Drbddisk:ap:bddisk cannot run anywhere
>> Mar 24 16:27:06 cluster1 pengine: [4023]: WARN: custom_action: Action
>> prm:Drbddisk:ap:bddisk_stop_0 (unmanaged)
>> Mar 24 16:27:06 cluster1 pengine: [4023]: WARN: native_color: Resource
>> prm:Filesystem:ap:Filesystem cannot run anywhere
>> Mar 24 16:27:06 cluster1 pengine: [4023]: WARN: should_dump_action: action
>> 22 (prm:Drbddisk:ap:bddisk_stop_0) was for an unmanaged resource
>> (prm:Drbddisk:ap:bddisk)
>>
>>
>> (2012/03/24 16:01), Takehiro Matsushima wrote:
>> > san $BMM(B
>> >
>> > $B>>Eg$G$9!#JdB-$$$?$7$^$9!#(B
>> >
>> > Heartbeat$B$,@)8f$9$k$b$N$O(Bservice$B$H$7$F5/F0$7$J$$$h$&$K$7$F$/$@$5$$!#(B
>> > chkconfig drbd off
>> > $B5Z$S(B
>> > /etc/init.d/drbd stop
>> > $B$rN>%N!<%I$G9T$J$C$?$&$($G(Bheartbeat$B$rAv$i$;$F$/$@$5$$!#(B
>> >
>> > $B$9$G$K%W%m%;%9$,Av$C$F$$$k$H(Bheartbeat$B$,%W%m%;%9$rAv$i$;$h$&$H$7$F>WFM$7$F$7$^$$$^$9!#(B
>> >
>> > $B<h$j5^$.!"$4O"Mm$^$G!#(B
>> >
>> >
>> > 2012$BG/(B3$B7n(B24$BF|(B15:44 Takehiro Matsushima<takeh****@gmail*****>:
>> >> san $BMM(B
>> >>
>> >> $B>>Eg$G$9!#(B
>> >>
>> >> cib.xml(haresources2cib.py$B$GJQ49$7$?$+$b$7$l$^$;$s$,(B)$B$K(BFilesystem$B$d(BPostgreSQL$B$J$I$N @ _Dj$r5-=R$5$l$?$H;W$$$^$9!#(B
>> >> $B$=$l$i$HF1MM$K(BDRBD$B$K$D$$$F$b @ _Dj$,I,MW$G$9!#(B
>> >> Filesystem$B$NA0$"$?$j$K(B
>> >>   drbddisk::$B%j%=!<%9L>(B \
>> >> $B$r=q$$$F$"$2$l$PBg>fIW$@$C$?$H;W$$$^$9!#(B
>> >>
>> >> crm_mon$B$r;HMQ$7$F%9%F!<%?%9$rI=<($7$F(Bdrbd$B$,I=<($5$l$F$$$l$P$R$H$^$:@.8y$@$H;W$$$^$9!#(B
>> >>
>> >>
>> >> --
>> >> Takehiro Matsushima
>> >> <takeh****@gmail*****>
>> >>
>> >>
>> >>
>> >> 2012$BG/(B3$B7n(B24$BF|(B15:35 "$B;0H?ED(B@$B$R$`$+N.DL%M%C%H%o!<%/(B"<santa****@himuk*****>:
>> >>> $B#s#a#n$G$9!#(B
>> >>>
>> >>> $B>>EgMM(B
>> >>>
>> >>>> $B%m%0$rGR8+$7$F$$$F5$$K$J$C$?$N$G$9$,!"(Bheartbeat$B$KBP$7$F(Bdrbd$B$N @ _Dj$O9T$J$C$F$$$^$9$G$7$g$&$+!#(B
>> >>>> heartbeat$B$,(BDRBD$B$r4IM}2<$KCV$$$F$$$J$$$?$a!"(B
>> >>> $B"*$9$_$^$;$s!"$I$N$h$&$J @ _Dj$G$7$g$&$+!)!!$465<($/$@$5$$!#(B
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> (2012/03/24 15:26), Takehiro Matsushima wrote:
>> >>>> san$BMM(B
>> >>>>
>> >>>> $B>>Eg$G$9!#(B
>> >>>>
>> >>>> $B%m%0$rGR8+$7$F$$$F5$$K$J$C$?$N$G$9$,!"(Bheartbeat$B$KBP$7$F(Bdrbd$B$N @ _Dj$O9T$J$C$F$$$^$9$G$7$g$&$+!#(B
>> >>>> heartbeat$B$,(BDRBD$B$r4IM}2<$KCV$$$F$$$J$$$?$a!"(BFailover$B$;$:!"(BSecondary$B$KBP$7$F(Bmount$B$7$h$&$H$7$F(B
>> >>>> $B%(%i!<$K$J$C$F$$$k$N$G$O$J$$$G$7$g$&$+!#(B
>> >>>> $B$H$9$k$H!"(BDual Primary$B$K$7$?>l9g!"$I$A$i$b(Bmount$B2DG=$J>uBV$G$9$N$G$&$^$/$$$C$?$H9M$($i$l$^$9!#(B
>> >>>>
>> >>>> $B;d8D?M$H$$$?$7$^$7$F$O(BDual Primary$B$N1?MQ$O$*$9$9$a$G$-$^$;$s(B($B2q<R$G$R$I$$L\$K$"$C$F$$$^$9(B)$B!#(B
>> >>>>
>> >>>> $B2?$+2r7h$N%R%s%H$K$J$l$P$H;W$$$^$9!#(B
>> >>>>
>> >>>
>> >>> _______________________________________________
>> >>> Linux-ha-japan mailing list
>> >>> Linux****@lists*****
>> >>> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan
>> >
>> >
>>
>>
>> _______________________________________________
>> Linux-ha-japan mailing list
>> Linux****@lists*****
>> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan
>>
>





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