[ClusterLabs] No slave is promoted to be master
范国腾
fanguoteng at highgo.com
Mon Apr 16 22:28:35 EDT 2018
Hi,
We install a new lab which only have the postgres resource and the vip resource. After the cluster is installed, the status is ok: only node is master and the other is slave. Then I run "pcs cluster stop --all" to close the cluster and then I run the "pcs cluster start --all" to start the cluster. All of the pgsql is slave status and they could not be promoted to be master any more like this:
Master/Slave Set: pgsql-ha [pgsqld]
Slaves: [ sds1 sds2 ]
There is no error in the log and the " crm_simulate -sL" show the flowing and it seems that the score is ok too. The detailed log and config is in the attachment.
[root at node1 ~]# crm_simulate -sL
Current cluster status:
Online: [ sds1 sds2 ]
Master/Slave Set: pgsql-ha [pgsqld]
Slaves: [ sds1 sds2 ]
Resource Group: mastergroup
master-vip (ocf::heartbeat:IPaddr2): Stopped
pgsql-master-ip (ocf::heartbeat:IPaddr2): Stopped
Allocation scores:
clone_color: pgsql-ha allocation score on sds1: 1
clone_color: pgsql-ha allocation score on sds2: 1
clone_color: pgsqld:0 allocation score on sds1: 1003
clone_color: pgsqld:0 allocation score on sds2: 1
clone_color: pgsqld:1 allocation score on sds1: 1
clone_color: pgsqld:1 allocation score on sds2: 1002
native_color: pgsqld:0 allocation score on sds1: 1003
native_color: pgsqld:0 allocation score on sds2: 1
native_color: pgsqld:1 allocation score on sds1: -INFINITY
native_color: pgsqld:1 allocation score on sds2: 1002
pgsqld:0 promotion score on sds1: 1002
pgsqld:1 promotion score on sds2: 1001
group_color: mastergroup allocation score on sds1: 0
group_color: mastergroup allocation score on sds2: 0
group_color: master-vip allocation score on sds1: 0
group_color: master-vip allocation score on sds2: 0
native_color: master-vip allocation score on sds1: 1003
native_color: master-vip allocation score on sds2: -INFINITY
native_color: pgsql-master-ip allocation score on sds1: 1003
native_color: pgsql-master-ip allocation score on sds2: -INFINITY
Transition Summary:
* Promote pgsqld:0 (Slave -> Master sds1)
* Start master-vip (sds1)
* Start pgsql-master-ip (sds1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.rar
Type: application/octet-stream
Size: 2728 bytes
Desc: log.rar
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20180417/977c8aac/attachment-0002.obj>
More information about the Users
mailing list