-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node status readable=0 ,after node online -> standby -> online #7
Comments
Hi, Regards, Yves Le 2013-04-09 07:22, zhaoshenju a écrit :
|
hi,y-trudeau: Very happy to see your reply! Not only in the jboss-204 this is the case,in all other slave such as jboss-205 is this [root@jboss-203 /]# crm statusLast updated: Wed Apr 10 15:50:36 2013 5 Resources configured.Online: [ jboss-203 jboss-204 jboss-205 ] reader_vip_1 (ocf::heartbeat:IPaddr2): Started jboss-203 I run the "bash -x /usr/lib/ocf/resource.d/percona/mysql monitor" command output is as follows +/usr/lib/ocf/resource.d/percona/mysql:1508::date Whether it is at master or at slave, are not implemented to mysql_monitor function position exit. However, in the rest of the output of the file /tmp/mysql.ocf.ra.debug/log containing text:
This indicates function mysql_monitor is executed I need to provide what information? |
This is the output of the command "cibadmin -Q | grep readable | grep nvpair" |
Have you enable the trace file? mkdir /tmp/mysql.ocf.ra.debug look in the "log" file and see what the monitor op is doing. Le 2013-04-10 05:34, zhaoshenju a écrit :
|
[root@jboss-203 ~]# crm status
Last updated: Fri Mar 29 23:39:09 2013
Stack: openais
Current DC: jboss-204 - partition with quorum
Version: 1.0.12-unknown
3 Nodes configured, 3 expected votes
#5 Resources configured.
Online: [ jboss-203 jboss-204 jboss-205 ]
reader_vip_1 (ocf::heartbeat:IPaddr2): Started jboss-203
reader_vip_2 (ocf::heartbeat:IPaddr2): Started jboss-204
reader_vip_3 (ocf::heartbeat:IPaddr2): Started jboss-205
writer_vip (ocf::heartbeat:IPaddr2): Started jboss-204
Master/Slave Set: ms_MySQL
Masters: [ jboss-204 ]
Slaves: [ jboss-203 jboss-205 ]
[root@jboss-203 ~]# crm node standby jboss-204
[root@jboss-203 ~]#
[root@jboss-203 ~]# crm node online jboss-204
[root@jboss-203 ~]#
after a few minutes.
[root@jboss-203 ~]# crm status
Last updated: Fri Mar 29 23:40:34 2013
Stack: openais
Current DC: jboss-204 - partition with quorum
Version: 1.0.12-unknown
3 Nodes configured, 3 expected votes
#5 Resources configured.
Online: [ jboss-203 jboss-204 jboss-205 ]
reader_vip_1 (ocf::heartbeat:IPaddr2): Started jboss-203
reader_vip_2 (ocf::heartbeat:IPaddr2): Started jboss-205
reader_vip_3 (ocf::heartbeat:IPaddr2): Started jboss-203
writer_vip (ocf::heartbeat:IPaddr2): Started jboss-203
Master/Slave Set: ms_MySQL
Masters: [ jboss-203 ]
Slaves: [ jboss-205 jboss-204 ]
[root@jboss-203 ~]# crm resource migrate reader_vip_1 jboss-204
[root@jboss-203 ~]# crm status
Last updated: Fri Mar 29 23:40:59 2013
Stack: openais
Current DC: jboss-204 - partition with quorum
Version: 1.0.12-unknown
3 Nodes configured, 3 expected votes
#5 Resources configured.
Online: [ jboss-203 jboss-204 jboss-205 ]
reader_vip_1 (ocf::heartbeat:IPaddr2): Started jboss-203
reader_vip_2 (ocf::heartbeat:IPaddr2): Started jboss-205
reader_vip_3 (ocf::heartbeat:IPaddr2): Started jboss-203
writer_vip (ocf::heartbeat:IPaddr2): Started jboss-203
Master/Slave Set: ms_MySQL
Masters: [ jboss-203 ]
Slaves: [ jboss-205 jboss-204 ]
[root@jboss-203 ~]# cibadmin -Q | grep readable | grep nvpair
but on node jboss-204, mysql slave is ok,seconds_behind_master=0
why readable=0?
[root@jboss-203 ~]# crm configure show
node jboss-203
attributes p_mysql_mysql_master_IP="192.168.10.203"
attributes standby="off"
node jboss-204
attributes p_mysql_mysql_master_IP="192.168.10.204"
attributes standby="off"
node jboss-205
attributes p_mysql_mysql_master_IP="192.168.10.205"
attributes standby="off"
primitive p_mysql ocf:percona:mysql
params config="/app/mysql/etc/my.cnf" pid="/data/mysql/data/mysql.pid" socket="/data/mysql/tmp/mysql.sock" replication_user="slave" replication_passwd="hGrXFdoEnWnW" max_slave_lag="180" evict_outdated_slaves="false" binary="/app/mysql/bin/mysqld" datadir="/data/mysql/data/" test_user="prm_test_user" test_passwd="XvrhWjtmIhzs" client_binary="/app/mysql/bin/mysql"
op monitor interval="5s" role="Master" OCF_CHECK_LEVEL="1"
op monitor interval="2s" role="Slave" OCF_CHECK_LEVEL="1"
op start interval="0" timeout="120s"
op stop interval="0" timeout="120s"
primitive reader_vip_1 ocf:heartbeat:IPaddr2
params ip="192.168.10.101" nic="eth0"
op monitor interval="10s"
primitive reader_vip_2 ocf:heartbeat:IPaddr2
params ip="192.168.10.102" nic="eth0"
op monitor interval="10s"
primitive reader_vip_3 ocf:heartbeat:IPaddr2
params ip="192.168.10.105" nic="eth0"
op monitor interval="10s"
primitive writer_vip ocf:heartbeat:IPaddr2
params ip="192.168.10.107" nic="eth0"
op monitor interval="10s"
ms ms_MySQL p_mysql
meta master-max="1" master-node-max="1" clone-max="3" clone-node-max="1" notify="true" globally-unique="false" target-role="Master" is-managed="true"
location loc-No-reader-vip-2 reader_vip_2
rule $id="rule-no-reader-vip-2" -inf: readable eq 0
location loc-No-reader-vip-3 reader_vip_3
rule $id="rule-no-reader-vip-3" -inf: readable eq 0
location loc-no-reader-vip-1 reader_vip_1
rule $id="rule-no-reader-vip-1" -inf: readable eq 0
colocation writer_vip_on_master inf: writer_vip ms_MySQL:Master
order ms_MySQL_promote_before_vip inf: ms_MySQL:promote writer_vip:start
property $id="cib-bootstrap-options"
dc-version="1.0.12-unknown"
cluster-infrastructure="openais"
expected-quorum-votes="3"
stonith-enabled="false"
no-quorum-policy="ignore"
property $id="mysql_replication"
p_mysql_REPL_INFO="192.168.10.203|mysql-bin.000012|1252"
The text was updated successfully, but these errors were encountered: