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

Mailing List Archive: Linux-HA: Japanese

Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B

 

 

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


eno.jupiter at gmail

Jan 4, 2012, 9:17 PM

Post #1 of 7 (391 views)
Permalink
Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B

$B1]K\$H?=$7$^$9!#(B

DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
$B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
$B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B

$B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
============$B$3$3$+$i(B
Last updated: Thu Jan 5 09:05:38 2012
Stack: Heartbeat
Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
partition with quorum
Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
2 Nodes configured, 2 expected votes
4 Resources configured.
============

Online: [ testdb01 testdb02 ]

pingd_web (ocf::pacemaker:pingd): Started testdb01
Master/Slave Set: ms_drbd_db
drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged) FAILED
drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged) FAILED
Clone Set: clnPingd_db
Started: [ testdb02 testdb01 ]

Failed actions:
drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
not installed
drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
not installed
drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
not installed
drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
not installed
===== $B$3$3$^$G(B

$B"#4D6-(B
CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)

drbd 8.4.1
http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B

Heartbeat 3.0.5-1.1
Pacemaker 1.0.11-1.2
linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B


$B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B

# crm configure show
node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
primitive drbd_db ocf:linbit:drbd \
params drbd_resource="r0" \
op start interval="0s" timeout="240s" on-fail="restart" \
op monitor interval="11s" timeout="60s" on-fail="restart" \
op monitor interval="10s" role="Master" timeout="60s"
on-fail="restart" \
op stop interval="0s" timeout="100s" on-fail="block"
primitive fs_db ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/databd" fstype="ext4" \
op start interval="0s" timeout="60s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="60s" on-fail="block"
primitive ip_db ocf:heartbeat:IPaddr2 \
params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
op start interval="0s" timeout="90s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="100s" on-fail="block"
primitive pingd_db ocf:pacemaker:pingd \
params name="default_ping_set" host_list="172.25.33.74"
multiplier="100" dampen="0" \
meta migration-threshold="10" \
op start interval="0s" timeout="90s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="100s" on-fail="block"
primitive pingd_web ocf:pacemaker:pingd \
params name="default_ping_set" host_list="192.168.100.1"
multiplier="100" dampen="0" \
meta migration-threshold="10" \
op start interval="0s" timeout="90s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="100s" on-fail="block"
primitive postgresql ocf:heartbeat:pgsql \
params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
pgdba="postgres" pgport="5432" pgdb="template1" \
op start interval="0s" timeout="120s" on-fail="restart" \
op monitor interval="10s" timeout="60s" on-fail="restart" \
op stop interval="0s" timeout="120s" on-fail="block"
group group_db fs_db ip_db postgresql
ms ms_drbd_db drbd_db \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
clone clnPingd_db pingd_db \
meta clone-max="2" clone-node-max="1"
location group_db-location group_db \
rule $id="group_db-location-rule" 200: #uname eq testdb01 \
rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
rule $id="group_db-location-rule-1" -inf: defined
default_ping_set or default_ping_set lt 100
location master-location_db ms_drbd_db \
rule $id="master-location_db-rule" 200: #uname eq testdb01 \
rule $id="master-location_db-rule-0" 100: #uname eq testdb02 \
rule $id="master-location_db-rule-1" $role="master" -inf:
defined default_ping_set or default_ping_set lt 100
colocation clnPingd_db-colocation 1000: group_db clnPingd_db
colocation db_on_drbd inf: group_db ms_drbd_db:Master
order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
property $id="cib-bootstrap-options" \
cluster-infrastructure="Heartbeat" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
startup-fencing="false" \
dc-deadtime="20s" \
dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
rsc_defaults $id="rsc-options" \
resource-stickiness="INFINITY" \
migration-threshold="1"
-----------------------------------------------------------------
ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
$B$NB8:_$O3NG'$7$?$7$^$?!#(B
drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B

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

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


takehiro.dreamizm at gmail

Jan 5, 2012, 8:05 AM

Post #2 of 7 (342 views)
Permalink
Re: Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B [In reply to]

