<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 6, 2010, at 9:23 PM, ch huang wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">i notice my drbd status is abnormal,it seems they can not find each other,and i try to restart drbd ,but still can not find each other<br></blockquote><div><br></div><div><br></div>Well, this has nothing to do with Pacemaker, you would need to issue</div><div><br></div><div>crm resource stop drbd_mysql and then fix it by hands</div><div><br></div><div>by the way, in your configuration you don't need "start" drbd, linbit RA will do it for you.</div><div><br></div><div><br></div><div><blockquote type="cite"><br>before restart drbd<br>[root@PRIM init.d]# cat /proc/drbd<br>version: 8.3.2 (api:88/proto:86-90)<br>
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by <a href="mailto:mockbuild@v20z-x86-64.home.local">mockbuild@v20z-x86-64.home.local</a>, 2009-08-29 14:02:24<br><br> 1: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----<br> ns:0 nr:0 dw:100 dr:2863 al:3 bm:3 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:16384<br>
<br>[root@SEC ~]# cat /proc/drbd<br>version: 8.3.2 (api:88/proto:86-90)<br>GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by <a href="mailto:mockbuild@v20z-x86-64.home.local">mockbuild@v20z-x86-64.home.local</a>, 2009-08-29 14:02:24<br><br> 1: cs:StandAlone ro:Secondary/Unknown ds:Outdated/DUnknown r----<br>
ns:0 nr:0 dw:0 dr:0 al:0 bm:18 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:270284<br><br>after restart drbd<br><br>[root@PRIM init.d]# cat /proc/drbd<br>version: 8.3.2 (api:88/proto:86-90)<br>GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by <a href="mailto:mockbuild@v20z-x86-64.home.local">mockbuild@v20z-x86-64.home.local</a>, 2009-08-29 14:02:24<br>
<br> 1: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown r----<br> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:16384<br><br>[root@SEC ~]# cat /proc/drbd<br>version: 8.3.2 (api:88/proto:86-90)<br>
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by <a href="mailto:mockbuild@v20z-x86-64.home.local">mockbuild@v20z-x86-64.home.local</a>, 2009-08-29 14:02:24<br><br> 1: cs:StandAlone ro:Secondary/Unknown ds:Outdated/DUnknown r----<br> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:270284<br>
<br><br><br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 9:15 AM, ch huang <span dir="ltr"><<a href="mailto:justlooks@gmail.com">justlooks@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">
mysql is running ,and crm status output is<br><br>============<br>Last updated: Sat Jun 5 09:48:58 2010<br>Stack: openais<br>Current DC: PRIM - partition with quorum<br>Version: 1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7<br>
2 Nodes configured, 2 expected votes<br>2 Resources configured.<br>============<br><br>Online: [ PRIM SEC ]<br><br> Resource Group: mysql<br> fs_mysql (ocf::heartbeat:Filesystem): Started PRIM<br> ip_mysql (ocf::heartbeat:IPaddr2): Started PRIM<br>
mysqld (lsb:mysqld): Started PRIM<br> Master/Slave Set: ms_drbd_mysql<br> Masters: [ PRIM ]<br> Slaves: [ SEC ]<br><br>and i finished the mysql by <br><br>#service mysqld stop<br>Stopping MySQL: [ OK ]<br>
# service mysqld status<br>mysqld is stopped<br><br>but in the crm status output , mysql still in running ,i do not understand why?<br><br>============<br>Last updated: Sat Jun 5 09:48:58 2010<br>Stack: openais<br>Current DC: PRIM - partition with quorum<br>
Version: 1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7<br>2 Nodes configured, 2 expected votes<br>2 Resources configured.<br>============<br><br>Online: [ PRIM SEC ]<br><br> Resource Group: mysql<br> fs_mysql (ocf::heartbeat:Filesystem): Started PRIM<br>
ip_mysql (ocf::heartbeat:IPaddr2): Started PRIM<br> mysqld (lsb:mysqld): Started PRIM<br> Master/Slave Set: ms_drbd_mysql<br> Masters: [ PRIM ]<br> Slaves: [ SEC ]<br><br>and here is my configure<br>
<br># crm<br>crm(live)# configure<br>crm(live)configure# show<br>node PRIM<br>node SEC<br>primitive drbd_mysql ocf:linbit:drbd \<br> params drbd_resource="r1" \<br> op monitor interval="15s"<br></blockquote></div></blockquote><div><br></div><div>I am pretty sure you need to modify this to something like this:</div><div><meta charset="utf-8"><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; position: static; z-index: auto; "> op monitor interval="59s" role="Master" timeout="30s" \
op monitor interval="60s" role="Slave" timeout="30s"</pre></span><div><br></div></div><div><br></div><div><br></div><br><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; ">
primitive fs_mysql ocf:heartbeat:Filesystem \<br> params device="/dev/drbd/by-res/r1" directory="/drbddata/" fstype="ext3"<br>primitive ip_mysql ocf:heartbeat:IPaddr2 \<br> params ip="192.168.76.227" nic="eth0"<br>
primitive mysqld lsb:mysqld<br>group mysql fs_mysql ip_mysql mysqld<br>ms ms_drbd_mysql drbd_mysql \<br> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"<br>
colocation mysql_on_drbd inf: mysql ms_drbd_mysql:Master<br>order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start<br>property $id="cib-bootstrap-options" \<br> no-quorum-policy="ignore" \<br>
stonith-enabled="false" \<br> expected-quorum-votes="2" \<br> dc-version="1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7" \<br> cluster-infrastructure="openais" \<br>
default-action-timeout="240s"<br><br>
</blockquote></div><br>
_______________________________________________<br>Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br><br>Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a><br>Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br></blockquote></div><br></body></html>