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><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 mockbuild@v20z-x86-64.home.local, 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 mockbuild@v20z-x86-64.home.local, 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 mockbuild@v20z-x86-64.home.local, 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 mockbuild@v20z-x86-64.home.local, 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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>
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>