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>