Online: [ nodeA nodeB ] both nodes are online Resource Group: RESOURCES-SQL VIP_SQL (ocf::heartbeat:IPaddr2): Started nodeA Master/Slave Set: MasterMaster_MYSQL [MYSQL] Masters: [ nodeA ] nodeA is the master Slaves: [ nodeB ] nodeB is the slave
Node nodeA: standby nodeA is offline Online: [ nodeB ] nodeB is the only one online Resource Group: RESOURCES-SQL VIP_SQL (ocf::heartbeat:IPaddr2): Started nodeB Master/Slave Set: MasterMaster_MYSQL [MYSQL] Masters: [ nodeB ] nodeB has become the master Stopped: [ nodeA ]
Online: [ nodeA nodeB ] both nodes are back online Resource Group: RESOURCES-SQL VIP_SQL (ocf::heartbeat:IPaddr2): Started nodeB Master/Slave Set: MasterMaster_MYSQL [MYSQL] Masters: [ nodeB ] nodeB stays the master Slaves: [ nodeA ] nodeA is now the slave
crm status
============ Last updated: Tue Feb 14 10:27:56 2017 Last change: Tue Feb 14 10:05:49 2017 via crm_attribute on nodeB Stack: openais Current DC: nodeB - partition with quorum Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff 2 Nodes configured, 2 expected votes 3 Resources configured. ============ Online: [ nodeA nodeB ] both nodes are online Resource Group: RESOURCES-SQL VIP_SQL (ocf::heartbeat:IPaddr2): Started nodeA Master/Slave Set: MasterMaster_MYSQL [MYSQL] Masters: [ nodeA ] Slaves: [ nodeB ] Here's the answer !
crm status
============ Last updated: Tue Feb 14 10:27:58 2017 Last change: Tue Feb 14 10:05:49 2017 via crm_attribute on nodeB Stack: openais Current DC: nodeB - partition with quorum Version: 1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff 2 Nodes configured, 2 expected votes 3 Resources configured. ============ Online: [ nodeA nodeB ] Resource Group: RESOURCES-SQL VIP_SQL (ocf::heartbeat:IPaddr2): Started nodeA Master/Slave Set: MasterMaster_MYSQL [MYSQL] Masters: [ nodeA ] Slaves: [ nodeB ]
crm_mon -1 does the same, but is harder to remember
Failed actions:
MYSQL:1_monitor_31000 (node=nodeA, call=59, rc=1, status=complete): unknown error
Waiting for 1 replies from the CRMd. OK