Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Japanese

$B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B

 

 

Linux-HA japanese RSS feed   Index | Next | Previous | View Threaded


tadashi.1027 at gmail

Oct 14, 2009, 6:45 PM

Post #1 of 15 (1272 views)
Permalink
$B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B

$B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B

$B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
$B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
$B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
$BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B

$B!Z<j=g![(B
# ps -ef | grep mysql
root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
root 3068 1 0 01:38 ? 00:00:00 /bin/sh
/usr/bin/mysqld_safe --datadir=/var/lib/mysql
--socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
--pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
--basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
--log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
--socket=/var/lib/mysql/mysql.sock

# kill -9 2397 3068

# crm_mon -1


============
Last updated: Sat Oct 17 07:29:25 2009
Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
2 Nodes configured.
1 Resources configured.
============

Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online

Resource Group: test-db
IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
Filesystem_3 (ocf::heartbeat:Filesystem): Started
hoge01.example.com
mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED

Failed actions:
mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete


$B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
OS$B!'!!(BCentOS5.3
Heartbeat$B!!(B2.1.4-1


$B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
Attachments: cib.xml (5.90 KB)


renayama19661014 at ybb

Oct 14, 2009, 8:09 PM

Post #2 of 15 (1231 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

$BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B

mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F$$(B
$B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B

$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B


--- $B0p3@(B <tadashi.1027 [at] gmail> wrote:

> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
>
> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
$B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
>
> $B!Z<j=g![(B
> # ps -ef | grep mysql
> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
> --socket=/var/lib/mysql/mysql.sock
>
> # kill -9 2397 3068
>
> # crm_mon -1
>
>
> ============
> Last updated: Sat Oct 17 07:29:25 2009
> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> 2 Nodes configured.
> 1 Resources configured.
> ============
>
> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>
> Resource Group: test-db
> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> Filesystem_3 (ocf::heartbeat:Filesystem): Started
> hoge01.example.com
> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>
> Failed actions:
> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>
>
> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
> OS$B!'!!(BCentOS5.3
> Heartbeat$B!!(B2.1.4-1
>
>
> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false" num_peers="2"
> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
> dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3" cib-last-written="Fri Oct 16
> 01:38:10 2009">
> <configuration>
> <crm_config>
> <cluster_property_set id="cib-bootstrap-options">
> <attributes>
> <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster"
> value="true"/>
> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy"
> value="stop"/>
> <nvpair id="cib-bootstrap-options-default-resource-stickiness"
> name="default-resource-stickiness" value="INFINITY"/>
> <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness"
> name="default-resource-failure-stickiness" value="0"/>
> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled"
> value="false"/>
> <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action"
> value="reboot"/>
> <nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing"
> value="true"/>
> <nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources"
> value="true"/>
> <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions"
> value="true"/>
> <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop"
> value="false"/>
> <nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names"
> value="true"/>
> <nvpair id="cib-bootstrap-options-transition-idle-timeout"
> name="transition-idle-timeout" value="5min"/>
> <nvpair id="cib-bootstrap-options-default-action-timeout"
> name="default-action-timeout" value="20s"/>
> <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default"
> value="true"/>
> <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay" value="60s"/>
> <nvpair id="cib-bootstrap-options-pe-error-series-max" name="pe-error-series-max"
> value="-1"/>
> <nvpair id="cib-bootstrap-options-pe-warn-series-max" name="pe-warn-series-max"
> value="-1"/>
> <nvpair id="cib-bootstrap-options-pe-input-series-max" name="pe-input-series-max"
> value="-1"/>
> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
> value="2.1.4-fb84f606a422 tip"/>
> </attributes>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="91e0db86-1aaf-47a9-a80f-bc198c4c8969" uname="hoge02.example.com" type="normal">
> <instance_attributes id="nodes-91e0db86-1aaf-47a9-a80f-bc198c4c8969">
> <attributes>
> <nvpair id="standby-91e0db86-1aaf-47a9-a80f-bc198c4c8969" name="standby"
> value="off"/>
> </attributes>
> </instance_attributes>
> </node>
> <node id="dbdb4396-8c57-4f70-878f-a6984ec7d554" uname="hoge01.example.com"
> type="normal"/>
> </nodes>
> <resources>
> <group id="test-db">
> <primitive class="ocf" id="IPaddr2_1" provider="heartbeat" type="IPaddr2">
> <operations>
> <op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> <instance_attributes id="IPaddr2_1_inst_attr">
> <attributes>
> <nvpair id="IPaddr2_1_attr_0" name="ip" value="172.31.208.220"/>
> <nvpair id="IPaddr2_1_attr_1" name="nic" value="eth0"/>
> <nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" value="24"/>
> <nvpair id="IPaddr2_1_attr_3" name="broadcast" value="172.31.208.255"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive class="heartbeat" id="drbddisk_2" provider="heartbeat" type="drbddisk">
> <operations>
> <op id="drbddisk_2_mon" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> <instance_attributes id="drbddisk_2_inst_attr">
> <attributes>
> <nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive class="ocf" id="Filesystem_3" provider="heartbeat" type="Filesystem">
> <operations>
> <op id="Filesystem_3_mon" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> <instance_attributes id="Filesystem_3_inst_attr">
> <attributes>
> <nvpair id="Filesystem_3_attr_0" name="device" value="/dev/drbd0"/>
> <nvpair id="Filesystem_3_attr_1" name="directory" value="/var/lib/mysql"/>
> <nvpair id="Filesystem_3_attr_2" name="fstype" value="ext3"/>
> <nvpair id="Filesystem_3_attr_3" name="options" value="noatime,defaults"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive class="lsb" id="mysqld_4" provider="heartbeat" type="mysqld">
> <operations>
> <op id="mysqld_4_mon" interval="120s" name="monitor" timeout="60s"/>
> </operations>
> </primitive>
> </group>
> </resources>
> <constraints>
> <rsc_location id="rsc_location_test-db" rsc="test-db">
> <rule id="prefered_location_test-db" score="100">
> <expression attribute="#uname" id="prefered_location_test-db_expr" operation="eq"
> value="hoge01.example.com"/>
> </rule>
> </rsc_location>
> <rsc_location id="pingd" rsc="test-db">
> <rule id="pingd:connected:rule" score="-INFINITY" boolean_op="or">
> <expression id="pingd:expr:undefined" attribute="default_ping_set"
> operation="not_defined"/>
> <expression id="pingd:expr:zero" attribute="default_ping_set" operation="lte"
> value="0"/>
> </rule>
> </rsc_location>
> </constraints>
> </configuration>
> </cib>
> > _______________________________________________
> 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


tadashi.1027 at gmail

Oct 14, 2009, 8:52 PM

Post #3 of 15 (1223 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B%a%$%H%j%C%/%9!!;3FbMM(B

$BAaB.$N$4JV?.$"$j$,$H$&$4$6$$$^$9!#(B

$B;3FbMM$,$*$C$7$c$i$l$F$$$k$N$O2<5-(BURL$B$K$"$k%A%'%C%/J}K!$G$h$m$7$$$G$7$g$&$+!#(B
http://www.linux-ha.org/ja/LSBResourceAgent_ja

$B7k2L$O0J2<$N$h$&$K$J$j$^$7$?!#(B
# /etc/init.d/mysqld start ; echo $?
MySQL $B$r5/F0Cf(B: [ OK ]
0
#
#
# /etc/init.d/mysqld status ; echo $?
mysqld (pid 25755) $B$r<B9TCf(B...
0
# /etc/init.d/mysqld start ; echo $?
MySQL $B$r5/F0Cf(B: [ OK ]
0
# /etc/init.d/mysqld stop ; echo $?
MySQL $B$rDd;_Cf(B: [ OK ]
0
#
#
# /etc/init.d/mysqld status ; echo $?
mysqld $B$ODd;_$7$F$$$^$9(B
3
# /etc/init.d/mysqld stop ; echo $?
MySQL $B$rDd;_Cf(B: [$B<:GT(B]
1

$B$I$&$d$i%W%m%;%9Dd;_;~$NDd;_$,$&$^$/$$$C$F$J$$$_$?$$$G$9$M!#(B

$BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B

$B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B


2009$BG/(B10$B7n(B15$BF|(B12:09 <renayama19661014 [at] ybb>:
> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> $BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B
>
> mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F$$(B
> $B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
>
> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>
>> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
>>
>> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
>> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
> $B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
>> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
>> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
>> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
>>
>> $B!Z<j=g![(B
>> # ps -ef | grep mysql
>> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
>> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
>> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
>> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
>> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
>> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
>> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
>> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
>> --socket=/var/lib/mysql/mysql.sock
>>
>> # kill -9 2397 3068
>>
>> # crm_mon -1
>>
>>
>> ============
>> Last updated: Sat Oct 17 07:29:25 2009
>> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
>> 2 Nodes configured.
>> 1 Resources configured.
>> ============
>>
>> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
>> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>>
>> Resource Group: test-db
>> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
>> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
>> Filesystem_3 (ocf::heartbeat:Filesystem): Started
>> hoge01.example.com
>> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>>
>> Failed actions:
>> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>>
>>
>> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
>> OS$B!'!!(BCentOS5.3
>> Heartbeat$B!!(B2.1.4-1
>>
>>
>> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false" num_peers="2"
>> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
>> dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3" cib-last-written="Fri Oct 16
>> 01:38:10 2009">
>> <configuration>
>> <crm_config>
>> <cluster_property_set id="cib-bootstrap-options">
>> <attributes>
>> <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster"
>> value="true"/>
>> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy"
>> value="stop"/>
>> <nvpair id="cib-bootstrap-options-default-resource-stickiness"
>> name="default-resource-stickiness" value="INFINITY"/>
>> <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness"
>> name="default-resource-failure-stickiness" value="0"/>
>> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled"
>> value="false"/>
>> <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action"
>> value="reboot"/>
>> <nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing"
>> value="true"/>
>> <nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources"
>> value="true"/>
>> <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions"
>> value="true"/>
>> <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop"
>> value="false"/>
>> <nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names"
>> value="true"/>
>> <nvpair id="cib-bootstrap-options-transition-idle-timeout"
>> name="transition-idle-timeout" value="5min"/>
>> <nvpair id="cib-bootstrap-options-default-action-timeout"
>> name="default-action-timeout" value="20s"/>
>> <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default"
>> value="true"/>
>> <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay" value="60s"/>
>> <nvpair id="cib-bootstrap-options-pe-error-series-max" name="pe-error-series-max"
>> value="-1"/>
>> <nvpair id="cib-bootstrap-options-pe-warn-series-max" name="pe-warn-series-max"
>> value="-1"/>
>> <nvpair id="cib-bootstrap-options-pe-input-series-max" name="pe-input-series-max"
>> value="-1"/>
>> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
>> value="2.1.4-fb84f606a422 tip"/>
>> </attributes>
>> </cluster_property_set>
>> </crm_config>
>> <nodes>
>> <node id="91e0db86-1aaf-47a9-a80f-bc198c4c8969" uname="hoge02.example.com" type="normal">
>> <instance_attributes id="nodes-91e0db86-1aaf-47a9-a80f-bc198c4c8969">
>> <attributes>
>> <nvpair id="standby-91e0db86-1aaf-47a9-a80f-bc198c4c8969" name="standby"
>> value="off"/>
>> </attributes>
>> </instance_attributes>
>> </node>
>> <node id="dbdb4396-8c57-4f70-878f-a6984ec7d554" uname="hoge01.example.com"
>> type="normal"/>
>> </nodes>
>> <resources>
>> <group id="test-db">
>> <primitive class="ocf" id="IPaddr2_1" provider="heartbeat" type="IPaddr2">
>> <operations>
>> <op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
>> </operations>
>> <instance_attributes id="IPaddr2_1_inst_attr">
>> <attributes>
>> <nvpair id="IPaddr2_1_attr_0" name="ip" value="172.31.208.220"/>
>> <nvpair id="IPaddr2_1_attr_1" name="nic" value="eth0"/>
>> <nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" value="24"/>
>> <nvpair id="IPaddr2_1_attr_3" name="broadcast" value="172.31.208.255"/>
>> </attributes>
>> </instance_attributes>
>> </primitive>
>> <primitive class="heartbeat" id="drbddisk_2" provider="heartbeat" type="drbddisk">
>> <operations>
>> <op id="drbddisk_2_mon" interval="120s" name="monitor" timeout="60s"/>
>> </operations>
>> <instance_attributes id="drbddisk_2_inst_attr">
>> <attributes>
>> <nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
>> </attributes>
>> </instance_attributes>
>> </primitive>
>> <primitive class="ocf" id="Filesystem_3" provider="heartbeat" type="Filesystem">
>> <operations>
>> <op id="Filesystem_3_mon" interval="120s" name="monitor" timeout="60s"/>
>> </operations>
>> <instance_attributes id="Filesystem_3_inst_attr">
>> <attributes>
>> <nvpair id="Filesystem_3_attr_0" name="device" value="/dev/drbd0"/>
>> <nvpair id="Filesystem_3_attr_1" name="directory" value="/var/lib/mysql"/>
>> <nvpair id="Filesystem_3_attr_2" name="fstype" value="ext3"/>
>> <nvpair id="Filesystem_3_attr_3" name="options" value="noatime,defaults"/>
>> </attributes>
>> </instance_attributes>
>> </primitive>
>> <primitive class="lsb" id="mysqld_4" provider="heartbeat" type="mysqld">
>> <operations>
>> <op id="mysqld_4_mon" interval="120s" name="monitor" timeout="60s"/>
>> </operations>
>> </primitive>
>> </group>
>> </resources>
>> <constraints>
>> <rsc_location id="rsc_location_test-db" rsc="test-db">
>> <rule id="prefered_location_test-db" score="100">
>> <expression attribute="#uname" id="prefered_location_test-db_expr" operation="eq"
>> value="hoge01.example.com"/>
>> </rule>
>> </rsc_location>
>> <rsc_location id="pingd" rsc="test-db">
>> <rule id="pingd:connected:rule" score="-INFINITY" boolean_op="or">
>> <expression id="pingd:expr:undefined" attribute="default_ping_set"
>> operation="not_defined"/>
>> <expression id="pingd:expr:zero" attribute="default_ping_set" operation="lte"
>> value="0"/>
>> </rule>
>> </rsc_location>
>> </constraints>
>> </configuration>
>> </cib>
>> > _______________________________________________
>> 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
>

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


renayama19661014 at ybb

Oct 14, 2009, 9:13 PM

Post #4 of 15 (1224 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

$B2<5-!"<B;\$5$l$?J}K!$GLdBj$J$$$H;W$$$^$9!#(B

> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
mysqld$B$N%9%/%j%W%HFb$G!"(Bmysql$B$N5/F0H=Dj$r9T$&I,MW$,$"$k$H;W$$$^$9!#(B

> # /etc/init.d/mysqld status ; echo $?
> mysqld $B$ODd;_$7$F$$$^$9(B
> 3
$BDd;_Cf$O!"(Bstatus$B$,(B3$B$rJV$7$F$*$j$^$9$N$G!"(Bstop$B;~$K$3$l$r(Bstatus$B$r<B9T$7$F!"(B3$B$N>l9g$O!"(B
$BDd;_:Q$_$G#O#K(B(0)$B$rJV$7$F$$$?$@$1$l$P$h$$$N$G$O$J$$$G$7$g$&$+!)(B

# /etc/init.d/mysqld stop ; echo $?
MySQL $B$rDd;_Cf(B: [$B<:GT(B]
0...($B$H$J$k$h$&!K(B

$B$?$@$7!"(Bmysqld$B$K<j$rF~$l$k$3$H$K$J$C$F$7$^$&$N$G!"$"$^$j9%$^$7$/$J$$>l9g$b$"$j$^$9$M!#(B

mysql$BMQ$N%j%=!<%9$K$O!"(Blsb$B%j%=!<%9$G$O$J$/!"(Bocf$B%j%=!<%9$b$"$j$^$9$N$G!"$=$A$i$N(B
$BMxMQ$NJ}$,$&$^$/9T$/$+$H;W$$$^$9$,!#!#!#!#(B

$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B


--- $B0p3@(B <tadashi.1027 [at] gmail> wrote:

> $B%a%$%H%j%C%/%9!!;3FbMM(B
>
> $BAaB.$N$4JV?.$"$j$,$H$&$4$6$$$^$9!#(B
>
> $B;3FbMM$,$*$C$7$c$i$l$F$$$k$N$O2<5-(BURL$B$K$"$k%A%'%C%/J}K!$G$h$m$7$$$G$7$g$&$+!#(B
> http://www.linux-ha.org/ja/LSBResourceAgent_ja
>
> $B7k2L$O0J2<$N$h$&$K$J$j$^$7$?!#(B
> # /etc/init.d/mysqld start ; echo $?
> MySQL $B$r5/F0Cf(B: [ OK ]
> 0
> #
> #
> # /etc/init.d/mysqld status ; echo $?
> mysqld (pid 25755) $B$r<B9TCf(B...
> 0
> # /etc/init.d/mysqld start ; echo $?
> MySQL $B$r5/F0Cf(B: [ OK ]
> 0
> # /etc/init.d/mysqld stop ; echo $?
> MySQL $B$rDd;_Cf(B: [ OK ]
> 0
> #
> #
> # /etc/init.d/mysqld status ; echo $?
> mysqld $B$ODd;_$7$F$$$^$9(B
> 3
> # /etc/init.d/mysqld stop ; echo $?
> MySQL $B$rDd;_Cf(B: [$B<:GT(B]
> 1
>
> $B$I$&$d$i%W%m%;%9Dd;_;~$NDd;_$,$&$^$/$$$C$F$J$$$_$?$$$G$9$M!#(B
>
> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
>
> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>
>
> 2009$BG/(B10$B7n(B15$BF|(B12:09 <renayama19661014 [at] ybb>:
> > $B0p3@$5$s(B
> >
> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >
> > $BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B
> >
> >
> mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F(B
$B$$(B
> > $B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B
> >
> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> >
> >
> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> >
> >> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
> >>
> >> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
> >>
> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
> > $B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
> >> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
> >> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
> >> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
> >>
> >> $B!Z<j=g![(B
> >> # ps -ef | grep mysql
> >> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
> >> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
> >> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
> >> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
> >> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
> >> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
> >> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
> >> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
> >> --socket=/var/lib/mysql/mysql.sock
> >>
> >> # kill -9 2397 3068
> >>
> >> # crm_mon -1
> >>
> >>
> >> ============
> >> Last updated: Sat Oct 17 07:29:25 2009
> >> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> >> 2 Nodes configured.
> >> 1 Resources configured.
> >> ============
> >>
> >> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> >> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
> >>
> >> Resource Group: test-db
> >> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> >> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> >> Filesystem_3 (ocf::heartbeat:Filesystem): Started
> >> hoge01.example.com
> >> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
> >>
> >> Failed actions:
> >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> >>
> >>
> >> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
> >> OS$B!'!!(BCentOS5.3
> >> Heartbeat$B!!(B2.1.4-1
> >>
> >>
> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> >> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false" num_peers="2"
> >> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
> >> dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3" cib-last-written="Fri Oct 16
> >> 01:38:10 2009">
> >> <configuration>
> >> <crm_config>
> >> <cluster_property_set id="cib-bootstrap-options">
> >> <attributes>
> >> <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster"
> >> value="true"/>
> >> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy"
> >> value="stop"/>
> >> <nvpair id="cib-bootstrap-options-default-resource-stickiness"
> >> name="default-resource-stickiness" value="INFINITY"/>
> >> <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness"
> >> name="default-resource-failure-stickiness" value="0"/>
> >> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled"
> >> value="false"/>
> >> <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action"
> >> value="reboot"/>
> >> <nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing"
> >> value="true"/>
> >> <nvpair id="cib-bootstrap-options-stop-orphan-resources"
> name="stop-orphan-resources"
> >> value="true"/>
> >> <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions"
> >> value="true"/>
> >> <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop"
> >> value="false"/>
> >> <nvpair id="cib-bootstrap-options-short-resource-names"
> name="short-resource-names"
> >> value="true"/>
> >> <nvpair id="cib-bootstrap-options-transition-idle-timeout"
> >> name="transition-idle-timeout" value="5min"/>
> >> <nvpair id="cib-bootstrap-options-default-action-timeout"
> >> name="default-action-timeout" value="20s"/>
> >> <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default"
> >> value="true"/>
> >> <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay"
> value="60s"/>
> >> <nvpair id="cib-bootstrap-options-pe-error-series-max" name="pe-error-series-max"
> >> value="-1"/>
> >> <nvpair id="cib-bootstrap-options-pe-warn-series-max" name="pe-warn-series-max"
> >> value="-1"/>
> >> <nvpair id="cib-bootstrap-options-pe-input-series-max" name="pe-input-series-max"
> >> value="-1"/>
> >> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
> >> value="2.1.4-fb84f606a422 tip"/>
> >> </attributes>
> >> </cluster_property_set>
> >> </crm_config>
> >> <nodes>
> >> <node id="91e0db86-1aaf-47a9-a80f-bc198c4c8969" uname="hoge02.example.com"
> type="normal">
> >> <instance_attributes id="nodes-91e0db86-1aaf-47a9-a80f-bc198c4c8969">
> >> <attributes>
> >> <nvpair id="standby-91e0db86-1aaf-47a9-a80f-bc198c4c8969" name="standby"
> >> value="off"/>
> >> </attributes>
> >> </instance_attributes>
> >> </node>
> >> <node id="dbdb4396-8c57-4f70-878f-a6984ec7d554" uname="hoge01.example.com"
> >> type="normal"/>
> >> </nodes>
> >> <resources>
> >> <group id="test-db">
> >> <primitive class="ocf" id="IPaddr2_1" provider="heartbeat" type="IPaddr2">
> >> <operations>
> >> <op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
> >> </operations>
> >> <instance_attributes id="IPaddr2_1_inst_attr">
> >> <attributes>
> >> <nvpair id="IPaddr2_1_attr_0" name="ip" value="172.31.208.220"/>
> >> <nvpair id="IPaddr2_1_attr_1" name="nic" value="eth0"/>
> >> <nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" value="24"/>
> >> <nvpair id="IPaddr2_1_attr_3" name="broadcast" value="172.31.208.255"/>
> >> </attributes>
> >> </instance_attributes>
> >> </primitive>
> >> <primitive class="heartbeat" id="drbddisk_2" provider="heartbeat" type="drbddisk">
> >> <operations>
> >> <op id="drbddisk_2_mon" interval="120s" name="monitor" timeout="60s"/>
> >> </operations>
> >> <instance_attributes id="drbddisk_2_inst_attr">
> >> <attributes>
> >> <nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
> >> </attributes>
> >> </instance_attributes>
> >> </primitive>
> >> <primitive class="ocf" id="Filesystem_3" provider="heartbeat" type="Filesystem">
> >> <operations>
> >> <op id="Filesystem_3_mon" interval="120s" name="monitor" timeout="60s"/>
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===

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


tadashi.1027 at gmail

Oct 14, 2009, 11:09 PM

Post #5 of 15 (1236 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B%a%$%H%j%C%/%9!!;3FbMM(B

$B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B

$B$4;XE&$NDL$j!"(Bmysqld$B%5!<%S%9Dd;_Cf$K(Bmysql$B%9%/%j%W%H$r<B;\$7$?>l9g$K!"(B
$B%9%F!<%?%9%3!<%I(B0$B$rJV$9$h$&=$@5CW$7$^$7$?!#(B

$B$7$+$77k2L$OJQ$o$i$:%U%'%$%k%*!<%P$OH/@8$7$^$;$s$G$7$?!#(B
kill$B<B9T;~$O0JA0$HF1MM$N7k2L$H$J$j$^$7$?!#(B
mysqld$B%9%/%j%W%H<B9T;~$O%U%'%$%k%*!<%P$O<B9T$5$l$:!"%j%=!<%9$N:F5/F0$,=hM}$,$*$3$J$o$l$^$7$?!#(B

# crm_mon -1


============
Last updated: Fri Oct 16 23:01:27 2009
Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
2 Nodes configured.
1 Resources configured.
============

Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online

Resource Group: test-db
IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
Filesystem_3 (ocf::heartbeat:Filesystem): Started
hoge01.example.com
mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED

Failed actions:
mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete

$B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B


2009$BG/(B10$B7n(B15$BF|(B13:13 <renayama19661014 [at] ybb>:
> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> $B2<5-!"<B;\$5$l$?J}K!$GLdBj$J$$$H;W$$$^$9!#(B
>
>> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
> mysqld$B$N%9%/%j%W%HFb$G!"(Bmysql$B$N5/F0H=Dj$r9T$&I,MW$,$"$k$H;W$$$^$9!#(B
>
>> # /etc/init.d/mysqld status ; echo $?
>> mysqld $B$ODd;_$7$F$$$^$9(B
>> 3
> $BDd;_Cf$O!"(Bstatus$B$,(B3$B$rJV$7$F$*$j$^$9$N$G!"(Bstop$B;~$K$3$l$r(Bstatus$B$r<B9T$7$F!"(B3$B$N>l9g$O!"(B
> $BDd;_:Q$_$G#O#K(B(0)$B$rJV$7$F$$$?$@$1$l$P$h$$$N$G$O$J$$$G$7$g$&$+!)(B
>
> # /etc/init.d/mysqld stop ; echo $?
> MySQL $B$rDd;_Cf(B: [$B<:GT(B]
> 0...($B$H$J$k$h$&!K(B
>
> $B$?$@$7!"(Bmysqld$B$K<j$rF~$l$k$3$H$K$J$C$F$7$^$&$N$G!"$"$^$j9%$^$7$/$J$$>l9g$b$"$j$^$9$M!#(B
>
> mysql$BMQ$N%j%=!<%9$K$O!"(Blsb$B%j%=!<%9$G$O$J$/!"(Bocf$B%j%=!<%9$b$"$j$^$9$N$G!"$=$A$i$N(B
> $BMxMQ$NJ}$,$&$^$/9T$/$+$H;W$$$^$9$,!#!#!#!#(B
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
>
> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>
>> $B%a%$%H%j%C%/%9!!;3FbMM(B
>>
>> $BAaB.$N$4JV?.$"$j$,$H$&$4$6$$$^$9!#(B
>>
>> $B;3FbMM$,$*$C$7$c$i$l$F$$$k$N$O2<5-(BURL$B$K$"$k%A%'%C%/J}K!$G$h$m$7$$$G$7$g$&$+!#(B
>> http://www.linux-ha.org/ja/LSBResourceAgent_ja
>>
>> $B7k2L$O0J2<$N$h$&$K$J$j$^$7$?!#(B
>> # /etc/init.d/mysqld start ; echo $?
>> MySQL $B$r5/F0Cf(B: [ OK ]
>> 0
>> #
>> #
>> # /etc/init.d/mysqld status ; echo $?
>> mysqld (pid 25755) $B$r<B9TCf(B...
>> 0
>> # /etc/init.d/mysqld start ; echo $?
>> MySQL $B$r5/F0Cf(B: [ OK ]
>> 0
>> # /etc/init.d/mysqld stop ; echo $?
>> MySQL $B$rDd;_Cf(B: [ OK ]
>> 0
>> #
>> #
>> # /etc/init.d/mysqld status ; echo $?
>> mysqld $B$ODd;_$7$F$$$^$9(B
>> 3
>> # /etc/init.d/mysqld stop ; echo $?
>> MySQL $B$rDd;_Cf(B: [$B<:GT(B]
>> 1
>>
>> $B$I$&$d$i%W%m%;%9Dd;_;~$NDd;_$,$&$^$/$$$C$F$J$$$_$?$$$G$9$M!#(B
>>
>> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
>>
>> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>>
>>
>> 2009$BG/(B10$B7n(B15$BF|(B12:09 <renayama19661014 [at] ybb>:
>> > $B0p3@$5$s(B
>> >
>> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> >
>> > $BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B
>> >
>> >
>> mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F(B
> $B$$(B
>> > $B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B
>> >
>> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>> >
>> >
>> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>> >
>> >> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
>> >>
>> >> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
>> >>
>> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
>> > $B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
>> >> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
>> >> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
>> >> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
>> >>
>> >> $B!Z<j=g![(B
>> >> # ps -ef | grep mysql
>> >> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
>> >> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
>> >> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
>> >> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
>> >> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
>> >> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
>> >> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
>> >> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
>> >> --socket=/var/lib/mysql/mysql.sock
>> >>
>> >> # kill -9 2397 3068
>> >>
>> >> # crm_mon -1
>> >>
>> >>
>> >> ============
>> >> Last updated: Sat Oct 17 07:29:25 2009
>> >> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
>> >> 2 Nodes configured.
>> >> 1 Resources configured.
>> >> ============
>> >>
>> >> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
>> >> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>> >>
>> >> Resource Group: test-db
>> >> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
>> >> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
>> >> Filesystem_3 (ocf::heartbeat:Filesystem): Started
>> >> hoge01.example.com
>> >> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>> >>
>> >> Failed actions:
>> >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>> >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>> >>
>> >>
>> >> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
>> >> OS$B!'!!(BCentOS5.3
>> >> Heartbeat$B!!(B2.1.4-1
>> >>
>> >>
>> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> >> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false" num_peers="2"
>> >> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
>> >> dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3" cib-last-written="Fri Oct 16
>> >> 01:38:10 2009">
>> >> <configuration>
>> >> <crm_config>
>> >> <cluster_property_set id="cib-bootstrap-options">
>> >> <attributes>
>> >> <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster"
>> >> value="true"/>
>> >> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy"
>> >> value="stop"/>
>> >> <nvpair id="cib-bootstrap-options-default-resource-stickiness"
>> >> name="default-resource-stickiness" value="INFINITY"/>
>> >> <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness"
>> >> name="default-resource-failure-stickiness" value="0"/>
>> >> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled"
>> >> value="false"/>
>> >> <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action"
>> >> value="reboot"/>
>> >> <nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing"
>> >> value="true"/>
>> >> <nvpair id="cib-bootstrap-options-stop-orphan-resources"
>> name="stop-orphan-resources"
>> >> value="true"/>
>> >> <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions"
>> >> value="true"/>
>> >> <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop"
>> >> value="false"/>
>> >> <nvpair id="cib-bootstrap-options-short-resource-names"
>> name="short-resource-names"
>> >> value="true"/>
>> >> <nvpair id="cib-bootstrap-options-transition-idle-timeout"
>> >> name="transition-idle-timeout" value="5min"/>
>> >> <nvpair id="cib-bootstrap-options-default-action-timeout"
>> >> name="default-action-timeout" value="20s"/>
>> >> <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default"
>> >> value="true"/>
>> >> <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay"
>> value="60s"/>
>> >> <nvpair id="cib-bootstrap-options-pe-error-series-max" name="pe-error-series-max"
>> >> value="-1"/>
>> >> <nvpair id="cib-bootstrap-options-pe-warn-series-max" name="pe-warn-series-max"
>> >> value="-1"/>
>> >> <nvpair id="cib-bootstrap-options-pe-input-series-max" name="pe-input-series-max"
>> >> value="-1"/>
>> >> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
>> >> value="2.1.4-fb84f606a422 tip"/>
>> >> </attributes>
>> >> </cluster_property_set>
>> >> </crm_config>
>> >> <nodes>
>> >> <node id="91e0db86-1aaf-47a9-a80f-bc198c4c8969" uname="hoge02.example.com"
>> type="normal">
>> >> <instance_attributes id="nodes-91e0db86-1aaf-47a9-a80f-bc198c4c8969">
>> >> <attributes>
>> >> <nvpair id="standby-91e0db86-1aaf-47a9-a80f-bc198c4c8969" name="standby"
>> >> value="off"/>
>> >> </attributes>
>> >> </instance_attributes>
>> >> </node>
>> >> <node id="dbdb4396-8c57-4f70-878f-a6984ec7d554" uname="hoge01.example.com"
>> >> type="normal"/>
>> >> </nodes>
>> >> <resources>
>> >> <group id="test-db">
>> >> <primitive class="ocf" id="IPaddr2_1" provider="heartbeat" type="IPaddr2">
>> >> <operations>
>> >> <op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
>> >> </operations>
>> >> <instance_attributes id="IPaddr2_1_inst_attr">
>> >> <attributes>
>> >> <nvpair id="IPaddr2_1_attr_0" name="ip" value="172.31.208.220"/>
>> >> <nvpair id="IPaddr2_1_attr_1" name="nic" value="eth0"/>
>> >> <nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" value="24"/>
>> >> <nvpair id="IPaddr2_1_attr_3" name="broadcast" value="172.31.208.255"/>
>> >> </attributes>
>> >> </instance_attributes>
>> >> </primitive>
>> >> <primitive class="heartbeat" id="drbddisk_2" provider="heartbeat" type="drbddisk">
>> >> <operations>
>> >> <op id="drbddisk_2_mon" interval="120s" name="monitor" timeout="60s"/>
>> >> </operations>
>> >> <instance_attributes id="drbddisk_2_inst_attr">
>> >> <attributes>
>> >> <nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
>> >> </attributes>
>> >> </instance_attributes>
>> >> </primitive>
>> >> <primitive class="ocf" id="Filesystem_3" provider="heartbeat" type="Filesystem">
>> >> <operations>
>> >> <op id="Filesystem_3_mon" interval="120s" name="monitor" timeout="60s"/>
>>
> === $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===
>
> _______________________________________________
> 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


renayama19661014 at ybb

Oct 14, 2009, 11:15 PM

Post #6 of 15 (1232 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

>mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
$B$r8+$k$H!"(Bstop$B$G(B1$B$,JV$C$F$-$F$$$k$h$&$K;W$($^$9!#(B

rc$B$r@)8f$9$k(Bocf$B$r(Blsb$B$N0c$$$,$"$k$N$+$bCN$l$^$;$s!#(B

$B$b$7$+$9$k$H!";d$,4V0c$C$F$$$k$+$bCN$l$^$;$s$M!#(B
$B4D6-$,$9$0$KMQ0U=PMh$J$$$N$G!"(Bmysql$B$G$O=PMh$^$;$s$,!"$=$NB>$N(Blsb$B$G;n$7$F$_$^$9$M!#(B

$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9(B

--- $B0p3@(B <tadashi.1027 [at] gmail> wrote:

> $B%a%$%H%j%C%/%9!!;3FbMM(B
>
> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>
> $B$4;XE&$NDL$j!"(Bmysqld$B%5!<%S%9Dd;_Cf$K(Bmysql$B%9%/%j%W%H$r<B;\$7$?>l9g$K!"(B
> $B%9%F!<%?%9%3!<%I(B0$B$rJV$9$h$&=$@5CW$7$^$7$?!#(B
>
> $B$7$+$77k2L$OJQ$o$i$:%U%'%$%k%*!<%P$OH/@8$7$^$;$s$G$7$?!#(B
> kill$B<B9T;~$O0JA0$HF1MM$N7k2L$H$J$j$^$7$?!#(B
> mysqld$B%9%/%j%W%H<B9T;~$O%U%'%$%k%*!<%P$O<B9T$5$l$:!"%j%=!<%9$N:F5/F0$,=hM}$,$*$3$J$o$l$^$7$?!#(B
>
> # crm_mon -1
>
>
> ============
> Last updated: Fri Oct 16 23:01:27 2009
> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> 2 Nodes configured.
> 1 Resources configured.
> ============
>
> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>
> Resource Group: test-db
> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> Filesystem_3 (ocf::heartbeat:Filesystem): Started
> hoge01.example.com
> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>
> Failed actions:
> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>
> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>
>
> 2009$BG/(B10$B7n(B15$BF|(B13:13 <renayama19661014 [at] ybb>:
> > $B0p3@$5$s(B
> >
> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >
> > $B2<5-!"<B;\$5$l$?J}K!$GLdBj$J$$$H;W$$$^$9!#(B
> >
> >> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
> > mysqld$B$N%9%/%j%W%HFb$G!"(Bmysql$B$N5/F0H=Dj$r9T$&I,MW$,$"$k$H;W$$$^$9!#(B
> >
> >> # /etc/init.d/mysqld status ; echo $?
> >> mysqld $B$ODd;_$7$F$$$^$9(B
> >> 3
> > $BDd;_Cf$O!"(Bstatus$B$,(B3$B$rJV$7$F$*$j$^$9$N$G!"(Bstop$B;~$K$3$l$r(Bstatus$B$r<B9T$7$F!"(B3$B$N>l9g$O!"(B
> > $BDd;_:Q$_$G#O#K(B(0)$B$rJV$7$F$$$?$@$1$l$P$h$$$N$G$O$J$$$G$7$g$&$+!)(B
> >
> > # /etc/init.d/mysqld stop ; echo $?
> > MySQL $B$rDd;_Cf(B: [$B<:GT(B]
> > 0...($B$H$J$k$h$&!K(B
> >
> > $B$?$@$7!"(Bmysqld$B$K<j$rF~$l$k$3$H$K$J$C$F$7$^$&$N$G!"$"$^$j9%$^$7$/$J$$>l9g$b$"$j$^$9$M!#(B
> >
> > mysql$BMQ$N%j%=!<%9$K$O!"(Blsb$B%j%=!<%9$G$O$J$/!"(Bocf$B%j%=!<%9$b$"$j$^$9$N$G!"$=$A$i$N(B
> > $BMxMQ$NJ}$,$&$^$/9T$/$+$H;W$$$^$9$,!#!#!#!#(B
> >
> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> >
> >
> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> >
> >> $B%a%$%H%j%C%/%9!!;3FbMM(B
> >>
> >> $BAaB.$N$4JV?.$"$j$,$H$&$4$6$$$^$9!#(B
> >>
> >> $B;3FbMM$,$*$C$7$c$i$l$F$$$k$N$O2<5-(BURL$B$K$"$k%A%'%C%/J}K!$G$h$m$7$$$G$7$g$&$+!#(B
> >> http://www.linux-ha.org/ja/LSBResourceAgent_ja
> >>
> >> $B7k2L$O0J2<$N$h$&$K$J$j$^$7$?!#(B
> >> # /etc/init.d/mysqld start ; echo $?
> >> MySQL $B$r5/F0Cf(B: [ OK ]
> >> 0
> >> #
> >> #
> >> # /etc/init.d/mysqld status ; echo $?
> >> mysqld (pid 25755) $B$r<B9TCf(B...
> >> 0
> >> # /etc/init.d/mysqld start ; echo $?
> >> MySQL $B$r5/F0Cf(B: [ OK ]
> >> 0
> >> # /etc/init.d/mysqld stop ; echo $?
> >> MySQL $B$rDd;_Cf(B: [ OK ]
> >> 0
> >> #
> >> #
> >> # /etc/init.d/mysqld status ; echo $?
> >> mysqld $B$ODd;_$7$F$$$^$9(B
> >> 3
> >> # /etc/init.d/mysqld stop ; echo $?
> >> MySQL $B$rDd;_Cf(B: [$B<:GT(B]
> >> 1
> >>
> >> $B$I$&$d$i%W%m%;%9Dd;_;~$NDd;_$,$&$^$/$$$C$F$J$$$_$?$$$G$9$M!#(B
> >>
> >> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
> >>
> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> >>
> >>
> >> 2009$BG/(B10$B7n(B15$BF|(B12:09 <renayama19661014 [at] ybb>:
> >> > $B0p3@$5$s(B
> >> >
> >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >> >
> >> > $BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B
> >> >
> >> >
> >>
> mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F(B
> > $B$$(B
> >> > $B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B
> >> >
> >> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> >> >
> >> >
> >> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> >> >
> >> >> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
> >> >>
> >> >> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
> >> >>
> >>
> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
> >> > $B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
> >> >> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
> >> >> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
> >> >> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
> >> >>
> >> >> $B!Z<j=g![(B
> >> >> # ps -ef | grep mysql
> >> >> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
> >> >> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
> >> >> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
> >> >> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
> >> >> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
> >> >> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
> >> >> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
> >> >> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
> >> >> --socket=/var/lib/mysql/mysql.sock
> >> >>
> >> >> # kill -9 2397 3068
> >> >>
> >> >> # crm_mon -1
> >> >>
> >> >>
> >> >> ============
> >> >> Last updated: Sat Oct 17 07:29:25 2009
> >> >> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> >> >> 2 Nodes configured.
> >> >> 1 Resources configured.
> >> >> ============
> >> >>
> >> >> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> >> >> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
> >> >>
> >> >> Resource Group: test-db
> >> >> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> >> >> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> >> >> Filesystem_3 (ocf::heartbeat:Filesystem): Started
> >> >> hoge01.example.com
> >> >> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
> >> >>
> >> >> Failed actions:
> >> >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> >> >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> >> >>
> >> >>
> >> >> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
> >> >> OS$B!'!!(BCentOS5.3
> >> >> Heartbeat$B!!(B2.1.4-1
> >> >>
> >> >>
> >> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> >> >> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false"
> num_peers="2"
> >> >> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
> >> >> dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3" cib-last-written="Fri Oct
> 16
> >> >> 01:38:10 2009">
> >> >> <configuration>
> >> >> <crm_config>
> >> >> <cluster_property_set id="cib-bootstrap-options">
> >> >> <attributes>
> >> >> <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster"
> >> >> value="true"/>
> >> >> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy"
> >> >> value="stop"/>
> >> >> <nvpair id="cib-bootstrap-options-default-resource-stickiness"
> >> >> name="default-resource-stickiness" value="INFINITY"/>
> >> >> <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness"
> >> >> name="default-resource-failure-stickiness" value="0"/>
> >> >> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled"
> >> >> value="false"/>
> >> >> <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action"
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===

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


renayama19661014 at ybb

Oct 14, 2009, 11:55 PM

Post #7 of 15 (1222 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

$BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
$BMxMQ$7$?(Bmysqld$B$O!"(B

mysql-devel-5.0.45-7.el5
mysql-server-5.0.45-7.el5
mysql-5.0.45-7.el5

$B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B


$B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B

$B!z(BFO$B8e$NMM;R(B
============
Last updated: Thu Oct 15 15:52:40 2009
Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
2 Nodes configured.
1 Resources configured.
============

Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online

Resource Group: grpDummy
mysqld_4 (lsb:mysqld): Started rh53-2

Failed actions:
mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete


$B!z%9%/%j%W%H$N=$@5(B
stop(){
MYSQLPID=`cat "$mypidfile" 2>/dev/null `
echo "pid : $MYSQLPID" >> /tmp/test.log
if [ -n "$MYSQLPID" ]; then
/bin/kill "$MYSQLPID" >/dev/null 2>&1
ret=$?
if [ $ret -eq 0 ]; then
STOPTIMEOUT=60
while [ $STOPTIMEOUT -gt 0 ]; do
/bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
sleep 1
let STOPTIMEOUT=${STOPTIMEOUT}-1
done
if [ $STOPTIMEOUT -eq 0 ]; then
echo "Timeout error occurred trying to stop MySQL Daemon."
ret=1
echo "Timeout error occurred trying to stop MySQL Daemon." >> /tmp/test.log
action $"Stopping $prog: " /bin/false
else
rm -f /var/lock/subsys/mysqld
rm -f "$socketfile"
action $"Stopping $prog: " /bin/true
fi
else
echo "kill ret=$ret" >> /tmp/test.log
action $"Stopping $prog: " /bin/false
ret=0$B!!!z$3$3(B
fi
$B!J>JN,!K(B

}

$B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)

crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation mysqld_4_monitor_20000 (call=4,
rc=7) complete
lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for client 6127,
its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon] CRM_meta_timeout=[60000]
crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7 (mapped from 2)
lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_monitor_20000 (call=4,
rc=-2) Cancelled
lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are needed.
lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)

lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with return code 0.
crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0 (call=5, rc=0)
complete

$B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
$B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B

$B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B


$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B

--- renayama19661014 [at] ybb wrote:

> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> >mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> $B$r8+$k$H!"(Bstop$B$G(B1$B$,JV$C$F$-$F$$$k$h$&$K;W$($^$9!#(B
>
> rc$B$r@)8f$9$k(Bocf$B$r(Blsb$B$N0c$$$,$"$k$N$+$bCN$l$^$;$s!#(B
>
> $B$b$7$+$9$k$H!";d$,4V0c$C$F$$$k$+$bCN$l$^$;$s$M!#(B
> $B4D6-$,$9$0$KMQ0U=PMh$J$$$N$G!"(Bmysql$B$G$O=PMh$^$;$s$,!"$=$NB>$N(Blsb$B$G;n$7$F$_$^$9$M!#(B
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9(B
>
> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>
> > $B%a%$%H%j%C%/%9!!;3FbMM(B
> >
> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
> >
> > $B$4;XE&$NDL$j!"(Bmysqld$B%5!<%S%9Dd;_Cf$K(Bmysql$B%9%/%j%W%H$r<B;\$7$?>l9g$K!"(B
> > $B%9%F!<%?%9%3!<%I(B0$B$rJV$9$h$&=$@5CW$7$^$7$?!#(B
> >
> > $B$7$+$77k2L$OJQ$o$i$:%U%'%$%k%*!<%P$OH/@8$7$^$;$s$G$7$?!#(B
> > kill$B<B9T;~$O0JA0$HF1MM$N7k2L$H$J$j$^$7$?!#(B
> > mysqld$B%9%/%j%W%H<B9T;~$O%U%'%$%k%*!<%P$O<B9T$5$l$:!"%j%=!<%9$N:F5/F0$,=hM}$,$*$3$J$o$l$^$7$?!#(B
> >
> > # crm_mon -1
> >
> >
> > ============
> > Last updated: Fri Oct 16 23:01:27 2009
> > Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> > 2 Nodes configured.
> > 1 Resources configured.
> > ============
> >
> > Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> > Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
> >
> > Resource Group: test-db
> > IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> > drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> > Filesystem_3 (ocf::heartbeat:Filesystem): Started
> > hoge01.example.com
> > mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
> >
> > Failed actions:
> > mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> > mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> >
> > $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> >
> >
> > 2009$BG/(B10$B7n(B15$BF|(B13:13 <renayama19661014 [at] ybb>:
> > > $B0p3@$5$s(B
> > >
> > > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> > >
> > > $B2<5-!"<B;\$5$l$?J}K!$GLdBj$J$$$H;W$$$^$9!#(B
> > >
> > >> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
> > > mysqld$B$N%9%/%j%W%HFb$G!"(Bmysql$B$N5/F0H=Dj$r9T$&I,MW$,$"$k$H;W$$$^$9!#(B
> > >
> > >> # /etc/init.d/mysqld status ; echo $?
> > >> mysqld $B$ODd;_$7$F$$$^$9(B
> > >> 3
> > > $BDd;_Cf$O!"(Bstatus$B$,(B3$B$rJV$7$F$*$j$^$9$N$G!"(Bstop$B;~$K$3$l$r(Bstatus$B$r<B9T$7$F!"(B3$B$N>l9g$O!"(B
> > > $BDd;_:Q$_$G#O#K(B(0)$B$rJV$7$F$$$?$@$1$l$P$h$$$N$G$O$J$$$G$7$g$&$+!)(B
> > >
> > > # /etc/init.d/mysqld stop ; echo $?
> > > MySQL $B$rDd;_Cf(B: [$B<:GT(B]
> > > 0...($B$H$J$k$h$&!K(B
> > >
> > > $B$?$@$7!"(Bmysqld$B$K<j$rF~$l$k$3$H$K$J$C$F$7$^$&$N$G!"$"$^$j9%$^$7$/$J$$>l9g$b$"$j$^$9$M!#(B
> > >
> > > mysql$BMQ$N%j%=!<%9$K$O!"(Blsb$B%j%=!<%9$G$O$J$/!"(Bocf$B%j%=!<%9$b$"$j$^$9$N$G!"$=$A$i$N(B
> > > $BMxMQ$NJ}$,$&$^$/9T$/$+$H;W$$$^$9$,!#!#!#!#(B
> > >
> > > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> > >
> > >
> > > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> > >
> > >> $B%a%$%H%j%C%/%9!!;3FbMM(B
> > >>
> > >> $BAaB.$N$4JV?.$"$j$,$H$&$4$6$$$^$9!#(B
> > >>
> > >> $B;3FbMM$,$*$C$7$c$i$l$F$$$k$N$O2<5-(BURL$B$K$"$k%A%'%C%/J}K!$G$h$m$7$$$G$7$g$&$+!#(B
> > >> http://www.linux-ha.org/ja/LSBResourceAgent_ja
> > >>
> > >> $B7k2L$O0J2<$N$h$&$K$J$j$^$7$?!#(B
> > >> # /etc/init.d/mysqld start ; echo $?
> > >> MySQL $B$r5/F0Cf(B: [ OK ]
> > >> 0
> > >> #
> > >> #
> > >> # /etc/init.d/mysqld status ; echo $?
> > >> mysqld (pid 25755) $B$r<B9TCf(B...
> > >> 0
> > >> # /etc/init.d/mysqld start ; echo $?
> > >> MySQL $B$r5/F0Cf(B: [ OK ]
> > >> 0
> > >> # /etc/init.d/mysqld stop ; echo $?
> > >> MySQL $B$rDd;_Cf(B: [ OK ]
> > >> 0
> > >> #
> > >> #
> > >> # /etc/init.d/mysqld status ; echo $?
> > >> mysqld $B$ODd;_$7$F$$$^$9(B
> > >> 3
> > >> # /etc/init.d/mysqld stop ; echo $?
> > >> MySQL $B$rDd;_Cf(B: [$B<:GT(B]
> > >> 1
> > >>
> > >> $B$I$&$d$i%W%m%;%9Dd;_;~$NDd;_$,$&$^$/$$$C$F$J$$$_$?$$$G$9$M!#(B
> > >>
> > >> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
> > >>
> > >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> > >>
> > >>
> > >> 2009$BG/(B10$B7n(B15$BF|(B12:09 <renayama19661014 [at] ybb>:
> > >> > $B0p3@$5$s(B
> > >> >
> > >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> > >> >
> > >> > $BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B
> > >> >
> > >> >
> > >>
> >
> mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F(B
> > > $B$$(B
> > >> > $B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B
> > >> >
> > >> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> > >> >
> > >> >
> > >> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> > >> >
> > >> >> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
> > >> >>
> > >> >> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
> > >> >>
> > >>
> >
> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
> > >> > $B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
> > >> >> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
> > >> >> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
> > >> >> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
> > >> >>
> > >> >> $B!Z<j=g![(B
> > >> >> # ps -ef | grep mysql
> > >> >> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
> > >> >> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
> > >> >> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
> > >> >> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
> > >> >> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
> > >> >> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
> > >> >> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
> > >> >> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
> > >> >> --socket=/var/lib/mysql/mysql.sock
> > >> >>
> > >> >> # kill -9 2397 3068
> > >> >>
> > >> >> # crm_mon -1
> > >> >>
> > >> >>
> > >> >> ============
> > >> >> Last updated: Sat Oct 17 07:29:25 2009
> > >> >> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> > >> >> 2 Nodes configured.
> > >> >> 1 Resources configured.
> > >> >> ============
> > >> >>
> > >> >> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> > >> >> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
> > >> >>
> > >> >> Resource Group: test-db
> > >> >> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> > >> >> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> > >> >> Filesystem_3 (ocf::heartbeat:Filesystem): Started
> > >> >> hoge01.example.com
> > >> >> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
> > >> >>
> > >> >> Failed actions:
> > >> >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> > >> >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> > >> >>
> > >> >>
> > >> >> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
> > >> >> OS$B!'!!(BCentOS5.3
> > >> >> Heartbeat$B!!(B2.1.4-1
> > >> >>
> > >> >>
> > >> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> > >> >> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false"
> > num_peers="2"
> > >> >> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===

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


tadashi.1027 at gmail

Oct 15, 2009, 12:18 AM

Post #8 of 15 (1234 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B%a%$%H%j%C%/%9!!;3FbMM(B

$B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B

$B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
$B;d$N4D6-0J2<$K$J$j$^$9!#(B

mysql-server-5.1.39-1.el5.remi
mysql-libs-5.1.39-1.el5.remi
mysqlclient15-5.0.67-1.el5.remi
mysql-5.1.39-1.el5.remi

kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B

Failed actions:
mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete


$B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
$B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B

$B!ZDI5-FbMF![(B
if [ -f $mypidfile ]; then
rm -f $mypidfile
fi

$B$^$?!"(B/var/log/ha-debug$B$K$b(B
crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
mysqld_4_stop_0 (call=11, rc=0) complete

$B$,=PNO$5$l$^$7$?!#(B

$B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B

$B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B



2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
> $BMxMQ$7$?(Bmysqld$B$O!"(B
>
> mysql-devel-5.0.45-7.el5
> mysql-server-5.0.45-7.el5
> mysql-5.0.45-7.el5
>
> $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
>
>
> $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
>
> $B!z(BFO$B8e$NMM;R(B
> ============
> Last updated: Thu Oct 15 15:52:40 2009
> Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
> 2 Nodes configured.
> 1 Resources configured.
> ============
>
> Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
> Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
>
> Resource Group: grpDummy
> mysqld_4 (lsb:mysqld): Started rh53-2
>
> Failed actions:
> mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
>
>
> $B!z%9%/%j%W%H$N=$@5(B
> stop(){
> MYSQLPID=`cat "$mypidfile" 2>/dev/null `
> echo "pid : $MYSQLPID" >> /tmp/test.log
> if [ -n "$MYSQLPID" ]; then
> /bin/kill "$MYSQLPID" >/dev/null 2>&1
> ret=$?
> if [ $ret -eq 0 ]; then
> STOPTIMEOUT=60
> while [ $STOPTIMEOUT -gt 0 ]; do
> /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
> sleep 1
> let STOPTIMEOUT=${STOPTIMEOUT}-1
> done
> if [ $STOPTIMEOUT -eq 0 ]; then
> echo "Timeout error occurred trying to stop MySQL Daemon."
> ret=1
> echo "Timeout error occurred trying to stop MySQL Daemon." >> /tmp/test.log
> action $"Stopping $prog: " /bin/false
> else
> rm -f /var/lock/subsys/mysqld
> rm -f "$socketfile"
> action $"Stopping $prog: " /bin/true
> fi
> else
> echo "kill ret=$ret" >> /tmp/test.log
> action $"Stopping $prog: " /bin/false
> ret=0$B!!!z$3$3(B
> fi
> $B!J>JN,!K(B
>
> }
>
> $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
>
> crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation mysqld_4_monitor_20000 (call=4,
> rc=7) complete
> lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for client 6127,
> its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon] CRM_meta_timeout=[60000]
> crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7 (mapped from 2)
> lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
> crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
> key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
> lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
> crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_monitor_20000 (call=4,
> rc=-2) Cancelled
> lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are needed.
> lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
> lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
> lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
> lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
> lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>
> lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with return code 0.
> crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0 (call=5, rc=0)
> complete
>
> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[.$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
> $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
>
> $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
>
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
> --- renayama19661014 [at] ybb wrote:
>
>> $B0p3@$5$s(B
>>
>> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>>
>> >mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>> $B$r8+$k$H!"(Bstop$B$G(B1$B$,JV$C$F$-$F$$$k$h$&$K;W$($^$9!#(B
>>
>> rc$B$r@)8f$9$k(Bocf$B$r(Blsb$B$N0c$$$,$"$k$N$+$bCN$l$^$;$s!#(B
>>
>> $B$b$7$+$9$k$H!";d$,4V0c$C$F$$$k$+$bCN$l$^$;$s$M!#(B
>> $B4D6-$,$9$0$KMQ0U=PMh$J$$$N$G!"(Bmysql$B$G$O=PMh$^$;$s$,!"$=$NB>$N(Blsb$B$G;n$7$F$_$^$9$M!#(B
>>
>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9(B
>>
>> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>>
>> > $B%a%$%H%j%C%/%9!!;3FbMM(B
>> >
>> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>> >
>> > $B$4;XE&$NDL$j!"(Bmysqld$B%5!<%S%9Dd;_Cf$K(Bmysql$B%9%/%j%W%H$r<B;\$7$?>l9g$K!"(B
>> > $B%9%F!<%?%9%3!<%I(B0$B$rJV$9$h$&=$@5CW$7$^$7$?!#(B
>> >
>> > $B$7$+$77k2L$OJQ$o$i$:%U%'%$%k%*!<%P$OH/@8$7$^$;$s$G$7$?!#(B
>> > kill$B<B9T;~$O0JA0$HF1MM$N7k2L$H$J$j$^$7$?!#(B
>> > mysqld$B%9%/%j%W%H<B9T;~$O%U%'%$%k%*!<%P$O<B9T$5$l$:!"%j%=!<%9$N:F5/F0$,=hM}$,$*$3$J$o$l$^$7$?!#(B
>> >
>> > # crm_mon -1
>> >
>> >
>> > ============
>> > Last updated: Fri Oct 16 23:01:27 2009
>> > Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
>> > 2 Nodes configured.
>> > 1 Resources configured.
>> > ============
>> >
>> > Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
>> > Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>> >
>> > Resource Group: test-db
>> > IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
>> > drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
>> > Filesystem_3 (ocf::heartbeat:Filesystem): Started
>> > hoge01.example.com
>> > mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>> >
>> > Failed actions:
>> > mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>> > mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>> >
>> > $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> >
>> >
>> > 2009$BG/(B10$B7n(B15$BF|(B13:13 <renayama19661014 [at] ybb>:
>> > > $B0p3@$5$s(B
>> > >
>> > > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> > >
>> > > $B2<5-!"<B;\$5$l$?J}K!$GLdBj$J$$$H;W$$$^$9!#(B
>> > >
>> > >> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
>> > > mysqld$B$N%9%/%j%W%HFb$G!"(Bmysql$B$N5/F0H=Dj$r9T$&I,MW$,$"$k$H;W$$$^$9!#(B
>> > >
>> > >> # /etc/init.d/mysqld status ; echo $?
>> > >> mysqld $B$ODd;_$7$F$$$^$9(B
>> > >> 3
>> > > $BDd;_Cf$O!"(Bstatus$B$,(B3$B$rJV$7$F$*$j$^$9$N$G!"(Bstop$B;~$K$3$l$r(Bstatus$B$r<B9T$7$F!"(B3$B$N>l9g$O!"(B
>> > > $BDd;_:Q$_$G#O#K(B(0)$B$rJV$7$F$$$?$@$1$l$P$h$$$N$G$O$J$$$G$7$g$&$+!)(B
>> > >
>> > > # /etc/init.d/mysqld stop ; echo $?
>> > > MySQL $B$rDd;_Cf(B: [$B<:GT(B]
>> > > 0...($B$H$J$k$h$&!K(B
>> > >
>> > > $B$?$@$7!"(Bmysqld$B$K<j$rF~$l$k$3$H$K$J$C$F$7$^$&$N$G!"$"$^$j9%$^$7$/$J$$>l9g$b$"$j$^$9$M!#(B
>> > >
>> > > mysql$BMQ$N%j%=!<%9$K$O!"(Blsb$B%j%=!<%9$G$O$J$/!"(Bocf$B%j%=!<%9$b$"$j$^$9$N$G!"$=$A$i$N(B
>> > > $BMxMQ$NJ}$,$&$^$/9T$/$+$H;W$$$^$9$,!#!#!#!#(B
>> > >
>> > > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>> > >
>> > >
>> > > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>> > >
>> > >> $B%a%$%H%j%C%/%9!!;3FbMM(B
>> > >>
>> > >> $BAaB.$N$4JV?.$"$j$,$H$&$4$6$$$^$9!#(B
>> > >>
>> > >> $B;3FbMM$,$*$C$7$c$i$l$F$$$k$N$O2<5-(BURL$B$K$"$k%A%'%C%/J}K!$G$h$m$7$$$G$7$g$&$+!#(B
>> > >> http://www.linux-ha.org/ja/LSBResourceAgent_ja
>> > >>
>> > >> $B7k2L$O0J2<$N$h$&$K$J$j$^$7$?!#(B
>> > >> # /etc/init.d/mysqld start ; echo $?
>> > >> MySQL $B$r5/F0Cf(B: [ OK ]
>> > >> 0
>> > >> #
>> > >> #
>> > >> # /etc/init.d/mysqld status ; echo $?
>> > >> mysqld (pid 25755) $B$r<B9TCf(B...
>> > >> 0
>> > >> # /etc/init.d/mysqld start ; echo $?
>> > >> MySQL $B$r5/F0Cf(B: [ OK ]
>> > >> 0
>> > >> # /etc/init.d/mysqld stop ; echo $?
>> > >> MySQL $B$rDd;_Cf(B: [ OK ]
>> > >> 0
>> > >> #
>> > >> #
>> > >> # /etc/init.d/mysqld status ; echo $?
>> > >> mysqld $B$ODd;_$7$F$$$^$9(B
>> > >> 3
>> > >> # /etc/init.d/mysqld stop ; echo $?
>> > >> MySQL $B$rDd;_Cf(B: [$B<:GT(B]
>> > >> 1
>> > >>
>> > >> $B$I$&$d$i%W%m%;%9Dd;_;~$NDd;_$,$&$^$/$$$C$F$J$$$_$?$$$G$9$M!#(B
>> > >>
>> > >> $BBP=hJ}K!$H$7$F$O$I$N$h$&$JJ}K!$,9M$($i$l$k$G$7$g$&$+!)(B
>> > >>
>> > >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> > >>
>> > >>
>> > >> 2009$BG/(B10$B7n(B15$BF|(B12:09 <renayama19661014 [at] ybb>:
>> > >> > $B0p3@$5$s(B
>> > >> >
>> > >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> > >> >
>> > >> > $BF10l4D6-$G;n$7$F$$$^$;$s$,!"(Bmysql$B$N(Bstop$B$K<:GT$7$F$$$k$3$H$,860x$G$9!#(B
>> > >> >
>> > >> >
>> > >>
>> >
>> mysql$B$N(Blsb$B%9%/%j%W%H$NDd;_<B9T(B(stop)$B$G!"(Bmysql$B$,(Bkill$B$5$l$F$$$k>uBV$N>l9g$K!"@5$7$$La$jCM(B(0)$B$,JV$C$F(B
>> > > $B$$(B
>> > >> > $B$k$+$I$&$+3NG'$7$F$_$F$/$@$5$$!#(B
>> > >> >
>> > >> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>> > >> >
>> > >> >
>> > >> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>> > >> >
>> > >> >> $B$*@$OC$K$J$C$F$*$j$^$9!#0p3@$H?=$7$^$9!#(B
>> > >> >>
>> > >> >> $B7GBj$N7o$K$D$$$F<ALd$5$;$F$/$@$5$$!#(B
>> > >> >>
>> > >>
>> >
>> Heartbeat$B$N%j%j!<%9(B2$B$N>l9g!"%W%m%;%9$b$7$/$O%5!<%S%9(B($BK\4D6-$G$O(BMySQL$B$N%W%m%;%9(B)$B$,Dd;_$9$k$H%U%'%$(B
>> > >> > $B%k%*!<%P$9$k$b$N$H;W$C$F$*$j$^$9$,!"(B
>> > >> >> $B8=4D6-$G$O%U%'%$%k%*!<%P$,<B9T$5$l$:!"2<5-!Z<j=g![$N$h$&$K$J$C$F$7$^$$$^$9!#(B
>> > >> >> $B>0!"%W%m%;%9$r(Bkill$B$9$k>l9g$H(Binit$B%9%/%j%W%H$rDd;_$9$k>l9g$G$bF1$87k2L$H$J$j$^$7$?!#(B
>> > >> >> $BE:IU$7$?(Bcib.xml$B%U%!%$%k$KITHwEy$"$j$^$9$+!)(B
>> > >> >>
>> > >> >> $B!Z<j=g![(B
>> > >> >> # ps -ef | grep mysql
>> > >> >> root 2397 27259 0 18:22 pts/1 00:00:00 grep mysql
>> > >> >> root 3068 1 0 01:38 ? 00:00:00 /bin/sh
>> > >> >> /usr/bin/mysqld_safe --datadir=/var/lib/mysql
>> > >> >> --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log
>> > >> >> --pid-file=/var/run/mysqld/mysqld.pid --federated --user=mysql
>> > >> >> mysql 3182 3068 0 01:38 ? 00:00:01 /usr/libexec/mysqld
>> > >> >> --basedir=/usr --datadir=/var/lib/mysql --user=mysql --federated
>> > >> >> --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
>> > >> >> --socket=/var/lib/mysql/mysql.sock
>> > >> >>
>> > >> >> # kill -9 2397 3068
>> > >> >>
>> > >> >> # crm_mon -1
>> > >> >>
>> > >> >>
>> > >> >> ============
>> > >> >> Last updated: Sat Oct 17 07:29:25 2009
>> > >> >> Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
>> > >> >> 2 Nodes configured.
>> > >> >> 1 Resources configured.
>> > >> >> ============
>> > >> >>
>> > >> >> Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
>> > >> >> Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>> > >> >>
>> > >> >> Resource Group: test-db
>> > >> >> IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
>> > >> >> drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
>> > >> >> Filesystem_3 (ocf::heartbeat:Filesystem): Started
>> > >> >> hoge01.example.com
>> > >> >> mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>> > >> >>
>> > >> >> Failed actions:
>> > >> >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>> > >> >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>> > >> >>
>> > >> >>
>> > >> >> $B8!>Z4D6-$O0J2<$NDL$j$G$9!#(B
>> > >> >> OS$B!'!!(BCentOS5.3
>> > >> >> Heartbeat$B!!(B2.1.4-1
>> > >> >>
>> > >> >>
>> > >> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> > >> >> > <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false"
>> > num_peers="2"
>> > >> >> cib_feature_revision="2.0" crm_feature_set="2.0" ccm_transition="2" epoch="69"
>>
> === $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===
>
> _______________________________________________
> Linux-ha-japan mailing list
> Linux-ha-japan [at] lists
> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan
>
Attachments: mysqld (4.56 KB)
  mysqld.org (4.51 KB)


renayama19661014 at ybb

Oct 15, 2009, 12:22 AM

Post #9 of 15 (1227 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

$B$H$j$"$($:!"=$@5$GF0$/$h$&$K$J$i$l$?$h$&$G2?$h$j$G$9!#(B

> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
$B$9$$$^$;$s!#(B
$B>e5-$N0UL#$,$h$/$o$+$i$J$$$N$G$9$,!"(Bmonitor$B$K<:GT$7$?;~$J$I$N(Brestart$B$H$$$&0UL#$G$7$g$&$+!)(B

$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B

--- $B0p3@(B <tadashi.1027 [at] gmail> wrote:

> $B%a%$%H%j%C%/%9!!;3FbMM(B
>
> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>
> $B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
> $B;d$N4D6-0J2<$K$J$j$^$9!#(B
>
> mysql-server-5.1.39-1.el5.remi
> mysql-libs-5.1.39-1.el5.remi
> mysqlclient15-5.0.67-1.el5.remi
> mysql-5.1.39-1.el5.remi
>
> kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
> kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B
>
> Failed actions:
> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>
>
> $B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
> $B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B
>
> $B!ZDI5-FbMF![(B
> if [ -f $mypidfile ]; then
> rm -f $mypidfile
> fi
>
> $B$^$?!"(B/var/log/ha-debug$B$K$b(B
> crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
> mysqld_4_stop_0 (call=11, rc=0) complete
>
> $B$,=PNO$5$l$^$7$?!#(B
>
> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
>
> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>
>
>
> 2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
> > $B0p3@$5$s(B
> >
> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >
> > $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
> > $BMxMQ$7$?(Bmysqld$B$O!"(B
> >
> > mysql-devel-5.0.45-7.el5
> > mysql-server-5.0.45-7.el5
> > mysql-5.0.45-7.el5
> >
> > $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
> >
> >
> > $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
> >
> > $B!z(BFO$B8e$NMM;R(B
> > ============
> > Last updated: Thu Oct 15 15:52:40 2009
> > Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
> > 2 Nodes configured.
> > 1 Resources configured.
> > ============
> >
> > Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
> > Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
> >
> > Resource Group: grpDummy
> > mysqld_4 (lsb:mysqld): Started rh53-2
> >
> > Failed actions:
> > mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
> >
> >
> > $B!z%9%/%j%W%H$N=$@5(B
> > stop(){
> > MYSQLPID=`cat "$mypidfile" 2>/dev/null `
> > echo "pid : $MYSQLPID" >> /tmp/test.log
> > if [ -n "$MYSQLPID" ]; then
> > /bin/kill "$MYSQLPID" >/dev/null 2>&1
> > ret=$?
> > if [ $ret -eq 0 ]; then
> > STOPTIMEOUT=60
> > while [ $STOPTIMEOUT -gt 0 ]; do
> > /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
> > sleep 1
> > let STOPTIMEOUT=${STOPTIMEOUT}-1
> > done
> > if [ $STOPTIMEOUT -eq 0 ]; then
> > echo "Timeout error occurred trying to stop MySQL Daemon."
> > ret=1
> > echo "Timeout error occurred trying to stop MySQL Daemon." >> /tmp/test.log
> > action $"Stopping $prog: " /bin/false
> > else
> > rm -f /var/lock/subsys/mysqld
> > rm -f "$socketfile"
> > action $"Stopping $prog: " /bin/true
> > fi
> > else
> > echo "kill ret=$ret" >> /tmp/test.log
> > action $"Stopping $prog: " /bin/false
> > ret=0$B!!!z$3$3(B
> > fi
> > $B!J>JN,!K(B
> >
> > }
> >
> > $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
> >
> > crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation mysqld_4_monitor_20000
> (call=4,
> > rc=7) complete
> > lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for client
> 6127,
> > its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon] CRM_meta_timeout=[60000]
> > crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7 (mapped
> from 2)
> > lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
> > crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
> > key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
> > lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_monitor_20000
> (call=4,
> > rc=-2) Cancelled
> > lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are
> needed.
> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> >
> > lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with return
> code 0.
> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0
> (call=5, rc=0)
> > complete
> >
> >
> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
> > $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
> >
> > $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
> >
> >
> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> >
> > --- renayama19661014 [at] ybb wrote:
> >
> >> $B0p3@$5$s(B
> >>
> >> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >>
> >> >mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> >> $B$r8+$k$H!"(Bstop$B$G(B1$B$,JV$C$F$-$F$$$k$h$&$K;W$($^$9!#(B
> >>
> >> rc$B$r@)8f$9$k(Bocf$B$r(Blsb$B$N0c$$$,$"$k$N$+$bCN$l$^$;$s!#(B
> >>
> >> $B$b$7$+$9$k$H!";d$,4V0c$C$F$$$k$+$bCN$l$^$;$s$M!#(B
> >> $B4D6-$,$9$0$KMQ0U=PMh$J$$$N$G!"(Bmysql$B$G$O=PMh$^$;$s$,!"$=$NB>$N(Blsb$B$G;n$7$F$_$^$9$M!#(B
> >>
> >> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9(B
> >>
> >> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> >>
> >> > $B%a%$%H%j%C%/%9!!;3FbMM(B
> >> >
> >> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
> >> >
> >> > $B$4;XE&$NDL$j!"(Bmysqld$B%5!<%S%9Dd;_Cf$K(Bmysql$B%9%/%j%W%H$r<B;\$7$?>l9g$K!"(B
> >> > $B%9%F!<%?%9%3!<%I(B0$B$rJV$9$h$&=$@5CW$7$^$7$?!#(B
> >> >
> >> > $B$7$+$77k2L$OJQ$o$i$:%U%'%$%k%*!<%P$OH/@8$7$^$;$s$G$7$?!#(B
> >> > kill$B<B9T;~$O0JA0$HF1MM$N7k2L$H$J$j$^$7$?!#(B
> >> >
> mysqld$B%9%/%j%W%H<B9T;~$O%U%'%$%k%*!<%P$O<B9T$5$l$:!"%j%=!<%9$N:F5/F0$,=hM}$,$*$3$J$o$l$^$7$?!#(B
> >> >
> >> > # crm_mon -1
> >> >
> >> >
> >> > ============
> >> > Last updated: Fri Oct 16 23:01:27 2009
> >> > Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
> >> > 2 Nodes configured.
> >> > 1 Resources configured.
> >> > ============
> >> >
> >> > Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
> >> > Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
> >> >
> >> > Resource Group: test-db
> >> > IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
> >> > drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
> >> > Filesystem_3 (ocf::heartbeat:Filesystem): Started
> >> > hoge01.example.com
> >> > mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
> >> >
> >> > Failed actions:
> >> > mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===> _______________________________________________
> 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


tadashi.1027 at gmail

Oct 15, 2009, 12:34 AM

Post #10 of 15 (1232 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B%a%$%H%j%C%/%9!!;3FbMM(B

$B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B

$B$9$_$^$;$s!#(B
FO$B$,<B;\$5$l$:!"<+J,<+?H$G%j%=!<%9$r:F5/F0$7$F$7$^$&$3$H$G$9!#(B

$B87L)$K8@$&$H<+?H$G%j%=!<%9:F5/F0$7$F$b$$$$$N$G$9$,!"(B
$B$=$l$,L58B$K7+$jJV$5$l$k$H:$$C$F$7$^$$$^$9!#(B

$B$"$k0lDj$N2s?t(B($BNc$($P(B3$B2s(B)$B:F5/F0$K<:GT$7$?>l9g!"(BFO$B$,9T$o$l$l$PK>$^$7$$$H;W$C$F$*$j$^$9!#(B

$B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B


2009$BG/(B10$B7n(B15$BF|(B16:22 <renayama19661014 [at] ybb>:
> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> $B$H$j$"$($:!"=$@5$GF0$/$h$&$K$J$i$l$?$h$&$G2?$h$j$G$9!#(B
>
>> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
> $B$9$$$^$;$s!#(B
> $B>e5-$N0UL#$,$h$/$o$+$i$J$$$N$G$9$,!"(Bmonitor$B$K<:GT$7$?;~$J$I$N(Brestart$B$H$$$&0UL#$G$7$g$&$+!)(B
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>
>> $B%a%$%H%j%C%/%9!!;3FbMM(B
>>
>> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>>
>> $B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
>> $B;d$N4D6-0J2<$K$J$j$^$9!#(B
>>
>> mysql-server-5.1.39-1.el5.remi
>> mysql-libs-5.1.39-1.el5.remi
>> mysqlclient15-5.0.67-1.el5.remi
>> mysql-5.1.39-1.el5.remi
>>
>> kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
>> kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B
>>
>> Failed actions:
>> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>>
>>
>> $B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
>> $B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B
>>
>> $B!ZDI5-FbMF![(B
>> if [ -f $mypidfile ]; then
>> rm -f $mypidfile
>> fi
>>
>> $B$^$?!"(B/var/log/ha-debug$B$K$b(B
>> crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
>> mysqld_4_stop_0 (call=11, rc=0) complete
>>
>> $B$,=PNO$5$l$^$7$?!#(B
>>
>> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
>>
>> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>>
>>
>>
>> 2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
>> > $B0p3@$5$s(B
>> >
>> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> >
>> > $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
>> > $BMxMQ$7$?(Bmysqld$B$O!"(B
>> >
>> > mysql-devel-5.0.45-7.el5
>> > mysql-server-5.0.45-7.el5
>> > mysql-5.0.45-7.el5
>> >
>> > $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
>> >
>> >
>> > $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
>> >
>> > $B!z(BFO$B8e$NMM;R(B
>> > ============
>> > Last updated: Thu Oct 15 15:52:40 2009
>> > Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
>> > 2 Nodes configured.
>> > 1 Resources configured.
>> > ============
>> >
>> > Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
>> > Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
>> >
>> > Resource Group: grpDummy
>> > mysqld_4 (lsb:mysqld): Started rh53-2
>> >
>> > Failed actions:
>> > mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
>> >
>> >
>> > $B!z%9%/%j%W%H$N=$@5(B
>> > stop(){
>> > MYSQLPID=`cat "$mypidfile" 2>/dev/null `
>> > echo "pid : $MYSQLPID" >> /tmp/test.log
>> > if [ -n "$MYSQLPID" ]; then
>> > /bin/kill "$MYSQLPID" >/dev/null 2>&1
>> > ret=$?
>> > if [ $ret -eq 0 ]; then
>> > STOPTIMEOUT=60
>> > while [ $STOPTIMEOUT -gt 0 ]; do
>> > /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
>> > sleep 1
>> > let STOPTIMEOUT=${STOPTIMEOUT}-1
>> > done
>> > if [ $STOPTIMEOUT -eq 0 ]; then
>> > echo "Timeout error occurred trying to stop MySQL Daemon."
>> > ret=1
>> > echo "Timeout error occurred trying to stop MySQL Daemon." >> /tmp/test.log
>> > action $"Stopping $prog: " /bin/false
>> > else
>> > rm -f /var/lock/subsys/mysqld
>> > rm -f "$socketfile"
>> > action $"Stopping $prog: " /bin/true
>> > fi
>> > else
>> > echo "kill ret=$ret" >> /tmp/test.log
>> > action $"Stopping $prog: " /bin/false
>> > ret=0$B!!!z$3$3(B
>> > fi
>> > $B!J>JN,!K(B
>> >
>> > }
>> >
>> > $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
>> >
>> > crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation mysqld_4_monitor_20000
>> (call=4,
>> > rc=7) complete
>> > lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for client
>> 6127,
>> > its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon] CRM_meta_timeout=[60000]
>> > crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7 (mapped
>> from 2)
>> > lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
>> > crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
>> > key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
>> > lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
>> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_monitor_20000
>> (call=4,
>> > rc=-2) Cancelled
>> > lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are
>> needed.
>> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
>> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
>> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
>> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
>> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>> >
>> > lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with return
>> code 0.
>> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0
>> (call=5, rc=0)
>> > complete
>> >
>> >
>> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
>> > $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
>> >
>> > $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
>> >
>> >
>> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>> >
>> > --- renayama19661014 [at] ybb wrote:
>> >
>> >> $B0p3@$5$s(B
>> >>
>> >> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> >>
>> >> >mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>> >> $B$r8+$k$H!"(Bstop$B$G(B1$B$,JV$C$F$-$F$$$k$h$&$K;W$($^$9!#(B
>> >>
>> >> rc$B$r@)8f$9$k(Bocf$B$r(Blsb$B$N0c$$$,$"$k$N$+$bCN$l$^$;$s!#(B
>> >>
>> >> $B$b$7$+$9$k$H!";d$,4V0c$C$F$$$k$+$bCN$l$^$;$s$M!#(B
>> >> $B4D6-$,$9$0$KMQ0U=PMh$J$$$N$G!"(Bmysql$B$G$O=PMh$^$;$s$,!"$=$NB>$N(Blsb$B$G;n$7$F$_$^$9$M!#(B
>> >>
>> >> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9(B
>> >>
>> >> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>> >>
>> >> > $B%a%$%H%j%C%/%9!!;3FbMM(B
>> >> >
>> >> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>> >> >
>> >> > $B$4;XE&$NDL$j!"(Bmysqld$B%5!<%S%9Dd;_Cf$K(Bmysql$B%9%/%j%W%H$r<B;\$7$?>l9g$K!"(B
>> >> > $B%9%F!<%?%9%3!<%I(B0$B$rJV$9$h$&=$@5CW$7$^$7$?!#(B
>> >> >
>> >> > $B$7$+$77k2L$OJQ$o$i$:%U%'%$%k%*!<%P$OH/@8$7$^$;$s$G$7$?!#(B
>> >> > kill$B<B9T;~$O0JA0$HF1MM$N7k2L$H$J$j$^$7$?!#(B
>> >> >
>> mysqld$B%9%/%j%W%H<B9T;~$O%U%'%$%k%*!<%P$O<B9T$5$l$:!"%j%=!<%9$N:F5/F0$,=hM}$,$*$3$J$o$l$^$7$?!#(B
>> >> >
>> >> > # crm_mon -1
>> >> >
>> >> >
>> >> > ============
>> >> > Last updated: Fri Oct 16 23:01:27 2009
>> >> > Current DC: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969)
>> >> > 2 Nodes configured.
>> >> > 1 Resources configured.
>> >> > ============
>> >> >
>> >> > Node: hoge02.example.com (91e0db86-1aaf-47a9-a80f-bc198c4c8969): online
>> >> > Node: hoge01.example.com (dbdb4396-8c57-4f70-878f-a6984ec7d554): online
>> >> >
>> >> > Resource Group: test-db
>> >> > IPaddr2_1 (ocf::heartbeat:IPaddr2): Started hoge01.example.com
>> >> > drbddisk_2 (heartbeat:drbddisk): Started hoge01.example.com
>> >> > Filesystem_3 (ocf::heartbeat:Filesystem): Started
>> >> > hoge01.example.com
>> >> > mysqld_4 (lsb:mysqld): Started hoge01.example.com (unmanaged) FAILED
>> >> >
>> >> > Failed actions:
>> >> > mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>>
> === $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===> _______________________________________________
>> 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
>

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


renayama19661014 at ybb

Oct 15, 2009, 12:58 AM

Post #11 of 15 (1224 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

$B$9$$$^$;$s!#(B

default-resource-stickiness,default-resource-failure-stickiness$B$H$N4X78$H3F%N!<%I$N%9%3%"CM(B
$B$rMQ$$$F7W;;$5$l$F$$$?$+$H;W$&$N$G$9$,!">\:Y$,$I$3$K5-:\$5$l$F$$$?$+3P$($F$$$^$;$s!#(B

$BK\2H$N%5%$%H$+!"(BML$B$K$"$C$?$+$bCN$l$^$;$s!#(B


--- $B0p3@(B <tadashi.1027 [at] gmail> wrote:

> $B%a%$%H%j%C%/%9!!;3FbMM(B
>
> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>
> $B$9$_$^$;$s!#(B
> FO$B$,<B;\$5$l$:!"<+J,<+?H$G%j%=!<%9$r:F5/F0$7$F$7$^$&$3$H$G$9!#(B
>
> $B87L)$K8@$&$H<+?H$G%j%=!<%9:F5/F0$7$F$b$$$$$N$G$9$,!"(B
> $B$=$l$,L58B$K7+$jJV$5$l$k$H:$$C$F$7$^$$$^$9!#(B
>
> $B$"$k0lDj$N2s?t(B($BNc$($P(B3$B2s(B)$B:F5/F0$K<:GT$7$?>l9g!"(BFO$B$,9T$o$l$l$PK>$^$7$$$H;W$C$F$*$j$^$9!#(B
>
> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>
>
> 2009$BG/(B10$B7n(B15$BF|(B16:22 <renayama19661014 [at] ybb>:
> > $B0p3@$5$s(B
> >
> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >
> > $B$H$j$"$($:!"=$@5$GF0$/$h$&$K$J$i$l$?$h$&$G2?$h$j$G$9!#(B
> >
> >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
> > $B$9$$$^$;$s!#(B
> > $B>e5-$N0UL#$,$h$/$o$+$i$J$$$N$G$9$,!"(Bmonitor$B$K<:GT$7$?;~$J$I$N(Brestart$B$H$$$&0UL#$G$7$g$&$+!)(B
> >
> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> >
> > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> >
> >> $B%a%$%H%j%C%/%9!!;3FbMM(B
> >>
> >> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
> >>
> >> $B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
> >> $B;d$N4D6-0J2<$K$J$j$^$9!#(B
> >>
> >> mysql-server-5.1.39-1.el5.remi
> >> mysql-libs-5.1.39-1.el5.remi
> >> mysqlclient15-5.0.67-1.el5.remi
> >> mysql-5.1.39-1.el5.remi
> >>
> >> kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
> >> kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B
> >>
> >> Failed actions:
> >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> >>
> >>
> >> $B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
> >> $B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B
> >>
> >> $B!ZDI5-FbMF![(B
> >> if [ -f $mypidfile ]; then
> >> rm -f $mypidfile
> >> fi
> >>
> >> $B$^$?!"(B/var/log/ha-debug$B$K$b(B
> >> crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
> >> mysqld_4_stop_0 (call=11, rc=0) complete
> >>
> >> $B$,=PNO$5$l$^$7$?!#(B
> >>
> >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
> >>
> >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> >>
> >>
> >>
> >> 2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
> >> > $B0p3@$5$s(B
> >> >
> >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >> >
> >> > $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
> >> > $BMxMQ$7$?(Bmysqld$B$O!"(B
> >> >
> >> > mysql-devel-5.0.45-7.el5
> >> > mysql-server-5.0.45-7.el5
> >> > mysql-5.0.45-7.el5
> >> >
> >> > $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
> >> >
> >> >
> >> > $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
> >> >
> >> > $B!z(BFO$B8e$NMM;R(B
> >> > ============
> >> > Last updated: Thu Oct 15 15:52:40 2009
> >> > Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
> >> > 2 Nodes configured.
> >> > 1 Resources configured.
> >> > ============
> >> >
> >> > Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
> >> > Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
> >> >
> >> > Resource Group: grpDummy
> >> > mysqld_4 (lsb:mysqld): Started rh53-2
> >> >
> >> > Failed actions:
> >> > mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
> >> >
> >> >
> >> > $B!z%9%/%j%W%H$N=$@5(B
> >> > stop(){
> >> > MYSQLPID=`cat "$mypidfile" 2>/dev/null `
> >> > echo "pid : $MYSQLPID" >> /tmp/test.log
> >> > if [ -n "$MYSQLPID" ]; then
> >> > /bin/kill "$MYSQLPID" >/dev/null 2>&1
> >> > ret=$?
> >> > if [ $ret -eq 0 ]; then
> >> > STOPTIMEOUT=60
> >> > while [ $STOPTIMEOUT -gt 0 ]; do
> >> > /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
> >> > sleep 1
> >> > let STOPTIMEOUT=${STOPTIMEOUT}-1
> >> > done
> >> > if [ $STOPTIMEOUT -eq 0 ]; then
> >> > echo "Timeout error occurred trying to stop MySQL Daemon."
> >> > ret=1
> >> > echo "Timeout error occurred trying to stop MySQL Daemon." >>
> /tmp/test.log
> >> > action $"Stopping $prog: " /bin/false
> >> > else
> >> > rm -f /var/lock/subsys/mysqld
> >> > rm -f "$socketfile"
> >> > action $"Stopping $prog: " /bin/true
> >> > fi
> >> > else
> >> > echo "kill ret=$ret" >> /tmp/test.log
> >> > action $"Stopping $prog: " /bin/false
> >> > ret=0$B!!!z$3$3(B
> >> > fi
> >> > $B!J>JN,!K(B
> >> >
> >> > }
> >> >
> >> > $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
> >> >
> >> > crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation
> mysqld_4_monitor_20000
> >> (call=4,
> >> > rc=7) complete
> >> > lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for
> client
> >> 6127,
> >> > its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon]
> CRM_meta_timeout=[60000]
> >> > crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7
> (mapped
> >> from 2)
> >> > lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
> >> > crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
> >> > key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
> >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation
> mysqld_4_monitor_20000
> >> (call=4,
> >> > rc=-2) Cancelled
> >> > lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are
> >> needed.
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> >> >
> >> > lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with return
> >> code 0.
> >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0
> >> (call=5, rc=0)
> >> > complete
> >> >
> >> >
> >>
> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
> >> > $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
> >> >
> >> > $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
> >> >
> >> >
> >> > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> >> >
> >> > --- renayama19661014 [at] ybb wrote:
> >> >
> >> >> $B0p3@$5$s(B
> >> >>
> >> >> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >> >>
> >> >> >mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> >> >> $B$r8+$k$H!"(Bstop$B$G(B1$B$,JV$C$F$-$F$$$k$h$&$K;W$($^$9!#(B
> >> >>
> >> >> rc$B$r@)8f$9$k(Bocf$B$r(Blsb$B$N0c$$$,$"$k$N$+$bCN$l$^$;$s!#(B
> >> >>
> >> >> $B$b$7$+$9$k$H!";d$,4V0c$C$F$$$k$+$bCN$l$^$;$s$M!#(B
> >> >> $B4D6-$,$9$0$KMQ0U=PMh$J$$$N$G!"(Bmysql$B$G$O=PMh$^$;$s$,!"$=$NB>$N(Blsb$B$G;n$7$F$_$^$9$M!#(B
> >> >>
> >> >> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9(B
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===

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


renayama19661014 at ybb

Oct 15, 2009, 1:00 AM

Post #12 of 15 (1224 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

http://www.linux-ha.org/ja/v2/faq_ja

$B$K5-:\$,$"$k$h$&$G$9!#(B

--- renayama19661014 [at] ybb wrote:

> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> $B$9$$$^$;$s!#(B
>
> default-resource-stickiness,default-resource-failure-stickiness$B$H$N4X78$H3F%N!<%I$N%9%3%"CM(B
> $B$rMQ$$$F7W;;$5$l$F$$$?$+$H;W$&$N$G$9$,!">\:Y$,$I$3$K5-:\$5$l$F$$$?$+3P$($F$$$^$;$s!#(B
>
> $BK\2H$N%5%$%H$+!"(BML$B$K$"$C$?$+$bCN$l$^$;$s!#(B
>
>
> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>
> > $B%a%$%H%j%C%/%9!!;3FbMM(B
> >
> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
> >
> > $B$9$_$^$;$s!#(B
> > FO$B$,<B;\$5$l$:!"<+J,<+?H$G%j%=!<%9$r:F5/F0$7$F$7$^$&$3$H$G$9!#(B
> >
> > $B87L)$K8@$&$H<+?H$G%j%=!<%9:F5/F0$7$F$b$$$$$N$G$9$,!"(B
> > $B$=$l$,L58B$K7+$jJV$5$l$k$H:$$C$F$7$^$$$^$9!#(B
> >
> > $B$"$k0lDj$N2s?t(B($BNc$($P(B3$B2s(B)$B:F5/F0$K<:GT$7$?>l9g!"(BFO$B$,9T$o$l$l$PK>$^$7$$$H;W$C$F$*$j$^$9!#(B
> >
> > $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> >
> >
> > 2009$BG/(B10$B7n(B15$BF|(B16:22 <renayama19661014 [at] ybb>:
> > > $B0p3@$5$s(B
> > >
> > > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> > >
> > > $B$H$j$"$($:!"=$@5$GF0$/$h$&$K$J$i$l$?$h$&$G2?$h$j$G$9!#(B
> > >
> > >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
> > > $B$9$$$^$;$s!#(B
> > > $B>e5-$N0UL#$,$h$/$o$+$i$J$$$N$G$9$,!"(Bmonitor$B$K<:GT$7$?;~$J$I$N(Brestart$B$H$$$&0UL#$G$7$g$&$+!)(B
> > >
> > > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
> > >
> > > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
> > >
> > >> $B%a%$%H%j%C%/%9!!;3FbMM(B
> > >>
> > >> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
> > >>
> > >> $B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
> > >> $B;d$N4D6-0J2<$K$J$j$^$9!#(B
> > >>
> > >> mysql-server-5.1.39-1.el5.remi
> > >> mysql-libs-5.1.39-1.el5.remi
> > >> mysqlclient15-5.0.67-1.el5.remi
> > >> mysql-5.1.39-1.el5.remi
> > >>
> > >> kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
> > >> kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B
> > >>
> > >> Failed actions:
> > >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
> > >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
> > >>
> > >>
> > >>
> $B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
> > >> $B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B
> > >>
> > >> $B!ZDI5-FbMF![(B
> > >> if [ -f $mypidfile ]; then
> > >> rm -f $mypidfile
> > >> fi
> > >>
> > >> $B$^$?!"(B/var/log/ha-debug$B$K$b(B
> > >> crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
> > >> mysqld_4_stop_0 (call=11, rc=0) complete
> > >>
> > >> $B$,=PNO$5$l$^$7$?!#(B
> > >>
> > >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
> > >>
> > >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
> > >>
> > >>
> > >>
> > >> 2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
> > >> > $B0p3@$5$s(B
> > >> >
> > >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> > >> >
> > >> >
> $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
> > >> > $BMxMQ$7$?(Bmysqld$B$O!"(B
> > >> >
> > >> > mysql-devel-5.0.45-7.el5
> > >> > mysql-server-5.0.45-7.el5
> > >> > mysql-5.0.45-7.el5
> > >> >
> > >> > $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
> > >> >
> > >> >
> > >> > $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
> > >> >
> > >> > $B!z(BFO$B8e$NMM;R(B
> > >> > ============
> > >> > Last updated: Thu Oct 15 15:52:40 2009
> > >> > Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
> > >> > 2 Nodes configured.
> > >> > 1 Resources configured.
> > >> > ============
> > >> >
> > >> > Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
> > >> > Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
> > >> >
> > >> > Resource Group: grpDummy
> > >> > mysqld_4 (lsb:mysqld): Started rh53-2
> > >> >
> > >> > Failed actions:
> > >> > mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
> > >> >
> > >> >
> > >> > $B!z%9%/%j%W%H$N=$@5(B
> > >> > stop(){
> > >> > MYSQLPID=`cat "$mypidfile" 2>/dev/null `
> > >> > echo "pid : $MYSQLPID" >> /tmp/test.log
> > >> > if [ -n "$MYSQLPID" ]; then
> > >> > /bin/kill "$MYSQLPID" >/dev/null 2>&1
> > >> > ret=$?
> > >> > if [ $ret -eq 0 ]; then
> > >> > STOPTIMEOUT=60
> > >> > while [ $STOPTIMEOUT -gt 0 ]; do
> > >> > /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
> > >> > sleep 1
> > >> > let STOPTIMEOUT=${STOPTIMEOUT}-1
> > >> > done
> > >> > if [ $STOPTIMEOUT -eq 0 ]; then
> > >> > echo "Timeout error occurred trying to stop MySQL Daemon."
> > >> > ret=1
> > >> > echo "Timeout error occurred trying to stop MySQL Daemon." >>
> > /tmp/test.log
> > >> > action $"Stopping $prog: " /bin/false
> > >> > else
> > >> > rm -f /var/lock/subsys/mysqld
> > >> > rm -f "$socketfile"
> > >> > action $"Stopping $prog: " /bin/true
> > >> > fi
> > >> > else
> > >> > echo "kill ret=$ret" >> /tmp/test.log
> > >> > action $"Stopping $prog: " /bin/false
> > >> > ret=0$B!!!z$3$3(B
> > >> > fi
> > >> > $B!J>JN,!K(B
> > >> >
> > >> > }
> > >> >
> > >> > $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
> > >> >
> > >> > crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation
> > mysqld_4_monitor_20000
> > >> (call=4,
> > >> > rc=7) complete
> > >> > lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for
> > client
> > >> 6127,
> > >> > its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon]
> > CRM_meta_timeout=[60000]
> > >> > crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7
> > (mapped
> > >> from 2)
> > >> > lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
> > >> > crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
> > >> > key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
> > >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation
> > mysqld_4_monitor_20000
> > >> (call=4,
> > >> > rc=-2) Cancelled
> > >> > lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are
> > >> needed.
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
> > >> >
> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with
> return
> > >> code 0.
> > >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0
> > >> (call=5, rc=0)
> > >> > complete
> > >> >
> > >> >
> > >>
> >
> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
> > >> > $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
> > >> >
> > >> > $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
> > >> >
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===

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


tadashi.1027 at gmail

Oct 15, 2009, 1:04 AM

Post #13 of 15 (1240 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B%a%$%H%j%C%/%9!!;3FbMM(B

$B$I$&$b$"$j$,$H$&$4$6$$$^$9!#(B

$B0J2<;29M$K$5$;$F$$$?$@$-$^$9!#(B


2009$BG/(B10$B7n(B15$BF|(B17:00 <renayama19661014 [at] ybb>:
> $B0p3@$5$s(B
>
> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>
> http://www.linux-ha.org/ja/v2/faq_ja
>
> $B$K5-:\$,$"$k$h$&$G$9!#(B
>
> --- renayama19661014 [at] ybb wrote:
>
>> $B0p3@$5$s(B
>>
>> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>>
>> $B$9$$$^$;$s!#(B
>>
>> default-resource-stickiness,default-resource-failure-stickiness$B$H$N4X78$H3F%N!<%I$N%9%3%"CM(B
>> $B$rMQ$$$F7W;;$5$l$F$$$?$+$H;W$&$N$G$9$,!">\:Y$,$I$3$K5-:\$5$l$F$$$?$+3P$($F$$$^$;$s!#(B
>>
>> $BK\2H$N%5%$%H$+!"(BML$B$K$"$C$?$+$bCN$l$^$;$s!#(B
>>
>>
>> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>>
>> > $B%a%$%H%j%C%/%9!!;3FbMM(B
>> >
>> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>> >
>> > $B$9$_$^$;$s!#(B
>> > FO$B$,<B;\$5$l$:!"<+J,<+?H$G%j%=!<%9$r:F5/F0$7$F$7$^$&$3$H$G$9!#(B
>> >
>> > $B87L)$K8@$&$H<+?H$G%j%=!<%9:F5/F0$7$F$b$$$$$N$G$9$,!"(B
>> > $B$=$l$,L58B$K7+$jJV$5$l$k$H:$$C$F$7$^$$$^$9!#(B
>> >
>> > $B$"$k0lDj$N2s?t(B($BNc$($P(B3$B2s(B)$B:F5/F0$K<:GT$7$?>l9g!"(BFO$B$,9T$o$l$l$PK>$^$7$$$H;W$C$F$*$j$^$9!#(B
>> >
>> > $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> >
>> >
>> > 2009$BG/(B10$B7n(B15$BF|(B16:22 <renayama19661014 [at] ybb>:
>> > > $B0p3@$5$s(B
>> > >
>> > > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> > >
>> > > $B$H$j$"$($:!"=$@5$GF0$/$h$&$K$J$i$l$?$h$&$G2?$h$j$G$9!#(B
>> > >
>> > >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
>> > > $B$9$$$^$;$s!#(B
>> > > $B>e5-$N0UL#$,$h$/$o$+$i$J$$$N$G$9$,!"(Bmonitor$B$K<:GT$7$?;~$J$I$N(Brestart$B$H$$$&0UL#$G$7$g$&$+!)(B
>> > >
>> > > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>> > >
>> > > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>> > >
>> > >> $B%a%$%H%j%C%/%9!!;3FbMM(B
>> > >>
>> > >> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>> > >>
>> > >> $B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
>> > >> $B;d$N4D6-0J2<$K$J$j$^$9!#(B
>> > >>
>> > >> mysql-server-5.1.39-1.el5.remi
>> > >> mysql-libs-5.1.39-1.el5.remi
>> > >> mysqlclient15-5.0.67-1.el5.remi
>> > >> mysql-5.1.39-1.el5.remi
>> > >>
>> > >> kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
>> > >> kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B
>> > >>
>> > >> Failed actions:
>> > >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>> > >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>> > >>
>> > >>
>> > >>
>> $B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
>> > >> $B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B
>> > >>
>> > >> $B!ZDI5-FbMF![(B
>> > >> if [ -f $mypidfile ]; then
>> > >> rm -f $mypidfile
>> > >> fi
>> > >>
>> > >> $B$^$?!"(B/var/log/ha-debug$B$K$b(B
>> > >> crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
>> > >> mysqld_4_stop_0 (call=11, rc=0) complete
>> > >>
>> > >> $B$,=PNO$5$l$^$7$?!#(B
>> > >>
>> > >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
>> > >>
>> > >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>> > >>
>> > >>
>> > >>
>> > >> 2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
>> > >> > $B0p3@$5$s(B
>> > >> >
>> > >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>> > >> >
>> > >> >
>> $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
>> > >> > $BMxMQ$7$?(Bmysqld$B$O!"(B
>> > >> >
>> > >> > mysql-devel-5.0.45-7.el5
>> > >> > mysql-server-5.0.45-7.el5
>> > >> > mysql-5.0.45-7.el5
>> > >> >
>> > >> > $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
>> > >> >
>> > >> >
>> > >> > $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
>> > >> >
>> > >> > $B!z(BFO$B8e$NMM;R(B
>> > >> > ============
>> > >> > Last updated: Thu Oct 15 15:52:40 2009
>> > >> > Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
>> > >> > 2 Nodes configured.
>> > >> > 1 Resources configured.
>> > >> > ============
>> > >> >
>> > >> > Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
>> > >> > Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
>> > >> >
>> > >> > Resource Group: grpDummy
>> > >> > mysqld_4 (lsb:mysqld): Started rh53-2
>> > >> >
>> > >> > Failed actions:
>> > >> > mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
>> > >> >
>> > >> >
>> > >> > $B!z%9%/%j%W%H$N=$@5(B
>> > >> > stop(){
>> > >> > MYSQLPID=`cat "$mypidfile" 2>/dev/null `
>> > >> > echo "pid : $MYSQLPID" >> /tmp/test.log
>> > >> > if [ -n "$MYSQLPID" ]; then
>> > >> > /bin/kill "$MYSQLPID" >/dev/null 2>&1
>> > >> > ret=$?
>> > >> > if [ $ret -eq 0 ]; then
>> > >> > STOPTIMEOUT=60
>> > >> > while [ $STOPTIMEOUT -gt 0 ]; do
>> > >> > /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
>> > >> > sleep 1
>> > >> > let STOPTIMEOUT=${STOPTIMEOUT}-1
>> > >> > done
>> > >> > if [ $STOPTIMEOUT -eq 0 ]; then
>> > >> > echo "Timeout error occurred trying to stop MySQL Daemon."
>> > >> > ret=1
>> > >> > echo "Timeout error occurred trying to stop MySQL Daemon." >>
>> > /tmp/test.log
>> > >> > action $"Stopping $prog: " /bin/false
>> > >> > else
>> > >> > rm -f /var/lock/subsys/mysqld
>> > >> > rm -f "$socketfile"
>> > >> > action $"Stopping $prog: " /bin/true
>> > >> > fi
>> > >> > else
>> > >> > echo "kill ret=$ret" >> /tmp/test.log
>> > >> > action $"Stopping $prog: " /bin/false
>> > >> > ret=0$B!!!z$3$3(B
>> > >> > fi
>> > >> > $B!J>JN,!K(B
>> > >> >
>> > >> > }
>> > >> >
>> > >> > $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
>> > >> >
>> > >> > crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation
>> > mysqld_4_monitor_20000
>> > >> (call=4,
>> > >> > rc=7) complete
>> > >> > lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for
>> > client
>> > >> 6127,
>> > >> > its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon]
>> > CRM_meta_timeout=[60000]
>> > >> > crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7
>> > (mapped
>> > >> from 2)
>> > >> > lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
>> > >> > crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
>> > >> > key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
>> > >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation
>> > mysqld_4_monitor_20000
>> > >> (call=4,
>> > >> > rc=-2) Cancelled
>> > >> > lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are
>> > >> needed.
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>> > >> >
>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with
>> return
>> > >> code 0.
>> > >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0
>> > >> (call=5, rc=0)
>> > >> > complete
>> > >> >
>> > >> >
>> > >>
>> >
>> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
>> > >> > $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
>> > >> >
>> > >> > $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
>> > >> >
>>
> === $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===
>
> _______________________________________________
> 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


tadashi.1027 at gmail

Oct 15, 2009, 10:50 PM

Post #14 of 15 (1225 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B

$B%j%=!<%9$,0[.>o=*N;$r#32s$^$G$H$70J2<$N$h$&$K [at] _D$7$^$7$?!#(B
hoge01$B$N%9%3%"!!(B1500
hoge02$B$N%9%3%"!!(B1000
default-resource-stickness$B!!(B400
default-resource-failure-stickness$B!!(B-500

default-resource-stickness$B$N [at] _D$OMW$k$N$+5?Ld$G$9$,!"(B
$B$3$l$G%j%=!<%90[.>o=*N;(B3$B2s$^$G$O<+J,$G5/F0$r;n$_!"(B
4$B2sL\$G%U%'%$%k%*!<%P$9$k$h$&$K$J$j$^$9!#(B

$B;29M$^$G$K;d$N4D6-$G;HMQ$7$F$$$k(Bcib.xml$B$r:\$;$^$9!#(B

<cib admin_epoch="0" generated="true" have_quorum="true"
ignore_dtd="false" num_peers="2" cib_feature_revision="2.0"
crm_feature_set="2.0" ccm_transition="2" epoch="149"
dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3"
cib-last-written="Sat Oct 17 19:22:10 2009">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-symmetric-cluster"
name="symmetric-cluster" value="true"/>
<nvpair id="cib-bootstrap-options-no-quorum-policy"
name="no-quorum-policy" value="stop"/>
<nvpair name="default-resource-stickiness"
id="cib-bootstrap-options-default-resource-stickiness" value="400"/>
<nvpair name="default-resource-failure-stickiness"
id="cib-bootstrap-options-default-resource-failure-stickiness"
value="-500"/>
<nvpair id="cib-bootstrap-options-stonith-enabled"
name="stonith-enabled" value="false"/>
<nvpair id="cib-bootstrap-options-stonith-action"
name="stonith-action" value="reboot"/>
<nvpair id="cib-bootstrap-options-startup-fencing"
name="startup-fencing" value="true"/>
<nvpair id="cib-bootstrap-options-stop-orphan-resources"
name="stop-orphan-resources" value="true"/>
<nvpair id="cib-bootstrap-options-stop-orphan-actions"
name="stop-orphan-actions" value="true"/>
<nvpair id="cib-bootstrap-options-remove-after-stop"
name="remove-after-stop" value="false"/>
<nvpair id="cib-bootstrap-options-short-resource-names"
name="short-resource-names" value="true"/>
<nvpair id="cib-bootstrap-options-transition-idle-timeout"
name="transition-idle-timeout" value="5min"/>
<nvpair id="cib-bootstrap-options-default-action-timeout"
name="default-action-timeout" value="20s"/>
<nvpair id="cib-bootstrap-options-is-managed-default"
name="is-managed-default" value="true"/>
<nvpair id="cib-bootstrap-options-cluster-delay"
name="cluster-delay" value="60s"/>
<nvpair id="cib-bootstrap-options-pe-error-series-max"
name="pe-error-series-max" value="-1"/>
<nvpair id="cib-bootstrap-options-pe-warn-series-max"
name="pe-warn-series-max" value="-1"/>
<nvpair id="cib-bootstrap-options-pe-input-series-max"
name="pe-input-series-max" value="-1"/>
<nvpair id="cib-bootstrap-options-dc-version"
name="dc-version" value="2.1.4-fb84f606a422 tip"/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes>
<node id="dbdb4396-8c57-4f70-878f-a6984ec7d554"
uname="hoge01.example.com" type="normal"/>
<node id="91e0db86-1aaf-47a9-a80f-bc198c4c8969"
uname="hoge02.example.com" type="normal">
<instance_attributes id="nodes-91e0db86-1aaf-47a9-a80f-bc198c4c8969">
<attributes>
<nvpair id="standby-91e0db86-1aaf-47a9-a80f-bc198c4c8969"
name="standby" value="off"/>
</attributes>
</instance_attributes>
</node>
</nodes>
<resources>
<group id="test-db">
<primitive class="ocf" id="IPaddr2_1" provider="heartbeat"
type="IPaddr2">
<operations>
<op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
</operations>
<instance_attributes id="IPaddr2_1_inst_attr">
<attributes>
<nvpair id="IPaddr2_1_attr_0" name="ip" value="172.31.208.220"/>
<nvpair id="IPaddr2_1_attr_1" name="nic" value="eth0"/>
<nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" value="24"/>
<nvpair id="IPaddr2_1_attr_3" name="broadcast"
value="172.31.208.255"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="heartbeat" id="drbddisk_2"
provider="heartbeat" type="drbddisk">
<operations>
<op id="drbddisk_2_mon" interval="120s" name="monitor"
timeout="60s"/>
</operations>
<instance_attributes id="drbddisk_2_inst_attr">
<attributes>
<nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" id="Filesystem_3" provider="heartbeat"
type="Filesystem">
<operations>
<op id="Filesystem_3_mon" interval="120s" name="monitor"
timeout="60s"/>
</operations>
<instance_attributes id="Filesystem_3_inst_attr">
<attributes>
<nvpair id="Filesystem_3_attr_0" name="device"
value="/dev/drbd0"/>
<nvpair id="Filesystem_3_attr_1" name="directory"
value="/var/lib/mysql"/>
<nvpair id="Filesystem_3_attr_2" name="fstype" value="ext3"/>
<nvpair id="Filesystem_3_attr_3" name="options"
value="noatime,defaults"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="lsb" id="mysqld_4" provider="heartbeat"
type="mysqld">
<operations>
<op id="mysqld_4_mon" interval="10s" name="monitor" timeout="60s"/>
</operations>
<meta_attributes id="mysqld_4_meta_attrs">
<attributes>
<nvpair id="mysqld_4_metaattr_target_role"
name="target_role" value="started"/>
</attributes>
</meta_attributes>
</primitive>
</group>
</resources>
<constraints>
<rsc_location id="pingd" rsc="test-db">
<rule id="pingd:connected:rule" score="-INFINITY" boolean_op="or">
<expression id="pingd:expr:undefined"
attribute="default_ping_set" operation="not_defined"/>
<expression id="pingd:expr:zero"
attribute="default_ping_set" operation="lte" value="0"/>
</rule>
</rsc_location>
<rsc_location id="location_hoge01" rsc="test-db">
<rule id="prefered_location_hoge01" score="1000">
<expression attribute="#uname"
id="prefered_location_hoge01_expr" operation="eq"
value="hoge01.example.com"/>
</rule>
</rsc_location>
<rsc_location id="location_hoge02" rsc="test-db">
<rule id="prefered_location_hoge02" score="500">
<expression attribute="#uname"
id="prefered_location_hoge02_expr" operation="eq"
value="hoge02.example.com"/>
</rule>
</rsc_location>
</constraints>
</configuration>
</cib>


$B%a%$%H%j%C%/%9;3FbMM!"$*K;$7$$$H$3$m$4BP1~$7$F$$$?$@$-(B
$BK\Ev$K$"$j$,$H$&$4$6$$$^$7$?!#(B



2009$BG/(B10$B7n(B15$BF|(B17:04 $B0p3@(B <tadashi.1027 [at] gmail>:
> $B%a%$%H%j%C%/%9!!;3FbMM(B
>
> $B$I$&$b$"$j$,$H$&$4$6$$$^$9!#(B
>
> $B0J2<;29M$K$5$;$F$$$?$@$-$^$9!#(B
>
>
> 2009$BG/(B10$B7n(B15$BF|(B17:00 <renayama19661014 [at] ybb>:
>> $B0p3@$5$s(B
>>
>> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>>
>> http://www.linux-ha.org/ja/v2/faq_ja
>>
>> $B$K5-:\$,$"$k$h$&$G$9!#(B
>>
>> --- renayama19661014 [at] ybb wrote:
>>
>>> $B0p3@$5$s(B
>>>
>>> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>>>
>>> $B$9$$$^$;$s!#(B
>>>
>>> default-resource-stickiness,default-resource-failure-stickiness$B$H$N4X78$H3F%N!<%I$N%9%3%"CM(B
>>> $B$rMQ$$$F7W;;$5$l$F$$$?$+$H;W$&$N$G$9$,!">\:Y$,$I$3$K5-:\$5$l$F$$$?$+3P$($F$$$^$;$s!#(B
>>>
>>> $BK\2H$N%5%$%H$+!"(BML$B$K$"$C$?$+$bCN$l$^$;$s!#(B
>>>
>>>
>>> --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>>>
>>> > $B%a%$%H%j%C%/%9!!;3FbMM(B
>>> >
>>> > $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>>> >
>>> > $B$9$_$^$;$s!#(B
>>> > FO$B$,<B;\$5$l$:!"<+J,<+?H$G%j%=!<%9$r:F5/F0$7$F$7$^$&$3$H$G$9!#(B
>>> >
>>> > $B87L)$K8@$&$H<+?H$G%j%=!<%9:F5/F0$7$F$b$$$$$N$G$9$,!"(B
>>> > $B$=$l$,L58B$K7+$jJV$5$l$k$H:$$C$F$7$^$$$^$9!#(B
>>> >
>>> > $B$"$k0lDj$N2s?t(B($BNc$($P(B3$B2s(B)$B:F5/F0$K<:GT$7$?>l9g!"(BFO$B$,9T$o$l$l$PK>$^$7$$$H;W$C$F$*$j$^$9!#(B
>>> >
>>> > $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>>> >
>>> >
>>> > 2009$BG/(B10$B7n(B15$BF|(B16:22 <renayama19661014 [at] ybb>:
>>> > > $B0p3@$5$s(B
>>> > >
>>> > > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>>> > >
>>> > > $B$H$j$"$($:!"=$@5$GF0$/$h$&$K$J$i$l$?$h$&$G2?$h$j$G$9!#(B
>>> > >
>>> > >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
>>> > > $B$9$$$^$;$s!#(B
>>> > > $B>e5-$N0UL#$,$h$/$o$+$i$J$$$N$G$9$,!"(Bmonitor$B$K<:GT$7$?;~$J$I$N(Brestart$B$H$$$&0UL#$G$7$g$&$+!)(B
>>> > >
>>> > > $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>> > >
>>> > > --- $B0p3@(B <tadashi.1027 [at] gmail> wrote:
>>> > >
>>> > >> $B%a%$%H%j%C%/%9!!;3FbMM(B
>>> > >>
>>> > >> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>>> > >>
>>> > >> $B$=$&$$$C$?0UL#$G$9$H$4Ds<($$$?$@$$$?%9%/%j%W%H$HF1$82U=j$r=$@5$7$^$7$?!#(B
>>> > >> $B;d$N4D6-0J2<$K$J$j$^$9!#(B
>>> > >>
>>> > >> mysql-server-5.1.39-1.el5.remi
>>> > >> mysql-libs-5.1.39-1.el5.remi
>>> > >> mysqlclient15-5.0.67-1.el5.remi
>>> > >> mysql-5.1.39-1.el5.remi
>>> > >>
>>> > >> kill$B$7$?;~E@$G(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$K(Bpid$B$,5-=R$5$l$?$^$^%W%m%;%9$,Mn$A$k$N$G!"(B
>>> > >> kill$B$7$?8e$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$r:o=|$7$?$i!"0J2<$O5/$3$i$J$/$J$j$^$7$?!#(B
>>> > >>
>>> > >> Failed actions:
>>> > >> mysqld_4_monitor_120000 (node=hoge01.example.com, call=13, rc=7): complete
>>> > >> mysqld_4_stop_0 (node=hoge01.example.com, call=14, rc=1): complete
>>> > >>
>>> > >>
>>> > >>
>>> $B5/F0%9%/%j%W%H$b5/F0;~$K(B/var/run/mysqld/mysqld.pid$B%U%!%$%k$NM-L5$r3NG'$7!"$"$l$P:o=|$9$k$h$&(B
>>> > >> $B0J2<$rDI5-$7$^$7$?!#5/F0%9%/%j%W%H$bE:IU$$$?$7$^$9!#(B
>>> > >>
>>> > >> $B!ZDI5-FbMF![(B
>>> > >> if [ -f $mypidfile ]; then
>>> > >> rm -f $mypidfile
>>> > >> fi
>>> > >>
>>> > >> $B$^$?!"(B/var/log/ha-debug$B$K$b(B
>>> > >> crmd[5673]: 2009/10/16_23:57:05 info: process_lrm_event: LRM operation
>>> > >> mysqld_4_stop_0 (call=11, rc=0) complete
>>> > >>
>>> > >> $B$,=PNO$5$l$^$7$?!#(B
>>> > >>
>>> > >> $B%m!<%+%k%j%+%P%j$,<B9T$5$l$J$$$h$&$K$9$k$K$O$I$&$7$?$i$$$$$G$7$g$&$+!)(B
>>> > >>
>>> > >> $B0J>e!"59$7$/$*4j$$$$$?$7$^$9!#(B
>>> > >>
>>> > >>
>>> > >>
>>> > >> 2009$BG/(B10$B7n(B15$BF|(B15:55 <renayama19661014 [at] ybb>:
>>> > >> > $B0p3@$5$s(B
>>> > >> >
>>> > >> > $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
>>> > >> >
>>> > >> >
>>> $BA4$/F1$84D6-$G$O$"$j$^$;$s$,!"(BRedhat5.3(x86)$B$N(B2$BBf$N%N!<%I$G=$@5$7$?(Bmysqld$B$G;n$7$F$_$^$7$?!#(B
>>> > >> > $BMxMQ$7$?(Bmysqld$B$O!"(B
>>> > >> >
>>> > >> > mysql-devel-5.0.45-7.el5
>>> > >> > mysql-server-5.0.45-7.el5
>>> > >> > mysql-5.0.45-7.el5
>>> > >> >
>>> > >> > $B$G!"(BRedhat$BIUB0$N$^$^$G$9!#(B
>>> > >> >
>>> > >> >
>>> > >> > $B;d$N;H$C$?(Bmysqld$B$G$O!"0J2<$N$h$&$J=$@5$r$9$k$H@5$7$/(Bmysqld$B$N(Bkill$B8e$K#F#O$5$l$^$7$?!#(B
>>> > >> >
>>> > >> > $B!z(BFO$B8e$NMM;R(B
>>> > >> > ============
>>> > >> > Last updated: Thu Oct 15 15:52:40 2009
>>> > >> > Current DC: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79)
>>> > >> > 2 Nodes configured.
>>> > >> > 1 Resources configured.
>>> > >> > ============
>>> > >> >
>>> > >> > Node: rh53-2 (02897011-0037-46b0-9457-92bb84d0ec79): online
>>> > >> > Node: rh53-1 (64e30652-8f9c-4b0a-9abd-4da9272c623f): online
>>> > >> >
>>> > >> > Resource Group: grpDummy
>>> > >> > mysqld_4 (lsb:mysqld): Started rh53-2
>>> > >> >
>>> > >> > Failed actions:
>>> > >> > mysqld_4_monitor_20000 (node=rh53-1, call=4, rc=7): complete
>>> > >> >
>>> > >> >
>>> > >> > $B!z%9%/%j%W%H$N=$@5(B
>>> > >> > stop(){
>>> > >> > MYSQLPID=`cat "$mypidfile" 2>/dev/null `
>>> > >> > echo "pid : $MYSQLPID" >> /tmp/test.log
>>> > >> > if [ -n "$MYSQLPID" ]; then
>>> > >> > /bin/kill "$MYSQLPID" >/dev/null 2>&1
>>> > >> > ret=$?
>>> > >> > if [ $ret -eq 0 ]; then
>>> > >> > STOPTIMEOUT=60
>>> > >> > while [ $STOPTIMEOUT -gt 0 ]; do
>>> > >> > /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
>>> > >> > sleep 1
>>> > >> > let STOPTIMEOUT=${STOPTIMEOUT}-1
>>> > >> > done
>>> > >> > if [ $STOPTIMEOUT -eq 0 ]; then
>>> > >> > echo "Timeout error occurred trying to stop MySQL Daemon."
>>> > >> > ret=1
>>> > >> > echo "Timeout error occurred trying to stop MySQL Daemon." >>
>>> > /tmp/test.log
>>> > >> > action $"Stopping $prog: " /bin/false
>>> > >> > else
>>> > >> > rm -f /var/lock/subsys/mysqld
>>> > >> > rm -f "$socketfile"
>>> > >> > action $"Stopping $prog: " /bin/true
>>> > >> > fi
>>> > >> > else
>>> > >> > echo "kill ret=$ret" >> /tmp/test.log
>>> > >> > action $"Stopping $prog: " /bin/false
>>> > >> > ret=0$B!!!z$3$3(B
>>> > >> > fi
>>> > >> > $B!J>JN,!K(B
>>> > >> >
>>> > >> > }
>>> > >> >
>>> > >> > $B$^$?!"%m%0$K$O0J2<$N$h$&$J=PNO$,$5$l$k$O$:$G$9!#!J(Bkill$B$7$?%N!<%IB&(B)
>>> > >> >
>>> > >> > crmd[6127]: 2009/10/15_15:46:28 info: process_lrm_event: LRM operation
>>> > mysqld_4_monitor_20000
>>> > >> (call=4,
>>> > >> > rc=7) complete
>>> > >> > lrmd[6124]: 2009/10/15_15:46:28 info: operation monitor[4] on lsb::mysqld::mysqld_4 for
>>> > client
>>> > >> 6127,
>>> > >> > its parameters: CRM_meta_interval=[20000] CRM_meta_id=[mysqld_4_mon]
>>> > CRM_meta_timeout=[60000]
>>> > >> > crm_feature_set=[2.0] CRM_meta_name=[monitor] : pid [6401] exited with return code 7
>>> > (mapped
>>> > >> from 2)
>>> > >> > lrmd[6124]: 2009/10/15_15:46:28 info: Resource Agent output: []
>>> > >> > crmd[6127]: 2009/10/15_15:46:29 info: do_lrm_rsc_op: Performing op=mysqld_4_stop_0
>>> > >> > key=2:4:0:02f461b5-b87c-4329-9b0d-0086d2ecb37c)
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: rsc:mysqld_4: stop
>>> > >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation
>>> > mysqld_4_monitor_20000
>>> > >> (call=4,
>>> > >> > rc=-2) Cancelled
>>> > >> > lrmd[6439]: 2009/10/15_15:46:29 WARN: For LSB init script, no additional parameters are
>>> > >> needed.
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) MySQL $B$rDd;_Cf(B:
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) [
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) $B<:GT(B
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout) ]
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: RA output: (mysqld_4:stop:stdout)
>>> > >> >
>>> > >> > lrmd[6124]: 2009/10/15_15:46:29 info: Managed mysqld_4:stop process 6439 exited with
>>> return
>>> > >> code 0.
>>> > >> > crmd[6127]: 2009/10/15_15:46:29 info: process_lrm_event: LRM operation mysqld_4_stop_0
>>> > >> (call=5, rc=0)
>>> > >> > complete
>>> > >> >
>>> > >> >
>>> > >>
>>> >
>>> $B$*;H$$$K$J$C$F$$$k(Bmysql$B$N0c$$$K$h$C$F%9%/%j%W%H$N:90[$,$"$k$+$bCN$l$^$;$s$,!";d$N;H$C$?(Bmysql$B$G$O(Brc=0
>>> > >> > $B$rJV$9$3$H$G#F#O$O2DG=$H$J$j$^$9!#(B
>>> > >> >
>>> > >> > $B:#0lEY!"%9%/%j%W%H$N=$@5$J$I3NG'$5$l$?J}$,$h$$$+$H;W$$$^$9!#(B
>>> > >> >
>>>
>> === $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===
>>
>> _______________________________________________
>> 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


renayama19661014 at ybb

Oct 15, 2009, 11:25 PM

Post #15 of 15 (1227 views)
Permalink
Re: $B%j%=!<%9Dd;_;~$N%U(B$B%'%$%k%*!<%P$K$D$$$F(B [In reply to]

$B0p3@$5$s(B

$B$3$s$K$A$O!"%a%$%H%j%C%/%9$N;3Fb$G$9!#(B

$B$44uK>$NF0:n$,$&$^$/<B8==PMh$?$h$&$G$9$M!#(B

$B$^$?!"$4<ALd$J$I$N5!2q$,$"$j$^$7$?$i!"$*Ez$($5$;$FD:$-$^$9!#(B


--- $B0p3@(B <tadashi.1027 [at] gmail> wrote:

> $B$*@$OC$K$J$j$^$9!#0p3@$G$9!#(B
>
> $B%j%=!<%9$,0[>o=*N;$r#32s$^$G$H$70J2<$N$h$&$K [at] _D$7$^$7$?!#(B
> hoge01$B$N%9%3%"!!(B1500
> hoge02$B$N%9%3%"!!(B1000
> default-resource-stickness$B!!(B400
> default-resource-failure-stickness$B!!(B-500
>
> default-resource-stickness$B$N [at] _D$OMW$k$N$+5?Ld$G$9$,!"(B
> $B$3$l$G%j%=!<%90[>o=*N;(B3$B2s$^$G$O<+J,$G5/F0$r;n$_!"(B
> 4$B2sL\$G%U%'%$%k%*!<%P$9$k$h$&$K$J$j$^$9!#(B
>
> $B;29M$^$G$K;d$N4D6-$G;HMQ$7$F$$$k(Bcib.xml$B$r:\$;$^$9!#(B
>
> <cib admin_epoch="0" generated="true" have_quorum="true"
> ignore_dtd="false" num_peers="2" cib_feature_revision="2.0"
> crm_feature_set="2.0" ccm_transition="2" epoch="149"
> dc_uuid="91e0db86-1aaf-47a9-a80f-bc198c4c8969" num_updates="3"
> cib-last-written="Sat Oct 17 19:22:10 2009">
> <configuration>
> <crm_config>
> <cluster_property_set id="cib-bootstrap-options">
> <attributes>
> <nvpair id="cib-bootstrap-options-symmetric-cluster"
> name="symmetric-cluster" value="true"/>
> <nvpair id="cib-bootstrap-options-no-quorum-policy"
> name="no-quorum-policy" value="stop"/>
> <nvpair name="default-resource-stickiness"
> id="cib-bootstrap-options-default-resource-stickiness" value="400"/>
> <nvpair name="default-resource-failure-stickiness"
> id="cib-bootstrap-options-default-resource-failure-stickiness"
> value="-500"/>
> <nvpair id="cib-bootstrap-options-stonith-enabled"
> name="stonith-enabled" value="false"/>
> <nvpair id="cib-bootstrap-options-stonith-action"
> name="stonith-action" value="reboot"/>
> <nvpair id="cib-bootstrap-options-startup-fencing"
> name="startup-fencing" value="true"/>
> <nvpair id="cib-bootstrap-options-stop-orphan-resources"
> name="stop-orphan-resources" value="true"/>
> <nvpair id="cib-bootstrap-options-stop-orphan-actions"
> name="stop-orphan-actions" value="true"/>
> <nvpair id="cib-bootstrap-options-remove-after-stop"
> name="remove-after-stop" value="false"/>
> <nvpair id="cib-bootstrap-options-short-resource-names"
> name="short-resource-names" value="true"/>
> <nvpair id="cib-bootstrap-options-transition-idle-timeout"
> name="transition-idle-timeout" value="5min"/>
> <nvpair id="cib-bootstrap-options-default-action-timeout"
> name="default-action-timeout" value="20s"/>
> <nvpair id="cib-bootstrap-options-is-managed-default"
> name="is-managed-default" value="true"/>
> <nvpair id="cib-bootstrap-options-cluster-delay"
> name="cluster-delay" value="60s"/>
> <nvpair id="cib-bootstrap-options-pe-error-series-max"
> name="pe-error-series-max" value="-1"/>
> <nvpair id="cib-bootstrap-options-pe-warn-series-max"
> name="pe-warn-series-max" value="-1"/>
> <nvpair id="cib-bootstrap-options-pe-input-series-max"
> name="pe-input-series-max" value="-1"/>
> <nvpair id="cib-bootstrap-options-dc-version"
> name="dc-version" value="2.1.4-fb84f606a422 tip"/>
> </attributes>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="dbdb4396-8c57-4f70-878f-a6984ec7d554"
> uname="hoge01.example.com" type="normal"/>
> <node id="91e0db86-1aaf-47a9-a80f-bc198c4c8969"
> uname="hoge02.example.com" type="normal">
> <instance_attributes id="nodes-91e0db86-1aaf-47a9-a80f-bc198c4c8969">
> <attributes>
> <nvpair id="standby-91e0db86-1aaf-47a9-a80f-bc198c4c8969"
> name="standby" value="off"/>
> </attributes>
> </instance_attributes>
> </node>
> </nodes>
> <resources>
> <group id="test-db">
> <primitive class="ocf" id="IPaddr2_1" provider="heartbeat"
> type="IPaddr2">
> <operations>
> <op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> <instance_attributes id="IPaddr2_1_inst_attr">
> <attributes>
> <nvpair id="IPaddr2_1_attr_0" name="ip" value="172.31.208.220"/>
> <nvpair id="IPaddr2_1_attr_1" name="nic" value="eth0"/>
> <nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" value="24"/>
> <nvpair id="IPaddr2_1_attr_3" name="broadcast"
> value="172.31.208.255"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive class="heartbeat" id="drbddisk_2"
> provider="heartbeat" type="drbddisk">
> <operations>
> <op id="drbddisk_2_mon" interval="120s" name="monitor"
> timeout="60s"/>
> </operations>
> <instance_attributes id="drbddisk_2_inst_attr">
> <attributes>
> <nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive class="ocf" id="Filesystem_3" provider="heartbeat"
> type="Filesystem">
> <operations>
> <op id="Filesystem_3_mon" interval="120s" name="monitor"
> timeout="60s"/>
> </operations>
> <instance_attributes id="Filesystem_3_inst_attr">
> <attributes>
> <nvpair id="Filesystem_3_attr_0" name="device"
> value="/dev/drbd0"/>
> <nvpair id="Filesystem_3_attr_1" name="directory"
> value="/var/lib/mysql"/>
> <nvpair id="Filesystem_3_attr_2" name="fstype" value="ext3"/>
> <nvpair id="Filesystem_3_attr_3" name="options"
> value="noatime,defaults"/>
> </attributes>
> </instance_attributes>
> </primitive>
> <primitive class="lsb" id="mysqld_4" provider="heartbeat"
> type="mysqld">
> <operations>
> <op id="mysqld_4_mon" interval="10s" name="monitor" timeout="60s"/>
> </operations>
> <meta_attributes id="mysqld_4_meta_attrs">
> <attributes>
> <nvpair id="mysqld_4_metaattr_target_role"
> name="target_role" value="started"/>
> </attributes>
> </meta_attributes>
> </primitive>
> </group>
> </resources>
> <constraints>
> <rsc_location id="pingd" rsc="test-db">
> <rule id="pingd:connected:rule" score="-INFINITY" boolean_op="or">
> <expression id="pingd:expr:undefined"
> attribute="default_ping_set" operation="not_defined"/>
> <expression id="pingd:expr:zero"
> attribute="default_ping_set" operation="lte" value="0"/>
> </rule>
> </rsc_location>
> <rsc_location id="location_hoge01" rsc="test-db">
> <rule id="prefered_location_hoge01" score="1000">
> <expression attribute="#uname"
> id="prefered_location_hoge01_expr" operation="eq"
> value="hoge01.example.com"/>
> </rule>
> </rsc_location>
> <rsc_location id="location_hoge02" rsc="test-db">
> <rule id="prefered_location_hoge02" score="500">
> <expression attribute="#uname"
> id="prefered_location_hoge02_expr" operation="eq"
> value="hoge02.example.com"/>
> </rule>
> </rsc_location>
> </constraints>
> </configuration>
> </cib>
>
>
> $B%a%$%H%j%C%/%9;3FbMM!"$*K;$7$$$H$3$m$4BP1~$7$F$$$?$@$-(B
> $BK\Ev$K$"$j$,$H$&$4$6$$$^$7$?!#(B
>
>
>
> 2009$BG/(B10$B7n(B15$BF|(B17:04 $B0p3@(B <tadashi.1027 [at] gmail>:
> > $B%a%$%H%j%C%/%9!!;3FbMM(B
> >
> > $B$I$&$b$"$j$,$H$&$4$6$$$^$9!#(B
> >
> > $B0J2<;29M$K$5$;$F$$$?$@$-$^$9!#(B
> >
> >
> > 2009$BG/(B10$B7n(B15$BF|(B17:00 <renayama19661014 [at] ybb>:
> >> $B0p3@$5$s(B
> >>
> >> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >>
> >> http://www.linux-ha.org/ja/v2/faq_ja
> >>
> >> $B$K5-:\$,$"$k$h$&$G$9!#(B
> >>
> >> --- renayama19661014 [at] ybb wrote:
> >>
> >>> $B0p3@$5$s(B
> >>>
> >>> $B$3$s$K$A$O!#%a%$%H%j%C%/%9$N;3Fb$G$9!#(B
> >>>
> >>> $B$9$$$^$;$s!#(B
> >>>
> >>> default-resource-stickiness,default-resource-failure-stickiness$B$H$N4X78$H3F%N!<%I$N%9%3%"CM(B
> >>> $B$rMQ$$$F7W;;$5$l$F$$$?$+$H;W$&$N$G$9$,!">\:Y$,$I$3$K5-:\$5$l$F$$$?$+3P$($F$$$^$;$s!#(B
> >>>
> >>> $BK\2H$N%5%$%H$+!"(BML$B$K$"$C$?$+$bCN$l$^$;$s!#(B
>
=== $B0J2<$N%a%C%;!<%8$O>JN,$5$l$^$7$?(B ===

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

Linux-HA japanese RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.