$B1]K\(B $BMM(B

$B>>Eg$H?=$7$^$9!#(B

> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set or default_ping_set lt 100
$B4*0c$$$G$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
$B$3$NItJ,$O!"!V(B"master"$B$N%m!<%k$KBP$7$F%9%3%"(B"-inf"$B$rM?$($k(B: pingd$B$,F0$$$F$$$k(B $B$^$?$O(B ping$B$,DL$i$J$$(B $B;~!W(B
$B$@$H;W$&$N$G$9$,!"(Bpingd$B$,F0$$$F$$$?$i(Bmaster$B$K>:3J$G$-$J$$$H$$$&F0:n$K$J$j$^$;$s$+!)(B
group_db-location $B$bF1MM$K8+$($^$9!#(B



2012$BG/(B1$B7n(B5$BF|(B15:37 K.Enomoto <eno.jupiter [at] gmail>:
> $B1]K\$G$9!#(B
> $B?=$7Lu$"$j$^$;$s!#(B
>
> drbd_resource $B$G;XDj$7$?CM$,!"(Bdrbd $B$GDj5A$7$?(Bresource$BL>$H0c$C$F$$$^$7$?!#(B
>> primitive drbd_db ocf:linbit:drbd params drbd_resource="r0"
> $B;d$N%_%9$G$9!#(B
>
> $B$3$l$r=$@5$7$?$H$3$m!"2<5-$N$h$&$K$J$j$^$7$?!#(B
> ============ $B$3$3$+$i(B
> Last updated: Thu Jan 5 15:27:59 2012
> Stack: Heartbeat
> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
> partition with quor
> um
> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
> 2 Nodes configured, 2 expected votes
> 4 Resources configured.
> ============
>
> Online: [ testdb02 testdb01 ]
>
> pingd_web (ocf::pacemaker:pingd): Started testdb02
> Master/Slave Set: ms_drbd_db
> Slaves: [ testdb01 testdb02 ]
> Clone Set: clnPingd_db
> Started: [ testdb01 testdb02 ]
> ======= $B$3$3$^$G(B
>
> $B$?$@!"(Bdrbd $B$N(Bstatus $B$r3NG'$9$k$H(B
> drbd driver loaded OK; device status:
> version: 8.4.1 (api:1/proto:86-100)
> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
> eno [at] testdb0, 2011-12-27 17:22:50
> m:res cs ro ds p mounted fstype
> 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
>
> $B$H!"$J$C$F$$$^$9!#(B
> $B$3$l$K4X$7$F$O!"$3$l$+$i3NG'$7$^$9$,!"3NG'$9$Y$-%]%$%s%H$O$"$j$^$9$+!)(B
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
>
> 2012$BG/(B1$B7n(B5$BF|(B14:25 $B4d:j!w%5!<%I%&%'%"(B <iwasaki [at] 3ware>:
>> $B4d:j$G$9(B
>>
>> $B%(%i!<%m%0$O$I$N$h$&$K=P$F$^$9$+!)(B
>> not installed $B$N%(%i!<$,=P$F$$$k$N$G!"(Bdrbd*$B7O$N%3%^%s%I$,<u$1IU$1$i$l$F$$$J$$$+!"(B
>> $B8=>u$N(BOCF$B$@$H(BDRBD$B$N(B8.4.x$B$KBP1~$G$-$F$$$J$$$+$b$7$l$^$;$s!#(B
>> $B$3$A$i$G$b>/$73NG'$7$F$_$^$9!<(B
>>
>> On Thu, 5 Jan 2012 14:17:07 +0900, K.Enomoto wrote:
>>> $B1]K\$H?=$7$^$9!#(B
>>>
>>> DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
>>> $B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
>>> $B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B
>>>
>>> $B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
>>> ============$B$3$3$+$i(B
>>> Last updated: Thu Jan 5 09:05:38 2012
>>> Stack: Heartbeat
>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>> partition with quorum
>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>> 2 Nodes configured, 2 expected votes
>>> 4 Resources configured.
>>> ============
>>>
>>> Online: [ testdb01 testdb02 ]
>>>
>>> pingd_web (ocf::pacemaker:pingd): Started testdb01
>>> Master/Slave Set: ms_drbd_db
>>> drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged)
>>> FAILED
>>> drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged)
>>> FAILED
>>> Clone Set: clnPingd_db
>>> Started: [ testdb02 testdb01 ]
>>>
>>> Failed actions:
>>> drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
>>> not installed
>>> drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
>>> not installed
>>> drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
>>> not installed
>>> drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
>>> not installed
>>> ===== $B$3$3$^$G(B
>>>
>>> $B"#4D6-(B
>>> CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)
>>>
>>> drbd 8.4.1
>>> http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B
>>>
>>> Heartbeat 3.0.5-1.1
>>> Pacemaker 1.0.11-1.2
>>> linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B
>>>
>>>
>>> $B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B
>>>
>>> # crm configure show
>>> node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
>>> node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
>>> primitive drbd_db ocf:linbit:drbd \
>>> params drbd_resource="r0" \
>>> op start interval="0s" timeout="240s" on-fail="restart" \
>>> op monitor interval="11s" timeout="60s" on-fail="restart" \
>>> op monitor interval="10s" role="Master" timeout="60s"
>>> on-fail="restart" \
>>> op stop interval="0s" timeout="100s" on-fail="block"
>>> primitive fs_db ocf:heartbeat:Filesystem \
>>> params device="/dev/drbd0" directory="/databd" fstype="ext4"
>>> \
>>> op start interval="0s" timeout="60s" on-fail="restart" \
>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>> op stop interval="0s" timeout="60s" on-fail="block"
>>> primitive ip_db ocf:heartbeat:IPaddr2 \
>>> params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>> op stop interval="0s" timeout="100s" on-fail="block"
>>> primitive pingd_db ocf:pacemaker:pingd \
>>> params name="default_ping_set" host_list="172.25.33.74"
>>> multiplier="100" dampen="0" \
>>> meta migration-threshold="10" \
>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>> op stop interval="0s" timeout="100s" on-fail="block"
>>> primitive pingd_web ocf:pacemaker:pingd \
>>> params name="default_ping_set" host_list="192.168.100.1"
>>> multiplier="100" dampen="0" \
>>> meta migration-threshold="10" \
>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>> op stop interval="0s" timeout="100s" on-fail="block"
>>> primitive postgresql ocf:heartbeat:pgsql \
>>> params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
>>> 127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
>>> pgdba="postgres" pgport="5432" pgdb="template1" \
>>> op start interval="0s" timeout="120s" on-fail="restart" \
>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>> op stop interval="0s" timeout="120s" on-fail="block"
>>> group group_db fs_db ip_db postgresql
>>> ms ms_drbd_db drbd_db \
>>> meta master-max="1" master-node-max="1" clone-max="2"
>>> clone-node-max="1" notify="true"
>>> clone clnPingd_db pingd_db \
>>> meta clone-max="2" clone-node-max="1"
>>> location group_db-location group_db \
>>> rule $id="group_db-location-rule" 200: #uname eq testdb01 \
>>> rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
>>> rule $id="group_db-location-rule-1" -inf: defined
>>> default_ping_set or default_ping_set lt 100
>>> location master-location_db ms_drbd_db \
>>> rule $id="master-location_db-rule" 200: #uname eq testdb01 \
>>> rule $id="master-location_db-rule-0" 100: #uname eq testdb02
>>> \
>>> rule $id="master-location_db-rule-1" $role="master" -inf:
>>> defined default_ping_set or default_ping_set lt 100
>>> colocation clnPingd_db-colocation 1000: group_db clnPingd_db
>>> colocation db_on_drbd inf: group_db ms_drbd_db:Master
>>> order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
>>> property $id="cib-bootstrap-options" \
>>> cluster-infrastructure="Heartbeat" \
>>> expected-quorum-votes="2" \
>>> no-quorum-policy="ignore" \
>>> stonith-enabled="false" \
>>> startup-fencing="false" \
>>> dc-deadtime="20s" \
>>> dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
>>> rsc_defaults $id="rsc-options" \
>>> resource-stickiness="INFINITY" \
>>> migration-threshold="1"
>>> -----------------------------------------------------------------
>>> ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
>>> $B$NB8:_$O3NG'$7$?$7$^$?!#(B
>>> drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B
>>>
>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(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



--
----
Takehiro Matsushima

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


eno.jupiter at gmail

Jan 5, 2012, 8:08 PM

Post #3 of 7 (338 views)
Permalink
Re: Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B [In reply to]

$B>>Eg(B $BMM(B

$B1]K\$G$9!#(B
$B$4;XE&$"$j$,$H$&$4$6$$$^$9!#(B
$B!t$h$/M}2r$7$J$$$^$^5-=R$7$F$$$^$7$?!#!J$^$@M}2r$7$F$$$^$;$s!K(B

$BDj5A$7$?$+$C$?$N$O!";`3h4F;kMQ$N#2$D$N%]!<%H$KBP$7$F(Bping $B$,<:GT$7$?>l9g$@$C$?$N$G!"(B
$B8+Ev0c$$$G$9$M!#(B

rule $id="master-location_db-rule-1" $role="master" -inf: defined
default_ping_set and default_ping_set
lt 100
$B$K$9$l$PNI$$$N$+$bM}2r$7$F$$$^$;$s!#(B

$BF|K\8l$G;29M$K$J$k%5%$%HEy$,$"$j$^$7$?$i!"65$($F$/$@$5$$!#(B

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

2012$BG/(B1$B7n(B6$BF|(B1:05 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
> $B1]K\(B $BMM(B
>
> $B>>Eg$H?=$7$^$9!#(B
>
>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set or default_ping_set lt 100
> $B4*0c$$$G$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
> $B$3$NItJ,$O!"!V(B"master"$B$N%m!<%k$KBP$7$F%9%3%"(B"-inf"$B$rM?$($k(B: pingd$B$,F0$$$F$$$k(B $B$^$?$O(B ping$B$,DL$i$J$$(B $B;~!W(B
> $B$@$H;W$&$N$G$9$,!"(Bpingd$B$,F0$$$F$$$?$i(Bmaster$B$K>:3J$G$-$J$$$H$$$&F0:n$K$J$j$^$;$s$+!)(B
> group_db-location $B$bF1MM$K8+$($^$9!#(B
>
>
>
> 2012$BG/(B1$B7n(B5$BF|(B15:37 K.Enomoto <eno.jupiter [at] gmail>:
>> $B1]K\$G$9!#(B
>> $B?=$7Lu$"$j$^$;$s!#(B
>>
>> drbd_resource $B$G;XDj$7$?CM$,!"(Bdrbd $B$GDj5A$7$?(Bresource$BL>$H0c$C$F$$$^$7$?!#(B
>>> primitive drbd_db ocf:linbit:drbd params drbd_resource="r0"
>> $B;d$N%_%9$G$9!#(B
>>
>> $B$3$l$r=$@5$7$?$H$3$m!"2<5-$N$h$&$K$J$j$^$7$?!#(B
>> ============ $B$3$3$+$i(B
>> Last updated: Thu Jan 5 15:27:59 2012
>> Stack: Heartbeat
>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>> partition with quor
>> um
>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>> 2 Nodes configured, 2 expected votes
>> 4 Resources configured.
>> ============
>>
>> Online: [ testdb02 testdb01 ]
>>
>> pingd_web (ocf::pacemaker:pingd): Started testdb02
>> Master/Slave Set: ms_drbd_db
>> Slaves: [ testdb01 testdb02 ]
>> Clone Set: clnPingd_db
>> Started: [ testdb01 testdb02 ]
>> ======= $B$3$3$^$G(B
>>
>> $B$?$@!"(Bdrbd $B$N(Bstatus $B$r3NG'$9$k$H(B
>> drbd driver loaded OK; device status:
>> version: 8.4.1 (api:1/proto:86-100)
>> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
>> eno [at] testdb0, 2011-12-27 17:22:50
>> m:res cs ro ds p mounted fstype
>> 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
>>
>> $B$H!"$J$C$F$$$^$9!#(B
>> $B$3$l$K4X$7$F$O!"$3$l$+$i3NG'$7$^$9$,!"3NG'$9$Y$-%]%$%s%H$O$"$j$^$9$+!)(B
>>
>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>
>>
>> 2012$BG/(B1$B7n(B5$BF|(B14:25 $B4d:j!w%5!<%I%&%'%"(B <iwasaki [at] 3ware>:
>>> $B4d:j$G$9(B
>>>
>>> $B%(%i!<%m%0$O$I$N$h$&$K=P$F$^$9$+!)(B
>>> not installed $B$N%(%i!<$,=P$F$$$k$N$G!"(Bdrbd*$B7O$N%3%^%s%I$,<u$1IU$1$i$l$F$$$J$$$+!"(B
>>> $B8=>u$N(BOCF$B$@$H(BDRBD$B$N(B8.4.x$B$KBP1~$G$-$F$$$J$$$+$b$7$l$^$;$s!#(B
>>> $B$3$A$i$G$b>/$73NG'$7$F$_$^$9!<(B
>>>
>>> On Thu, 5 Jan 2012 14:17:07 +0900, K.Enomoto wrote:
>>>> $B1]K\$H?=$7$^$9!#(B
>>>>
>>>> DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
>>>> $B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
>>>> $B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B
>>>>
>>>> $B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
>>>> ============$B$3$3$+$i(B
>>>> Last updated: Thu Jan 5 09:05:38 2012
>>>> Stack: Heartbeat
>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>> partition with quorum
>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>> 2 Nodes configured, 2 expected votes
>>>> 4 Resources configured.
>>>> ============
>>>>
>>>> Online: [ testdb01 testdb02 ]
>>>>
>>>> pingd_web (ocf::pacemaker:pingd): Started testdb01
>>>> Master/Slave Set: ms_drbd_db
>>>> drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged)
>>>> FAILED
>>>> drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged)
>>>> FAILED
>>>> Clone Set: clnPingd_db
>>>> Started: [ testdb02 testdb01 ]
>>>>
>>>> Failed actions:
>>>> drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
>>>> not installed
>>>> drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
>>>> not installed
>>>> drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
>>>> not installed
>>>> drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
>>>> not installed
>>>> ===== $B$3$3$^$G(B
>>>>
>>>> $B"#4D6-(B
>>>> CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)
>>>>
>>>> drbd 8.4.1
>>>> http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B
>>>>
>>>> Heartbeat 3.0.5-1.1
>>>> Pacemaker 1.0.11-1.2
>>>> linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B
>>>>
>>>>
>>>> $B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B
>>>>
>>>> # crm configure show
>>>> node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
>>>> node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
>>>> primitive drbd_db ocf:linbit:drbd \
>>>> params drbd_resource="r0" \
>>>> op start interval="0s" timeout="240s" on-fail="restart" \
>>>> op monitor interval="11s" timeout="60s" on-fail="restart" \
>>>> op monitor interval="10s" role="Master" timeout="60s"
>>>> on-fail="restart" \
>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>> primitive fs_db ocf:heartbeat:Filesystem \
>>>> params device="/dev/drbd0" directory="/databd" fstype="ext4"
>>>> \
>>>> op start interval="0s" timeout="60s" on-fail="restart" \
>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>> op stop interval="0s" timeout="60s" on-fail="block"
>>>> primitive ip_db ocf:heartbeat:IPaddr2 \
>>>> params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>> primitive pingd_db ocf:pacemaker:pingd \
>>>> params name="default_ping_set" host_list="172.25.33.74"
>>>> multiplier="100" dampen="0" \
>>>> meta migration-threshold="10" \
>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>> primitive pingd_web ocf:pacemaker:pingd \
>>>> params name="default_ping_set" host_list="192.168.100.1"
>>>> multiplier="100" dampen="0" \
>>>> meta migration-threshold="10" \
>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>> primitive postgresql ocf:heartbeat:pgsql \
>>>> params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
>>>> 127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
>>>> pgdba="postgres" pgport="5432" pgdb="template1" \
>>>> op start interval="0s" timeout="120s" on-fail="restart" \
>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>> op stop interval="0s" timeout="120s" on-fail="block"
>>>> group group_db fs_db ip_db postgresql
>>>> ms ms_drbd_db drbd_db \
>>>> meta master-max="1" master-node-max="1" clone-max="2"
>>>> clone-node-max="1" notify="true"
>>>> clone clnPingd_db pingd_db \
>>>> meta clone-max="2" clone-node-max="1"
>>>> location group_db-location group_db \
>>>> rule $id="group_db-location-rule" 200: #uname eq testdb01 \
>>>> rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
>>>> rule $id="group_db-location-rule-1" -inf: defined
>>>> default_ping_set or default_ping_set lt 100
>>>> location master-location_db ms_drbd_db \
>>>> rule $id="master-location_db-rule" 200: #uname eq testdb01 \
>>>> rule $id="master-location_db-rule-0" 100: #uname eq testdb02
>>>> \
>>>> rule $id="master-location_db-rule-1" $role="master" -inf:
>>>> defined default_ping_set or default_ping_set lt 100
>>>> colocation clnPingd_db-colocation 1000: group_db clnPingd_db
>>>> colocation db_on_drbd inf: group_db ms_drbd_db:Master
>>>> order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
>>>> property $id="cib-bootstrap-options" \
>>>> cluster-infrastructure="Heartbeat" \
>>>> expected-quorum-votes="2" \
>>>> no-quorum-policy="ignore" \
>>>> stonith-enabled="false" \
>>>> startup-fencing="false" \
>>>> dc-deadtime="20s" \
>>>> dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
>>>> rsc_defaults $id="rsc-options" \
>>>> resource-stickiness="INFINITY" \
>>>> migration-threshold="1"
>>>> -----------------------------------------------------------------
>>>> ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
>>>> $B$NB8:_$O3NG'$7$?$7$^$?!#(B
>>>> drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B
>>>>
>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(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
>
>
>
> --
> ----
> Takehiro Matsushima
>
> _______________________________________________
> 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


takehiro.dreamizm at gmail

Jan 6, 2012, 4:39 AM

Post #4 of 7 (337 views)
Permalink
Re: Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B [In reply to]

$B1]K\(B $BMM(B

$B>>Eg$G$9!#(B
$B;`3h4F;kMQ$N(B2$B$D$N(BIP address$B$,$"$j$^$9$,!"(BFail-over$B$9$k>r7o$O$I$&$$$C$?$b$N$G$7$g$&$+!#(B
$BNc$($P!"(B2$B$D$N$&$A$I$A$i$+$KE~C#$G$-$J$1$l$P(BF/O$B$H$+N>J}$KE~C#$G$-$J$1$l$P(BF/O$B$J$I$G$9!#(B

pingd$B$N(Bprimitive$B$,(B2$B$D$"$j$^$9$,!"(Bname$B%Q%i%a%?$r0l0U$J$b$N$K$7$J$1$l$P8e$N(Blocation$B$G(B
$BN><T$N6hJL$,$G$-$J$+$C$?$H;W$$$^$9(B($B8!>Z$7$?$3$H$,L5$$$G$9$,(B)$B!#(B

pingd$B$O!VJV;v$,F@$i$l$?%[%9%H$N?t!_(Bmultiplier$B$G;XDj$7$??t!W$NCM$rJV$7$^$9!#(B
$B$3$NCM$rI>2A$7$F!"Nc$($P(BDRBD$B$N$h$&$J%j%=!<%9$rF0$+$9%N!<%I$r7hDj$9$k$N$,(Blocation$B$@$HM}2r$7$F$$$^$9!#(B
$B%j%=!<%9$KBP$7$F(B"inf"$B$rM?$($k$H%j%=!<%9$O!VI,$:!W$=$N%N!<%I$GF0$-!"(B"-inf"$B$rM?$($k$H$=$N%N!<%I$r!VHr$1!W$^$9!#(B

> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set and default_ping_set lt 100
$B$H$$$&ItJ,$O!"(Bdrbd_db$B$N(B"master"$B%m!<%k$KBP$7$F(B"-inf"$B$rM?$($k>r7o$K$J$j$^$9!#(B
rule $id="master-location_db-rule-1" $role="master" -inf: not_defined
default_ping_set or default_ping_set lt 100
$B$H$9$k$H!"(Bdefault_ping_set$B$,L5$$>l9g$+(Bping$B$,(B1$B$DL$K~$KBP$7$F@.8y$7$?(B($B$D$^$j(Bdefault_ping_set eq 0$B$bEy2A(B)$B$H$J$j$^$9!#(B


$BF|K\8l$G;29M$K$J$k%5%$%H$G$9$,!";d$O(BLinux-HA Japan$B$H(BNovell$B<R$N!V(BHigh Availability $B%,%$%I!W$r$h$/8+$F$$$^$7$?!#(B
$B1Q8l$G$O!"K\2H$N(BPacemaker$B$d(BHeartbeat$B!"(Bcrm$B$N%^%K%e%"%k$,;29M$K$J$j$^$7$?!#(B

$BLdBj$r<h$j0c$($F$$$^$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
$BEv$?$C$F$$$k$+30$l$F$$$k$+$o$+$j$^$;$s$,!"$*$+$7$JE@$,$4$6$$$^$7$?$i$4;XE&$/$@$5$$!#(B



2012$BG/(B1$B7n(B6$BF|(B13:08 K.Enomoto <eno.jupiter [at] gmail>:
> $B>>Eg(B $BMM(B
>
> $B1]K\$G$9!#(B
> $B$4;XE&$"$j$,$H$&$4$6$$$^$9!#(B
> $B!t$h$/M}2r$7$J$$$^$^5-=R$7$F$$$^$7$?!#!J$^$@M}2r$7$F$$$^$;$s!K(B
>
> $BDj5A$7$?$+$C$?$N$O!";`3h4F;kMQ$N#2$D$N%]!<%H$KBP$7$F(Bping $B$,<:GT$7$?>l9g$@$C$?$N$G!"(B
> $B8+Ev0c$$$G$9$M!#(B
>
> rule $id="master-location_db-rule-1" $role="master" -inf: defined
> default_ping_set and default_ping_set
> lt 100
> $B$K$9$l$PNI$$$N$+$bM}2r$7$F$$$^$;$s!#(B
>
> $BF|K\8l$G;29M$K$J$k%5%$%HEy$,$"$j$^$7$?$i!"65$($F$/$@$5$$!#(B
>
> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
> 2012$BG/(B1$B7n(B6$BF|(B1:05 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
>> $B1]K\(B $BMM(B
>>
>> $B>>Eg$H?=$7$^$9!#(B
>>
>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set or default_ping_set lt 100
>> $B4*0c$$$G$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
>> $B$3$NItJ,$O!"!V(B"master"$B$N%m!<%k$KBP$7$F%9%3%"(B"-inf"$B$rM?$($k(B: pingd$B$,F0$$$F$$$k(B $B$^$?$O(B ping$B$,DL$i$J$$(B $B;~!W(B
>> $B$@$H;W$&$N$G$9$,!"(Bpingd$B$,F0$$$F$$$?$i(Bmaster$B$K>:3J$G$-$J$$$H$$$&F0:n$K$J$j$^$;$s$+!)(B
>> group_db-location $B$bF1MM$K8+$($^$9!#(B
>>
>>
>>
>> 2012$BG/(B1$B7n(B5$BF|(B15:37 K.Enomoto <eno.jupiter [at] gmail>:
>>> $B1]K\$G$9!#(B
>>> $B?=$7Lu$"$j$^$;$s!#(B
>>>
>>> drbd_resource $B$G;XDj$7$?CM$,!"(Bdrbd $B$GDj5A$7$?(Bresource$BL>$H0c$C$F$$$^$7$?!#(B
>>>> primitive drbd_db ocf:linbit:drbd params drbd_resource="r0"
>>> $B;d$N%_%9$G$9!#(B
>>>
>>> $B$3$l$r=$@5$7$?$H$3$m!"2<5-$N$h$&$K$J$j$^$7$?!#(B
>>> ============ $B$3$3$+$i(B
>>> Last updated: Thu Jan 5 15:27:59 2012
>>> Stack: Heartbeat
>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>> partition with quor
>>> um
>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>> 2 Nodes configured, 2 expected votes
>>> 4 Resources configured.
>>> ============
>>>
>>> Online: [ testdb02 testdb01 ]
>>>
>>> pingd_web (ocf::pacemaker:pingd): Started testdb02
>>> Master/Slave Set: ms_drbd_db
>>> Slaves: [ testdb01 testdb02 ]
>>> Clone Set: clnPingd_db
>>> Started: [ testdb01 testdb02 ]
>>> ======= $B$3$3$^$G(B
>>>
>>> $B$?$@!"(Bdrbd $B$N(Bstatus $B$r3NG'$9$k$H(B
>>> drbd driver loaded OK; device status:
>>> version: 8.4.1 (api:1/proto:86-100)
>>> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
>>> eno [at] testdb0, 2011-12-27 17:22:50
>>> m:res cs ro ds p mounted fstype
>>> 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
>>>
>>> $B$H!"$J$C$F$$$^$9!#(B
>>> $B$3$l$K4X$7$F$O!"$3$l$+$i3NG'$7$^$9$,!"3NG'$9$Y$-%]%$%s%H$O$"$j$^$9$+!)(B
>>>
>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>>
>>>
>>> 2012$BG/(B1$B7n(B5$BF|(B14:25 $B4d:j!w%5!<%I%&%'%"(B <iwasaki [at] 3ware>:
>>>> $B4d:j$G$9(B
>>>>
>>>> $B%(%i!<%m%0$O$I$N$h$&$K=P$F$^$9$+!)(B
>>>> not installed $B$N%(%i!<$,=P$F$$$k$N$G!"(Bdrbd*$B7O$N%3%^%s%I$,<u$1IU$1$i$l$F$$$J$$$+!"(B
>>>> $B8=>u$N(BOCF$B$@$H(BDRBD$B$N(B8.4.x$B$KBP1~$G$-$F$$$J$$$+$b$7$l$^$;$s!#(B
>>>> $B$3$A$i$G$b>/$73NG'$7$F$_$^$9!<(B
>>>>
>>>> On Thu, 5 Jan 2012 14:17:07 +0900, K.Enomoto wrote:
>>>>> $B1]K\$H?=$7$^$9!#(B
>>>>>
>>>>> DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
>>>>> $B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
>>>>> $B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B
>>>>>
>>>>> $B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
>>>>> ============$B$3$3$+$i(B
>>>>> Last updated: Thu Jan 5 09:05:38 2012
>>>>> Stack: Heartbeat
>>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>>> partition with quorum
>>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>>> 2 Nodes configured, 2 expected votes
>>>>> 4 Resources configured.
>>>>> ============
>>>>>
>>>>> Online: [ testdb01 testdb02 ]
>>>>>
>>>>> pingd_web (ocf::pacemaker:pingd): Started testdb01
>>>>> Master/Slave Set: ms_drbd_db
>>>>> drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged)
>>>>> FAILED
>>>>> drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged)
>>>>> FAILED
>>>>> Clone Set: clnPingd_db
>>>>> Started: [ testdb02 testdb01 ]
>>>>>
>>>>> Failed actions:
>>>>> drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
>>>>> not installed
>>>>> drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
>>>>> not installed
>>>>> drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
>>>>> not installed
>>>>> drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
>>>>> not installed
>>>>> ===== $B$3$3$^$G(B
>>>>>
>>>>> $B"#4D6-(B
>>>>> CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)
>>>>>
>>>>> drbd 8.4.1
>>>>> http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B
>>>>>
>>>>> Heartbeat 3.0.5-1.1
>>>>> Pacemaker 1.0.11-1.2
>>>>> linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B
>>>>>
>>>>>
>>>>> $B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B
>>>>>
>>>>> # crm configure show
>>>>> node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
>>>>> node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
>>>>> primitive drbd_db ocf:linbit:drbd \
>>>>> params drbd_resource="r0" \
>>>>> op start interval="0s" timeout="240s" on-fail="restart" \
>>>>> op monitor interval="11s" timeout="60s" on-fail="restart" \
>>>>> op monitor interval="10s" role="Master" timeout="60s"
>>>>> on-fail="restart" \
>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>> primitive fs_db ocf:heartbeat:Filesystem \
>>>>> params device="/dev/drbd0" directory="/databd" fstype="ext4"
>>>>> \
>>>>> op start interval="0s" timeout="60s" on-fail="restart" \
>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>> op stop interval="0s" timeout="60s" on-fail="block"
>>>>> primitive ip_db ocf:heartbeat:IPaddr2 \
>>>>> params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>> primitive pingd_db ocf:pacemaker:pingd \
>>>>> params name="default_ping_set" host_list="172.25.33.74"
>>>>> multiplier="100" dampen="0" \
>>>>> meta migration-threshold="10" \
>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>> primitive pingd_web ocf:pacemaker:pingd \
>>>>> params name="default_ping_set" host_list="192.168.100.1"
>>>>> multiplier="100" dampen="0" \
>>>>> meta migration-threshold="10" \
>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>> primitive postgresql ocf:heartbeat:pgsql \
>>>>> params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
>>>>> 127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
>>>>> pgdba="postgres" pgport="5432" pgdb="template1" \
>>>>> op start interval="0s" timeout="120s" on-fail="restart" \
>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>> op stop interval="0s" timeout="120s" on-fail="block"
>>>>> group group_db fs_db ip_db postgresql
>>>>> ms ms_drbd_db drbd_db \
>>>>> meta master-max="1" master-node-max="1" clone-max="2"
>>>>> clone-node-max="1" notify="true"
>>>>> clone clnPingd_db pingd_db \
>>>>> meta clone-max="2" clone-node-max="1"
>>>>> location group_db-location group_db \
>>>>> rule $id="group_db-location-rule" 200: #uname eq testdb01 \
>>>>> rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
>>>>> rule $id="group_db-location-rule-1" -inf: defined
>>>>> default_ping_set or default_ping_set lt 100
>>>>> location master-location_db ms_drbd_db \
>>>>> rule $id="master-location_db-rule" 200: #uname eq testdb01 \
>>>>> rule $id="master-location_db-rule-0" 100: #uname eq testdb02
>>>>> \
>>>>> rule $id="master-location_db-rule-1" $role="master" -inf:
>>>>> defined default_ping_set or default_ping_set lt 100
>>>>> colocation clnPingd_db-colocation 1000: group_db clnPingd_db
>>>>> colocation db_on_drbd inf: group_db ms_drbd_db:Master
>>>>> order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
>>>>> property $id="cib-bootstrap-options" \
>>>>> cluster-infrastructure="Heartbeat" \
>>>>> expected-quorum-votes="2" \
>>>>> no-quorum-policy="ignore" \
>>>>> stonith-enabled="false" \
>>>>> startup-fencing="false" \
>>>>> dc-deadtime="20s" \
>>>>> dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
>>>>> rsc_defaults $id="rsc-options" \
>>>>> resource-stickiness="INFINITY" \
>>>>> migration-threshold="1"
>>>>> -----------------------------------------------------------------
>>>>> ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
>>>>> $B$NB8:_$O3NG'$7$?$7$^$?!#(B
>>>>> drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B
>>>>>
>>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(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
>>
>>
>>
>> --
>> ----
>> Takehiro Matsushima
>>
>> _______________________________________________
>> 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



--
----
Takehiro Matsushima

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


eno.jupiter at gmail

Jan 7, 2012, 5:17 AM

Post #5 of 7 (336 views)
Permalink
Re: Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B [In reply to]

$B>>Eg(B $BMM(B

$B1]K\$G$9!#(B
$B$"$j$,$H$&$4$6$$$^$9!#(B

$BN>J}$KE~C#$G$-$J$1$l$P(BF/O$B$r$H9M$($F$$$^$9!#(B

$B8=:_!"$J$s$H$+4D6-E*$K5/F0$G$-$?>uBV$G!"F0:n8!>Z$O$^$@2?$b$7$F$$$^$;$s!#(B
$BNI$/M}2r$7$F$$$J$$$N$G!";~4V$,$+$+$j$=$&$G$9!#(B



$B4X78$"$j$^$;$s$,5$$E$$$?$i!"$"$^$j8+$?$/$J$$%a%C%;!<%8(B
kernel: WARNING: at kernel/sched.c:5914 thread_return+0x232/0x79d()
(Not tainted)
$B$,3NG'$5$l$^$7$?!#(B

2012$BG/(B1$B7n(B6$BF|(B21:39 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
> $B1]K\(B $BMM(B
>
> $B>>Eg$G$9!#(B
> $B;`3h4F;kMQ$N(B2$B$D$N(BIP address$B$,$"$j$^$9$,!"(BFail-over$B$9$k>r7o$O$I$&$$$C$?$b$N$G$7$g$&$+!#(B
> $BNc$($P!"(B2$B$D$N$&$A$I$A$i$+$KE~C#$G$-$J$1$l$P(BF/O$B$H$+N>J}$KE~C#$G$-$J$1$l$P(BF/O$B$J$I$G$9!#(B
>
> pingd$B$N(Bprimitive$B$,(B2$B$D$"$j$^$9$,!"(Bname$B%Q%i%a%?$r0l0U$J$b$N$K$7$J$1$l$P8e$N(Blocation$B$G(B
> $BN><T$N6hJL$,$G$-$J$+$C$?$H;W$$$^$9(B($B8!>Z$7$?$3$H$,L5$$$G$9$,(B)$B!#(B
>
> pingd$B$O!VJV;v$,F@$i$l$?%[%9%H$N?t!_(Bmultiplier$B$G;XDj$7$??t!W$NCM$rJV$7$^$9!#(B
> $B$3$NCM$rI>2A$7$F!"Nc$($P(BDRBD$B$N$h$&$J%j%=!<%9$rF0$+$9%N!<%I$r7hDj$9$k$N$,(Blocation$B$@$HM}2r$7$F$$$^$9!#(B
> $B%j%=!<%9$KBP$7$F(B"inf"$B$rM?$($k$H%j%=!<%9$O!VI,$:!W$=$N%N!<%I$GF0$-!"(B"-inf"$B$rM?$($k$H$=$N%N!<%I$r!VHr$1!W$^$9!#(B
>
>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set and default_ping_set lt 100
> $B$H$$$&ItJ,$O!"(Bdrbd_db$B$N(B"master"$B%m!<%k$KBP$7$F(B"-inf"$B$rM?$($k>r7o$K$J$j$^$9!#(B
> rule $id="master-location_db-rule-1" $role="master" -inf: not_defined
> default_ping_set or default_ping_set lt 100
> $B$H$9$k$H!"(Bdefault_ping_set$B$,L5$$>l9g$+(Bping$B$,(B1$B$DL$K~$KBP$7$F@.8y$7$?(B($B$D$^$j(Bdefault_ping_set eq 0$B$bEy2A(B)$B$H$J$j$^$9!#(B
>
>
> $BF|K\8l$G;29M$K$J$k%5%$%H$G$9$,!";d$O(BLinux-HA Japan$B$H(BNovell$B<R$N!V(BHigh Availability $B%,%$%I!W$r$h$/8+$F$$$^$7$?!#(B
> $B1Q8l$G$O!"K\2H$N(BPacemaker$B$d(BHeartbeat$B!"(Bcrm$B$N%^%K%e%"%k$,;29M$K$J$j$^$7$?!#(B
>
> $BLdBj$r<h$j0c$($F$$$^$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
> $BEv$?$C$F$$$k$+30$l$F$$$k$+$o$+$j$^$;$s$,!"$*$+$7$JE@$,$4$6$$$^$7$?$i$4;XE&$/$@$5$$!#(B
>
>
>
> 2012$BG/(B1$B7n(B6$BF|(B13:08 K.Enomoto <eno.jupiter [at] gmail>:
>> $B>>Eg(B $BMM(B
>>
>> $B1]K\$G$9!#(B
>> $B$4;XE&$"$j$,$H$&$4$6$$$^$9!#(B
>> $B!t$h$/M}2r$7$J$$$^$^5-=R$7$F$$$^$7$?!#!J$^$@M}2r$7$F$$$^$;$s!K(B
>>
>> $BDj5A$7$?$+$C$?$N$O!";`3h4F;kMQ$N#2$D$N%]!<%H$KBP$7$F(Bping $B$,<:GT$7$?>l9g$@$C$?$N$G!"(B
>> $B8+Ev0c$$$G$9$M!#(B
>>
>> rule $id="master-location_db-rule-1" $role="master" -inf: defined
>> default_ping_set and default_ping_set
>> lt 100
>> $B$K$9$l$PNI$$$N$+$bM}2r$7$F$$$^$;$s!#(B
>>
>> $BF|K\8l$G;29M$K$J$k%5%$%HEy$,$"$j$^$7$?$i!"65$($F$/$@$5$$!#(B
>>
>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>
>> 2012$BG/(B1$B7n(B6$BF|(B1:05 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
>>> $B1]K\(B $BMM(B
>>>
>>> $B>>Eg$H?=$7$^$9!#(B
>>>
>>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set or default_ping_set lt 100
>>> $B4*0c$$$G$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
>>> $B$3$NItJ,$O!"!V(B"master"$B$N%m!<%k$KBP$7$F%9%3%"(B"-inf"$B$rM?$($k(B: pingd$B$,F0$$$F$$$k(B $B$^$?$O(B ping$B$,DL$i$J$$(B $B;~!W(B
>>> $B$@$H;W$&$N$G$9$,!"(Bpingd$B$,F0$$$F$$$?$i(Bmaster$B$K>:3J$G$-$J$$$H$$$&F0:n$K$J$j$^$;$s$+!)(B
>>> group_db-location $B$bF1MM$K8+$($^$9!#(B
>>>
>>>
>>>
>>> 2012$BG/(B1$B7n(B5$BF|(B15:37 K.Enomoto <eno.jupiter [at] gmail>:
>>>> $B1]K\$G$9!#(B
>>>> $B?=$7Lu$"$j$^$;$s!#(B
>>>>
>>>> drbd_resource $B$G;XDj$7$?CM$,!"(Bdrbd $B$GDj5A$7$?(Bresource$BL>$H0c$C$F$$$^$7$?!#(B
>>>>> primitive drbd_db ocf:linbit:drbd params drbd_resource="r0"
>>>> $B;d$N%_%9$G$9!#(B
>>>>
>>>> $B$3$l$r=$@5$7$?$H$3$m!"2<5-$N$h$&$K$J$j$^$7$?!#(B
>>>> ============ $B$3$3$+$i(B
>>>> Last updated: Thu Jan 5 15:27:59 2012
>>>> Stack: Heartbeat
>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>> partition with quor
>>>> um
>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>> 2 Nodes configured, 2 expected votes
>>>> 4 Resources configured.
>>>> ============
>>>>
>>>> Online: [ testdb02 testdb01 ]
>>>>
>>>> pingd_web (ocf::pacemaker:pingd): Started testdb02
>>>> Master/Slave Set: ms_drbd_db
>>>> Slaves: [ testdb01 testdb02 ]
>>>> Clone Set: clnPingd_db
>>>> Started: [ testdb01 testdb02 ]
>>>> ======= $B$3$3$^$G(B
>>>>
>>>> $B$?$@!"(Bdrbd $B$N(Bstatus $B$r3NG'$9$k$H(B
>>>> drbd driver loaded OK; device status:
>>>> version: 8.4.1 (api:1/proto:86-100)
>>>> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
>>>> eno [at] testdb0, 2011-12-27 17:22:50
>>>> m:res cs ro ds p mounted fstype
>>>> 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
>>>>
>>>> $B$H!"$J$C$F$$$^$9!#(B
>>>> $B$3$l$K4X$7$F$O!"$3$l$+$i3NG'$7$^$9$,!"3NG'$9$Y$-%]%$%s%H$O$"$j$^$9$+!)(B
>>>>
>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>>>
>>>>
>>>> 2012$BG/(B1$B7n(B5$BF|(B14:25 $B4d:j!w%5!<%I%&%'%"(B <iwasaki [at] 3ware>:
>>>>> $B4d:j$G$9(B
>>>>>
>>>>> $B%(%i!<%m%0$O$I$N$h$&$K=P$F$^$9$+!)(B
>>>>> not installed $B$N%(%i!<$,=P$F$$$k$N$G!"(Bdrbd*$B7O$N%3%^%s%I$,<u$1IU$1$i$l$F$$$J$$$+!"(B
>>>>> $B8=>u$N(BOCF$B$@$H(BDRBD$B$N(B8.4.x$B$KBP1~$G$-$F$$$J$$$+$b$7$l$^$;$s!#(B
>>>>> $B$3$A$i$G$b>/$73NG'$7$F$_$^$9!<(B
>>>>>
>>>>> On Thu, 5 Jan 2012 14:17:07 +0900, K.Enomoto wrote:
>>>>>> $B1]K\$H?=$7$^$9!#(B
>>>>>>
>>>>>> DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
>>>>>> $B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
>>>>>> $B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B
>>>>>>
>>>>>> $B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
>>>>>> ============$B$3$3$+$i(B
>>>>>> Last updated: Thu Jan 5 09:05:38 2012
>>>>>> Stack: Heartbeat
>>>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>>>> partition with quorum
>>>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>>>> 2 Nodes configured, 2 expected votes
>>>>>> 4 Resources configured.
>>>>>> ============
>>>>>>
>>>>>> Online: [ testdb01 testdb02 ]
>>>>>>
>>>>>> pingd_web (ocf::pacemaker:pingd): Started testdb01
>>>>>> Master/Slave Set: ms_drbd_db
>>>>>> drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged)
>>>>>> FAILED
>>>>>> drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged)
>>>>>> FAILED
>>>>>> Clone Set: clnPingd_db
>>>>>> Started: [ testdb02 testdb01 ]
>>>>>>
>>>>>> Failed actions:
>>>>>> drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
>>>>>> not installed
>>>>>> drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
>>>>>> not installed
>>>>>> drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
>>>>>> not installed
>>>>>> drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
>>>>>> not installed
>>>>>> ===== $B$3$3$^$G(B
>>>>>>
>>>>>> $B"#4D6-(B
>>>>>> CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)
>>>>>>
>>>>>> drbd 8.4.1
>>>>>> http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B
>>>>>>
>>>>>> Heartbeat 3.0.5-1.1
>>>>>> Pacemaker 1.0.11-1.2
>>>>>> linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B
>>>>>>
>>>>>>
>>>>>> $B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B
>>>>>>
>>>>>> # crm configure show
>>>>>> node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
>>>>>> node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
>>>>>> primitive drbd_db ocf:linbit:drbd \
>>>>>> params drbd_resource="r0" \
>>>>>> op start interval="0s" timeout="240s" on-fail="restart" \
>>>>>> op monitor interval="11s" timeout="60s" on-fail="restart" \
>>>>>> op monitor interval="10s" role="Master" timeout="60s"
>>>>>> on-fail="restart" \
>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>> primitive fs_db ocf:heartbeat:Filesystem \
>>>>>> params device="/dev/drbd0" directory="/databd" fstype="ext4"
>>>>>> \
>>>>>> op start interval="0s" timeout="60s" on-fail="restart" \
>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>> op stop interval="0s" timeout="60s" on-fail="block"
>>>>>> primitive ip_db ocf:heartbeat:IPaddr2 \
>>>>>> params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>> primitive pingd_db ocf:pacemaker:pingd \
>>>>>> params name="default_ping_set" host_list="172.25.33.74"
>>>>>> multiplier="100" dampen="0" \
>>>>>> meta migration-threshold="10" \
>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>> primitive pingd_web ocf:pacemaker:pingd \
>>>>>> params name="default_ping_set" host_list="192.168.100.1"
>>>>>> multiplier="100" dampen="0" \
>>>>>> meta migration-threshold="10" \
>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>> primitive postgresql ocf:heartbeat:pgsql \
>>>>>> params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
>>>>>> 127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
>>>>>> pgdba="postgres" pgport="5432" pgdb="template1" \
>>>>>> op start interval="0s" timeout="120s" on-fail="restart" \
>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>> op stop interval="0s" timeout="120s" on-fail="block"
>>>>>> group group_db fs_db ip_db postgresql
>>>>>> ms ms_drbd_db drbd_db \
>>>>>> meta master-max="1" master-node-max="1" clone-max="2"
>>>>>> clone-node-max="1" notify="true"
>>>>>> clone clnPingd_db pingd_db \
>>>>>> meta clone-max="2" clone-node-max="1"
>>>>>> location group_db-location group_db \
>>>>>> rule $id="group_db-location-rule" 200: #uname eq testdb01 \
>>>>>> rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
>>>>>> rule $id="group_db-location-rule-1" -inf: defined
>>>>>> default_ping_set or default_ping_set lt 100
>>>>>> location master-location_db ms_drbd_db \
>>>>>> rule $id="master-location_db-rule" 200: #uname eq testdb01 \
>>>>>> rule $id="master-location_db-rule-0" 100: #uname eq testdb02
>>>>>> \
>>>>>> rule $id="master-location_db-rule-1" $role="master" -inf:
>>>>>> defined default_ping_set or default_ping_set lt 100
>>>>>> colocation clnPingd_db-colocation 1000: group_db clnPingd_db
>>>>>> colocation db_on_drbd inf: group_db ms_drbd_db:Master
>>>>>> order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
>>>>>> property $id="cib-bootstrap-options" \
>>>>>> cluster-infrastructure="Heartbeat" \
>>>>>> expected-quorum-votes="2" \
>>>>>> no-quorum-policy="ignore" \
>>>>>> stonith-enabled="false" \
>>>>>> startup-fencing="false" \
>>>>>> dc-deadtime="20s" \
>>>>>> dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
>>>>>> rsc_defaults $id="rsc-options" \
>>>>>> resource-stickiness="INFINITY" \
>>>>>> migration-threshold="1"
>>>>>> -----------------------------------------------------------------
>>>>>> ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
>>>>>> $B$NB8:_$O3NG'$7$?$7$^$?!#(B
>>>>>> drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B
>>>>>>
>>>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(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
>>>
>>>
>>>
>>> --
>>> ----
>>> Takehiro Matsushima
>>>
>>> _______________________________________________
>>> 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
>
>
>
> --
> ----
> Takehiro Matsushima
>
> _______________________________________________
> 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


takehiro.dreamizm at gmail

Jan 9, 2012, 3:57 PM

Post #6 of 7 (335 views)
Permalink
Re: Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B [In reply to]

$B1]K\(B $BMM(B

$B>>Eg$G$9!"CY$/$J$j$^$7$F?=$7Lu$4$6$$$^$;$s!#(B
$BN>J}$KE~C#$G$-$J$1$l$P(BF/O$B$9$k$N$G$7$?$i!"N>J}$N(Bpingd$B$r#1$D$K$^$H$a$F$7$^$&$N$b$"$j$+$b$7$l$^$;$s!#(B
$B!J$9$_$^$;$s!"$h$/8!F$$7$F$$$J$$$N$GITET9g$,$"$k$+$b$7$l$^$;$s!K(B

kernel/sched.c$B$N(BWarning$B$G$9$,!"(BRHEL6.2$B$N(Bkernel$B$N:G?7HG$G=P$?$H$$$&Js9p$rL\$K$7$^$7$?!#(B
Update$B$r$7$J$$$+!"=$@5HG$rBT$D$N$,$h$5$=$&$G$9$M!#(B



2012$BG/(B1$B7n(B7$BF|(B22:17 K.Enomoto <eno.jupiter [at] gmail>:
> $B>>Eg(B $BMM(B
>
> $B1]K\$G$9!#(B
> $B$"$j$,$H$&$4$6$$$^$9!#(B
>
> $BN>J}$KE~C#$G$-$J$1$l$P(BF/O$B$r$H9M$($F$$$^$9!#(B
>
> $B8=:_!"$J$s$H$+4D6-E*$K5/F0$G$-$?>uBV$G!"F0:n8!>Z$O$^$@2?$b$7$F$$$^$;$s!#(B
> $BNI$/M}2r$7$F$$$J$$$N$G!";~4V$,$+$+$j$=$&$G$9!#(B
>
>
>
> $B4X78$"$j$^$;$s$,5$$E$$$?$i!"$"$^$j8+$?$/$J$$%a%C%;!<%8(B
> kernel: WARNING: at kernel/sched.c:5914 thread_return+0x232/0x79d()
> (Not tainted)
> $B$,3NG'$5$l$^$7$?!#(B
>
> 2012$BG/(B1$B7n(B6$BF|(B21:39 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
>> $B1]K\(B $BMM(B
>>
>> $B>>Eg$G$9!#(B
>> $B;`3h4F;kMQ$N(B2$B$D$N(BIP address$B$,$"$j$^$9$,!"(BFail-over$B$9$k>r7o$O$I$&$$$C$?$b$N$G$7$g$&$+!#(B
>> $BNc$($P!"(B2$B$D$N$&$A$I$A$i$+$KE~C#$G$-$J$1$l$P(BF/O$B$H$+N>J}$KE~C#$G$-$J$1$l$P(BF/O$B$J$I$G$9!#(B
>>
>> pingd$B$N(Bprimitive$B$,(B2$B$D$"$j$^$9$,!"(Bname$B%Q%i%a%?$r0l0U$J$b$N$K$7$J$1$l$P8e$N(Blocation$B$G(B
>> $BN><T$N6hJL$,$G$-$J$+$C$?$H;W$$$^$9(B($B8!>Z$7$?$3$H$,L5$$$G$9$,(B)$B!#(B
>>
>> pingd$B$O!VJV;v$,F@$i$l$?%[%9%H$N?t!_(Bmultiplier$B$G;XDj$7$??t!W$NCM$rJV$7$^$9!#(B
>> $B$3$NCM$rI>2A$7$F!"Nc$($P(BDRBD$B$N$h$&$J%j%=!<%9$rF0$+$9%N!<%I$r7hDj$9$k$N$,(Blocation$B$@$HM}2r$7$F$$$^$9!#(B
>> $B%j%=!<%9$KBP$7$F(B"inf"$B$rM?$($k$H%j%=!<%9$O!VI,$:!W$=$N%N!<%I$GF0$-!"(B"-inf"$B$rM?$($k$H$=$N%N!<%I$r!VHr$1!W$^$9!#(B
>>
>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set and default_ping_set lt 100
>> $B$H$$$&ItJ,$O!"(Bdrbd_db$B$N(B"master"$B%m!<%k$KBP$7$F(B"-inf"$B$rM?$($k>r7o$K$J$j$^$9!#(B
>> rule $id="master-location_db-rule-1" $role="master" -inf: not_defined
>> default_ping_set or default_ping_set lt 100
>> $B$H$9$k$H!"(Bdefault_ping_set$B$,L5$$>l9g$+(Bping$B$,(B1$B$DL$K~$KBP$7$F@.8y$7$?(B($B$D$^$j(Bdefault_ping_set eq 0$B$bEy2A(B)$B$H$J$j$^$9!#(B
>>
>>
>> $BF|K\8l$G;29M$K$J$k%5%$%H$G$9$,!";d$O(BLinux-HA Japan$B$H(BNovell$B<R$N!V(BHigh Availability $B%,%$%I!W$r$h$/8+$F$$$^$7$?!#(B
>> $B1Q8l$G$O!"K\2H$N(BPacemaker$B$d(BHeartbeat$B!"(Bcrm$B$N%^%K%e%"%k$,;29M$K$J$j$^$7$?!#(B
>>
>> $BLdBj$r<h$j0c$($F$$$^$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
>> $BEv$?$C$F$$$k$+30$l$F$$$k$+$o$+$j$^$;$s$,!"$*$+$7$JE@$,$4$6$$$^$7$?$i$4;XE&$/$@$5$$!#(B
>>
>>
>>
>> 2012$BG/(B1$B7n(B6$BF|(B13:08 K.Enomoto <eno.jupiter [at] gmail>:
>>> $B>>Eg(B $BMM(B
>>>
>>> $B1]K\$G$9!#(B
>>> $B$4;XE&$"$j$,$H$&$4$6$$$^$9!#(B
>>> $B!t$h$/M}2r$7$J$$$^$^5-=R$7$F$$$^$7$?!#!J$^$@M}2r$7$F$$$^$;$s!K(B
>>>
>>> $BDj5A$7$?$+$C$?$N$O!";`3h4F;kMQ$N#2$D$N%]!<%H$KBP$7$F(Bping $B$,<:GT$7$?>l9g$@$C$?$N$G!"(B
>>> $B8+Ev0c$$$G$9$M!#(B
>>>
>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined
>>> default_ping_set and default_ping_set
>>> lt 100
>>> $B$K$9$l$PNI$$$N$+$bM}2r$7$F$$$^$;$s!#(B
>>>
>>> $BF|K\8l$G;29M$K$J$k%5%$%HEy$,$"$j$^$7$?$i!"65$($F$/$@$5$$!#(B
>>>
>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>>
>>> 2012$BG/(B1$B7n(B6$BF|(B1:05 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
>>>> $B1]K\(B $BMM(B
>>>>
>>>> $B>>Eg$H?=$7$^$9!#(B
>>>>
>>>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set or default_ping_set lt 100
>>>> $B4*0c$$$G$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
>>>> $B$3$NItJ,$O!"!V(B"master"$B$N%m!<%k$KBP$7$F%9%3%"(B"-inf"$B$rM?$($k(B: pingd$B$,F0$$$F$$$k(B $B$^$?$O(B ping$B$,DL$i$J$$(B $B;~!W(B
>>>> $B$@$H;W$&$N$G$9$,!"(Bpingd$B$,F0$$$F$$$?$i(Bmaster$B$K>:3J$G$-$J$$$H$$$&F0:n$K$J$j$^$;$s$+!)(B
>>>> group_db-location $B$bF1MM$K8+$($^$9!#(B
>>>>
>>>>
>>>>
>>>> 2012$BG/(B1$B7n(B5$BF|(B15:37 K.Enomoto <eno.jupiter [at] gmail>:
>>>>> $B1]K\$G$9!#(B
>>>>> $B?=$7Lu$"$j$^$;$s!#(B
>>>>>
>>>>> drbd_resource $B$G;XDj$7$?CM$,!"(Bdrbd $B$GDj5A$7$?(Bresource$BL>$H0c$C$F$$$^$7$?!#(B
>>>>>> primitive drbd_db ocf:linbit:drbd params drbd_resource="r0"
>>>>> $B;d$N%_%9$G$9!#(B
>>>>>
>>>>> $B$3$l$r=$@5$7$?$H$3$m!"2<5-$N$h$&$K$J$j$^$7$?!#(B
>>>>> ============ $B$3$3$+$i(B
>>>>> Last updated: Thu Jan 5 15:27:59 2012
>>>>> Stack: Heartbeat
>>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>>> partition with quor
>>>>> um
>>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>>> 2 Nodes configured, 2 expected votes
>>>>> 4 Resources configured.
>>>>> ============
>>>>>
>>>>> Online: [ testdb02 testdb01 ]
>>>>>
>>>>> pingd_web (ocf::pacemaker:pingd): Started testdb02
>>>>> Master/Slave Set: ms_drbd_db
>>>>> Slaves: [ testdb01 testdb02 ]
>>>>> Clone Set: clnPingd_db
>>>>> Started: [ testdb01 testdb02 ]
>>>>> ======= $B$3$3$^$G(B
>>>>>
>>>>> $B$?$@!"(Bdrbd $B$N(Bstatus $B$r3NG'$9$k$H(B
>>>>> drbd driver loaded OK; device status:
>>>>> version: 8.4.1 (api:1/proto:86-100)
>>>>> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
>>>>> eno [at] testdb0, 2011-12-27 17:22:50
>>>>> m:res cs ro ds p mounted fstype
>>>>> 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
>>>>>
>>>>> $B$H!"$J$C$F$$$^$9!#(B
>>>>> $B$3$l$K4X$7$F$O!"$3$l$+$i3NG'$7$^$9$,!"3NG'$9$Y$-%]%$%s%H$O$"$j$^$9$+!)(B
>>>>>
>>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>>>>
>>>>>
>>>>> 2012$BG/(B1$B7n(B5$BF|(B14:25 $B4d:j!w%5!<%I%&%'%"(B <iwasaki [at] 3ware>:
>>>>>> $B4d:j$G$9(B
>>>>>>
>>>>>> $B%(%i!<%m%0$O$I$N$h$&$K=P$F$^$9$+!)(B
>>>>>> not installed $B$N%(%i!<$,=P$F$$$k$N$G!"(Bdrbd*$B7O$N%3%^%s%I$,<u$1IU$1$i$l$F$$$J$$$+!"(B
>>>>>> $B8=>u$N(BOCF$B$@$H(BDRBD$B$N(B8.4.x$B$KBP1~$G$-$F$$$J$$$+$b$7$l$^$;$s!#(B
>>>>>> $B$3$A$i$G$b>/$73NG'$7$F$_$^$9!<(B
>>>>>>
>>>>>> On Thu, 5 Jan 2012 14:17:07 +0900, K.Enomoto wrote:
>>>>>>> $B1]K\$H?=$7$^$9!#(B
>>>>>>>
>>>>>>> DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
>>>>>>> $B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
>>>>>>> $B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B
>>>>>>>
>>>>>>> $B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
>>>>>>> ============$B$3$3$+$i(B
>>>>>>> Last updated: Thu Jan 5 09:05:38 2012
>>>>>>> Stack: Heartbeat
>>>>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>>>>> partition with quorum
>>>>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>>>>> 2 Nodes configured, 2 expected votes
>>>>>>> 4 Resources configured.
>>>>>>> ============
>>>>>>>
>>>>>>> Online: [ testdb01 testdb02 ]
>>>>>>>
>>>>>>> pingd_web (ocf::pacemaker:pingd): Started testdb01
>>>>>>> Master/Slave Set: ms_drbd_db
>>>>>>> drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged)
>>>>>>> FAILED
>>>>>>> drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged)
>>>>>>> FAILED
>>>>>>> Clone Set: clnPingd_db
>>>>>>> Started: [ testdb02 testdb01 ]
>>>>>>>
>>>>>>> Failed actions:
>>>>>>> drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
>>>>>>> not installed
>>>>>>> drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
>>>>>>> not installed
>>>>>>> drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
>>>>>>> not installed
>>>>>>> drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
>>>>>>> not installed
>>>>>>> ===== $B$3$3$^$G(B
>>>>>>>
>>>>>>> $B"#4D6-(B
>>>>>>> CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)
>>>>>>>
>>>>>>> drbd 8.4.1
>>>>>>> http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B
>>>>>>>
>>>>>>> Heartbeat 3.0.5-1.1
>>>>>>> Pacemaker 1.0.11-1.2
>>>>>>> linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B
>>>>>>>
>>>>>>>
>>>>>>> $B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B
>>>>>>>
>>>>>>> # crm configure show
>>>>>>> node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
>>>>>>> node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
>>>>>>> primitive drbd_db ocf:linbit:drbd \
>>>>>>> params drbd_resource="r0" \
>>>>>>> op start interval="0s" timeout="240s" on-fail="restart" \
>>>>>>> op monitor interval="11s" timeout="60s" on-fail="restart" \
>>>>>>> op monitor interval="10s" role="Master" timeout="60s"
>>>>>>> on-fail="restart" \
>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>> primitive fs_db ocf:heartbeat:Filesystem \
>>>>>>> params device="/dev/drbd0" directory="/databd" fstype="ext4"
>>>>>>> \
>>>>>>> op start interval="0s" timeout="60s" on-fail="restart" \
>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>> op stop interval="0s" timeout="60s" on-fail="block"
>>>>>>> primitive ip_db ocf:heartbeat:IPaddr2 \
>>>>>>> params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
>>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>> primitive pingd_db ocf:pacemaker:pingd \
>>>>>>> params name="default_ping_set" host_list="172.25.33.74"
>>>>>>> multiplier="100" dampen="0" \
>>>>>>> meta migration-threshold="10" \
>>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>> primitive pingd_web ocf:pacemaker:pingd \
>>>>>>> params name="default_ping_set" host_list="192.168.100.1"
>>>>>>> multiplier="100" dampen="0" \
>>>>>>> meta migration-threshold="10" \
>>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>> primitive postgresql ocf:heartbeat:pgsql \
>>>>>>> params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
>>>>>>> 127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
>>>>>>> pgdba="postgres" pgport="5432" pgdb="template1" \
>>>>>>> op start interval="0s" timeout="120s" on-fail="restart" \
>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>> op stop interval="0s" timeout="120s" on-fail="block"
>>>>>>> group group_db fs_db ip_db postgresql
>>>>>>> ms ms_drbd_db drbd_db \
>>>>>>> meta master-max="1" master-node-max="1" clone-max="2"
>>>>>>> clone-node-max="1" notify="true"
>>>>>>> clone clnPingd_db pingd_db \
>>>>>>> meta clone-max="2" clone-node-max="1"
>>>>>>> location group_db-location group_db \
>>>>>>> rule $id="group_db-location-rule" 200: #uname eq testdb01 \
>>>>>>> rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
>>>>>>> rule $id="group_db-location-rule-1" -inf: defined
>>>>>>> default_ping_set or default_ping_set lt 100
>>>>>>> location master-location_db ms_drbd_db \
>>>>>>> rule $id="master-location_db-rule" 200: #uname eq testdb01 \
>>>>>>> rule $id="master-location_db-rule-0" 100: #uname eq testdb02
>>>>>>> \
>>>>>>> rule $id="master-location_db-rule-1" $role="master" -inf:
>>>>>>> defined default_ping_set or default_ping_set lt 100
>>>>>>> colocation clnPingd_db-colocation 1000: group_db clnPingd_db
>>>>>>> colocation db_on_drbd inf: group_db ms_drbd_db:Master
>>>>>>> order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
>>>>>>> property $id="cib-bootstrap-options" \
>>>>>>> cluster-infrastructure="Heartbeat" \
>>>>>>> expected-quorum-votes="2" \
>>>>>>> no-quorum-policy="ignore" \
>>>>>>> stonith-enabled="false" \
>>>>>>> startup-fencing="false" \
>>>>>>> dc-deadtime="20s" \
>>>>>>> dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
>>>>>>> rsc_defaults $id="rsc-options" \
>>>>>>> resource-stickiness="INFINITY" \
>>>>>>> migration-threshold="1"
>>>>>>> -----------------------------------------------------------------
>>>>>>> ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
>>>>>>> $B$NB8:_$O3NG'$7$?$7$^$?!#(B
>>>>>>> drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B
>>>>>>>
>>>>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(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
>>>>
>>>>
>>>>
>>>> --
>>>> ----
>>>> Takehiro Matsushima
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>>
>> --
>> ----
>> Takehiro Matsushima
>>
>> _______________________________________________
>> 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



--
----
Takehiro Matsushima

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


eno.jupiter at gmail

Jan 9, 2012, 4:26 PM

Post #7 of 7 (334 views)
Permalink
Re: Pacemaker$B$G(BDRBD$B%j%=!<%94IM}$K$D$$$F(B [In reply to]

$B>>Eg(B $BMM(B

$B1]K\$G$9!#(B
$B2sEz$"$j$,$H$&$4$6$$$^$9!#(B

$B$3$l$+$i!"<+J,$J$j$K;n$7$F$_$?$$$H;W$$$^$9!#(B

kernel$B$N(BWarning$B$O(BRHEL6.2$B$G$O=$@5$5$l$?$H$N5-;v$rL\$K$7$^$7$?$N$G!"(B
CentOS6.2 $B$b!"$=$N$&$A=$@5$5$l$k$H;W$$$^$9$N$G!"$3$N7o$O;C$/MM;R$r8+$^$9!#(B

$B0J>e!"$"$j$,$H$&$4$6$$$^$9(B

2012$BG/(B1$B7n(B10$BF|(B8:57 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
> $B1]K\(B $BMM(B
>
> $B>>Eg$G$9!"CY$/$J$j$^$7$F?=$7Lu$4$6$$$^$;$s!#(B
> $BN>J}$KE~C#$G$-$J$1$l$P(BF/O$B$9$k$N$G$7$?$i!"N>J}$N(Bpingd$B$r#1$D$K$^$H$a$F$7$^$&$N$b$"$j$+$b$7$l$^$;$s!#(B
> $B!J$9$_$^$;$s!"$h$/8!F$$7$F$$$J$$$N$GITET9g$,$"$k$+$b$7$l$^$;$s!K(B
>
> kernel/sched.c$B$N(BWarning$B$G$9$,!"(BRHEL6.2$B$N(Bkernel$B$N:G?7HG$G=P$?$H$$$&Js9p$rL\$K$7$^$7$?!#(B
> Update$B$r$7$J$$$+!"=$@5HG$rBT$D$N$,$h$5$=$&$G$9$M!#(B
>
>
>
> 2012$BG/(B1$B7n(B7$BF|(B22:17 K.Enomoto <eno.jupiter [at] gmail>:
>> $B>>Eg(B $BMM(B
>>
>> $B1]K\$G$9!#(B
>> $B$"$j$,$H$&$4$6$$$^$9!#(B
>>
>> $BN>J}$KE~C#$G$-$J$1$l$P(BF/O$B$r$H9M$($F$$$^$9!#(B
>>
>> $B8=:_!"$J$s$H$+4D6-E*$K5/F0$G$-$?>uBV$G!"F0:n8!>Z$O$^$@2?$b$7$F$$$^$;$s!#(B
>> $BNI$/M}2r$7$F$$$J$$$N$G!";~4V$,$+$+$j$=$&$G$9!#(B
>>
>>
>>
>> $B4X78$"$j$^$;$s$,5$$E$$$?$i!"$"$^$j8+$?$/$J$$%a%C%;!<%8(B
>> kernel: WARNING: at kernel/sched.c:5914 thread_return+0x232/0x79d()
>> (Not tainted)
>> $B$,3NG'$5$l$^$7$?!#(B
>>
>> 2012$BG/(B1$B7n(B6$BF|(B21:39 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
>>> $B1]K\(B $BMM(B
>>>
>>> $B>>Eg$G$9!#(B
>>> $B;`3h4F;kMQ$N(B2$B$D$N(BIP address$B$,$"$j$^$9$,!"(BFail-over$B$9$k>r7o$O$I$&$$$C$?$b$N$G$7$g$&$+!#(B
>>> $BNc$($P!"(B2$B$D$N$&$A$I$A$i$+$KE~C#$G$-$J$1$l$P(BF/O$B$H$+N>J}$KE~C#$G$-$J$1$l$P(BF/O$B$J$I$G$9!#(B
>>>
>>> pingd$B$N(Bprimitive$B$,(B2$B$D$"$j$^$9$,!"(Bname$B%Q%i%a%?$r0l0U$J$b$N$K$7$J$1$l$P8e$N(Blocation$B$G(B
>>> $BN><T$N6hJL$,$G$-$J$+$C$?$H;W$$$^$9(B($B8!>Z$7$?$3$H$,L5$$$G$9$,(B)$B!#(B
>>>
>>> pingd$B$O!VJV;v$,F@$i$l$?%[%9%H$N?t!_(Bmultiplier$B$G;XDj$7$??t!W$NCM$rJV$7$^$9!#(B
>>> $B$3$NCM$rI>2A$7$F!"Nc$($P(BDRBD$B$N$h$&$J%j%=!<%9$rF0$+$9%N!<%I$r7hDj$9$k$N$,(Blocation$B$@$HM}2r$7$F$$$^$9!#(B
>>> $B%j%=!<%9$KBP$7$F(B"inf"$B$rM?$($k$H%j%=!<%9$O!VI,$:!W$=$N%N!<%I$GF0$-!"(B"-inf"$B$rM?$($k$H$=$N%N!<%I$r!VHr$1!W$^$9!#(B
>>>
>>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set and default_ping_set lt 100
>>> $B$H$$$&ItJ,$O!"(Bdrbd_db$B$N(B"master"$B%m!<%k$KBP$7$F(B"-inf"$B$rM?$($k>r7o$K$J$j$^$9!#(B
>>> rule $id="master-location_db-rule-1" $role="master" -inf: not_defined
>>> default_ping_set or default_ping_set lt 100
>>> $B$H$9$k$H!"(Bdefault_ping_set$B$,L5$$>l9g$+(Bping$B$,(B1$B$DL$K~$KBP$7$F@.8y$7$?(B($B$D$^$j(Bdefault_ping_set eq 0$B$bEy2A(B)$B$H$J$j$^$9!#(B
>>>
>>>
>>> $BF|K\8l$G;29M$K$J$k%5%$%H$G$9$,!";d$O(BLinux-HA Japan$B$H(BNovell$B<R$N!V(BHigh Availability $B%,%$%I!W$r$h$/8+$F$$$^$7$?!#(B
>>> $B1Q8l$G$O!"K\2H$N(BPacemaker$B$d(BHeartbeat$B!"(Bcrm$B$N%^%K%e%"%k$,;29M$K$J$j$^$7$?!#(B
>>>
>>> $BLdBj$r<h$j0c$($F$$$^$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
>>> $BEv$?$C$F$$$k$+30$l$F$$$k$+$o$+$j$^$;$s$,!"$*$+$7$JE@$,$4$6$$$^$7$?$i$4;XE&$/$@$5$$!#(B
>>>
>>>
>>>
>>> 2012$BG/(B1$B7n(B6$BF|(B13:08 K.Enomoto <eno.jupiter [at] gmail>:
>>>> $B>>Eg(B $BMM(B
>>>>
>>>> $B1]K\$G$9!#(B
>>>> $B$4;XE&$"$j$,$H$&$4$6$$$^$9!#(B
>>>> $B!t$h$/M}2r$7$J$$$^$^5-=R$7$F$$$^$7$?!#!J$^$@M}2r$7$F$$$^$;$s!K(B
>>>>
>>>> $BDj5A$7$?$+$C$?$N$O!";`3h4F;kMQ$N#2$D$N%]!<%H$KBP$7$F(Bping $B$,<:GT$7$?>l9g$@$C$?$N$G!"(B
>>>> $B8+Ev0c$$$G$9$M!#(B
>>>>
>>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined
>>>> default_ping_set and default_ping_set
>>>> lt 100
>>>> $B$K$9$l$PNI$$$N$+$bM}2r$7$F$$$^$;$s!#(B
>>>>
>>>> $BF|K\8l$G;29M$K$J$k%5%$%HEy$,$"$j$^$7$?$i!"65$($F$/$@$5$$!#(B
>>>>
>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>>>
>>>> 2012$BG/(B1$B7n(B6$BF|(B1:05 Takehiro Matsushima <takehiro.dreamizm [at] gmail>:
>>>>> $B1]K\(B $BMM(B
>>>>>
>>>>> $B>>Eg$H?=$7$^$9!#(B
>>>>>
>>>>>> rule $id="master-location_db-rule-1" $role="master" -inf: defined default_ping_set or default_ping_set lt 100
>>>>> $B4*0c$$$G$7$?$i?=$7Lu$4$6$$$^$;$s!#(B
>>>>> $B$3$NItJ,$O!"!V(B"master"$B$N%m!<%k$KBP$7$F%9%3%"(B"-inf"$B$rM?$($k(B: pingd$B$,F0$$$F$$$k(B $B$^$?$O(B ping$B$,DL$i$J$$(B $B;~!W(B
>>>>> $B$@$H;W$&$N$G$9$,!"(Bpingd$B$,F0$$$F$$$?$i(Bmaster$B$K>:3J$G$-$J$$$H$$$&F0:n$K$J$j$^$;$s$+!)(B
>>>>> group_db-location $B$bF1MM$K8+$($^$9!#(B
>>>>>
>>>>>
>>>>>
>>>>> 2012$BG/(B1$B7n(B5$BF|(B15:37 K.Enomoto <eno.jupiter [at] gmail>:
>>>>>> $B1]K\$G$9!#(B
>>>>>> $B?=$7Lu$"$j$^$;$s!#(B
>>>>>>
>>>>>> drbd_resource $B$G;XDj$7$?CM$,!"(Bdrbd $B$GDj5A$7$?(Bresource$BL>$H0c$C$F$$$^$7$?!#(B
>>>>>>> primitive drbd_db ocf:linbit:drbd params drbd_resource="r0"
>>>>>> $B;d$N%_%9$G$9!#(B
>>>>>>
>>>>>> $B$3$l$r=$@5$7$?$H$3$m!"2<5-$N$h$&$K$J$j$^$7$?!#(B
>>>>>> ============ $B$3$3$+$i(B
>>>>>> Last updated: Thu Jan 5 15:27:59 2012
>>>>>> Stack: Heartbeat
>>>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>>>> partition with quor
>>>>>> um
>>>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>>>> 2 Nodes configured, 2 expected votes
>>>>>> 4 Resources configured.
>>>>>> ============
>>>>>>
>>>>>> Online: [ testdb02 testdb01 ]
>>>>>>
>>>>>> pingd_web (ocf::pacemaker:pingd): Started testdb02
>>>>>> Master/Slave Set: ms_drbd_db
>>>>>> Slaves: [ testdb01 testdb02 ]
>>>>>> Clone Set: clnPingd_db
>>>>>> Started: [ testdb01 testdb02 ]
>>>>>> ======= $B$3$3$^$G(B
>>>>>>
>>>>>> $B$?$@!"(Bdrbd $B$N(Bstatus $B$r3NG'$9$k$H(B
>>>>>> drbd driver loaded OK; device status:
>>>>>> version: 8.4.1 (api:1/proto:86-100)
>>>>>> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
>>>>>> eno [at] testdb0, 2011-12-27 17:22:50
>>>>>> m:res cs ro ds p mounted fstype
>>>>>> 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
>>>>>>
>>>>>> $B$H!"$J$C$F$$$^$9!#(B
>>>>>> $B$3$l$K4X$7$F$O!"$3$l$+$i3NG'$7$^$9$,!"3NG'$9$Y$-%]%$%s%H$O$"$j$^$9$+!)(B
>>>>>>
>>>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>>>>>>
>>>>>>
>>>>>> 2012$BG/(B1$B7n(B5$BF|(B14:25 $B4d:j!w%5!<%I%&%'%"(B <iwasaki [at] 3ware>:
>>>>>>> $B4d:j$G$9(B
>>>>>>>
>>>>>>> $B%(%i!<%m%0$O$I$N$h$&$K=P$F$^$9$+!)(B
>>>>>>> not installed $B$N%(%i!<$,=P$F$$$k$N$G!"(Bdrbd*$B7O$N%3%^%s%I$,<u$1IU$1$i$l$F$$$J$$$+!"(B
>>>>>>> $B8=>u$N(BOCF$B$@$H(BDRBD$B$N(B8.4.x$B$KBP1~$G$-$F$$$J$$$+$b$7$l$^$;$s!#(B
>>>>>>> $B$3$A$i$G$b>/$73NG'$7$F$_$^$9!<(B
>>>>>>>
>>>>>>> On Thu, 5 Jan 2012 14:17:07 +0900, K.Enomoto wrote:
>>>>>>>> $B1]K\$H?=$7$^$9!#(B
>>>>>>>>
>>>>>>>> DRBD+Heartbeat3+Pacemaker+PostgreSQL $B$H$$$&4D6-$r9=C[$7$h$&$H8!>ZCf$J$N$G$,!"(B
>>>>>>>> $B@5>o$KF0:n$5$;$k$3$H$,$G$-$^$;$s!#(B
>>>>>>>> $B3NG'$7$J$1$l$P$J$i$J$$;v$,$"$j$^$7$?$i!"$465<x$/$@$5$$!#(B
>>>>>>>>
>>>>>>>> $B8=>u!"2<5-$N$h$&$J>uBV$G$9!#(B
>>>>>>>> ============$B$3$3$+$i(B
>>>>>>>> Last updated: Thu Jan 5 09:05:38 2012
>>>>>>>> Stack: Heartbeat
>>>>>>>> Current DC: testdb02 (b5feda07-cd6d-4a74-8b5a-704021dc0841) -
>>>>>>>> partition with quorum
>>>>>>>> Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87
>>>>>>>> 2 Nodes configured, 2 expected votes
>>>>>>>> 4 Resources configured.
>>>>>>>> ============
>>>>>>>>
>>>>>>>> Online: [ testdb01 testdb02 ]
>>>>>>>>
>>>>>>>> pingd_web (ocf::pacemaker:pingd): Started testdb01
>>>>>>>> Master/Slave Set: ms_drbd_db
>>>>>>>> drbd_db:0 (ocf::linbit:drbd): Slave testdb02 (unmanaged)
>>>>>>>> FAILED
>>>>>>>> drbd_db:1 (ocf::linbit:drbd): Slave testdb01 (unmanaged)
>>>>>>>> FAILED
>>>>>>>> Clone Set: clnPingd_db
>>>>>>>> Started: [ testdb02 testdb01 ]
>>>>>>>>
>>>>>>>> Failed actions:
>>>>>>>> drbd_db:0_start_0 (node=testdb02, call=8, rc=5, status=complete):
>>>>>>>> not installed
>>>>>>>> drbd_db:0_stop_0 (node=testdb02, call=13, rc=5, status=complete):
>>>>>>>> not installed
>>>>>>>> drbd_db:1_start_0 (node=testdb01, call=9, rc=5, status=complete):
>>>>>>>> not installed
>>>>>>>> drbd_db:1_stop_0 (node=testdb01, call=15, rc=5, status=complete):
>>>>>>>> not installed
>>>>>>>> ===== $B$3$3$^$G(B
>>>>>>>>
>>>>>>>> $B"#4D6-(B
>>>>>>>> CentOS6.2(kernel 2.6.32-220.2.1.el6.x86_64)
>>>>>>>>
>>>>>>>> drbd 8.4.1
>>>>>>>> http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz $B$r;HMQ$7(Brpm$B$r:n@.$7%$%s%9%H!<%k(B
>>>>>>>>
>>>>>>>> Heartbeat 3.0.5-1.1
>>>>>>>> Pacemaker 1.0.11-1.2
>>>>>>>> linux-ha$B$5$s$N(B [1-01] Pacemaker$B%j%]%8%H%j%Q%C%1!<%8(B (RHEL6) (1.0.11-1.2.2) $B$r;HMQ(B
>>>>>>>>
>>>>>>>>
>>>>>>>> $B"#(B $B2<5-$N(BCRM$B9=@.$G(Bpacemaker$B$r [at] _D$7$^$7$?!#(B
>>>>>>>>
>>>>>>>> # crm configure show
>>>>>>>> node $id="0925fa33-b21f-4f81-8c5f-e2d377d2f235" testdb01
>>>>>>>> node $id="b5feda07-cd6d-4a74-8b5a-704021dc0841" testdb02
>>>>>>>> primitive drbd_db ocf:linbit:drbd \
>>>>>>>> params drbd_resource="r0" \
>>>>>>>> op start interval="0s" timeout="240s" on-fail="restart" \
>>>>>>>> op monitor interval="11s" timeout="60s" on-fail="restart" \
>>>>>>>> op monitor interval="10s" role="Master" timeout="60s"
>>>>>>>> on-fail="restart" \
>>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>>> primitive fs_db ocf:heartbeat:Filesystem \
>>>>>>>> params device="/dev/drbd0" directory="/databd" fstype="ext4"
>>>>>>>> \
>>>>>>>> op start interval="0s" timeout="60s" on-fail="restart" \
>>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>>> op stop interval="0s" timeout="60s" on-fail="block"
>>>>>>>> primitive ip_db ocf:heartbeat:IPaddr2 \
>>>>>>>> params ip="192.168.33.75" nic="em1" cidr_netmask="24" \
>>>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>>> primitive pingd_db ocf:pacemaker:pingd \
>>>>>>>> params name="default_ping_set" host_list="172.25.33.74"
>>>>>>>> multiplier="100" dampen="0" \
>>>>>>>> meta migration-threshold="10" \
>>>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>>> primitive pingd_web ocf:pacemaker:pingd \
>>>>>>>> params name="default_ping_set" host_list="192.168.100.1"
>>>>>>>> multiplier="100" dampen="0" \
>>>>>>>> meta migration-threshold="10" \
>>>>>>>> op start interval="0s" timeout="90s" on-fail="restart" \
>>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>>> op stop interval="0s" timeout="100s" on-fail="block"
>>>>>>>> primitive postgresql ocf:heartbeat:pgsql \
>>>>>>>> params pgctl="/usr/bin/pg_ctl" start_opt="-p 5432 -h
>>>>>>>> 127.0.0.1" psql="/usr/bin/psql" pgdata="/databb/pgsql"
>>>>>>>> pgdba="postgres" pgport="5432" pgdb="template1" \
>>>>>>>> op start interval="0s" timeout="120s" on-fail="restart" \
>>>>>>>> op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>>>>> op stop interval="0s" timeout="120s" on-fail="block"
>>>>>>>> group group_db fs_db ip_db postgresql
>>>>>>>> ms ms_drbd_db drbd_db \
>>>>>>>> meta master-max="1" master-node-max="1" clone-max="2"
>>>>>>>> clone-node-max="1" notify="true"
>>>>>>>> clone clnPingd_db pingd_db \
>>>>>>>> meta clone-max="2" clone-node-max="1"
>>>>>>>> location group_db-location group_db \
>>>>>>>> rule $id="group_db-location-rule" 200: #uname eq testdb01 \
>>>>>>>> rule $id="group_db-location-rule-0" 100: #uname eq testdb02 \
>>>>>>>> rule $id="group_db-location-rule-1" -inf: defined
>>>>>>>> default_ping_set or default_ping_set lt 100
>>>>>>>> location master-location_db ms_drbd_db \
>>>>>>>> rule $id="master-location_db-rule" 200: #uname eq testdb01 \
>>>>>>>> rule $id="master-location_db-rule-0" 100: #uname eq testdb02
>>>>>>>> \
>>>>>>>> rule $id="master-location_db-rule-1" $role="master" -inf:
>>>>>>>> defined default_ping_set or default_ping_set lt 100
>>>>>>>> colocation clnPingd_db-colocation 1000: group_db clnPingd_db
>>>>>>>> colocation db_on_drbd inf: group_db ms_drbd_db:Master
>>>>>>>> order order_db_after_drbd inf: ms_drbd_db:promote group_db:start
>>>>>>>> property $id="cib-bootstrap-options" \
>>>>>>>> cluster-infrastructure="Heartbeat" \
>>>>>>>> expected-quorum-votes="2" \
>>>>>>>> no-quorum-policy="ignore" \
>>>>>>>> stonith-enabled="false" \
>>>>>>>> startup-fencing="false" \
>>>>>>>> dc-deadtime="20s" \
>>>>>>>> dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87"
>>>>>>>> rsc_defaults $id="rsc-options" \
>>>>>>>> resource-stickiness="INFINITY" \
>>>>>>>> migration-threshold="1"
>>>>>>>> -----------------------------------------------------------------
>>>>>>>> ocf:linbit:drbd $B$,0-$$$N$+$H;W$$!"(B/usr/lib/ocf/resource.d/linbit/drbd
>>>>>>>> $B$NB8:_$O3NG'$7$?$7$^$?!#(B
>>>>>>>> drbd-pacemaker-8.4.1-1.el6.x86_64$B$+$i%$%s%9%H!<%k$7$^$7$?!#(B
>>>>>>>>
>>>>>>>> $B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(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
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ----
>>>>> Takehiro Matsushima
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>>>
>>> --
>>> ----
>>> Takehiro Matsushima
>>>
>>> _______________________________________________
>>> 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
>
>
>
> --
> ----
> Takehiro Matsushima
>
> _______________________________________________
> 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 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.