--
You received this message because you are subscribed to the Google Groups "PRM-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prm-discuss...@googlegroups.com.
To post to this group, send email to prm-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/prm-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
crm_simulate -Ls --node-down db02
Current cluster status:
Online: [ db01 db02 db03 ]
reader_vip_2 (ocf::heartbeat:IPaddr2): Started db03
writer_vip (ocf::heartbeat:IPaddr2): Started db01
reader_vip_1 (ocf::heartbeat:IPaddr2): Started db02
Master/Slave Set: ms_mysql [mysql_prm]
Masters: [ db01 ]
Slaves: [ db02 db03 ]
Performing requested modifications
+ Taking node db02 offline
Allocation scores:
...
native_color: writer_vip allocation score on db01: 1360
native_color: writer_vip allocation score on db02: -INFINITY
native_color: writer_vip allocation score on db03: -INFINITY
native_color: reader_vip_2 allocation score on db01: -200
native_color: reader_vip_2 allocation score on db02: 0
native_color: reader_vip_2 allocation score on db03: 150
native_color: reader_vip_1 allocation score on db01: 0
native_color: reader_vip_1 allocation score on db02: 0
native_color: reader_vip_1 allocation score on db03: -150
Transition Summary:
* Start reader_vip_1 (db01)
crm_simulate -Ls --node-down db03
Current cluster status:
Online: [ db01 db02 db03 ]
reader_vip_2 (ocf::heartbeat:IPaddr2): Started db03
writer_vip (ocf::heartbeat:IPaddr2): Started db01
reader_vip_1 (ocf::heartbeat:IPaddr2): Started db02
Master/Slave Set: ms_mysql [mysql_prm]
Masters: [ db01 ]
Slaves: [ db02 db03 ]
Performing requested modifications
+ Taking node db03 offline
Allocation scores:
...
native_color: writer_vip allocation score on db01: 1360
native_color: writer_vip allocation score on db02: -INFINITY
native_color: writer_vip allocation score on db03: -INFINITY
native_color: reader_vip_2 allocation score on db01: -200
native_color: reader_vip_2 allocation score on db02: 0
native_color: reader_vip_2 allocation score on db03: 0
native_color: reader_vip_1 allocation score on db01: -200
native_color: reader_vip_1 allocation score on db02: 0
native_color: reader_vip_1 allocation score on db03: 0
Transition Summary:
* Start reader_vip_2 (db02)
native_color: reader_vip_2 allocation score on db01: -200
native_color: reader_vip_2 allocation score on db02: 0
native_color: reader_vip_2 allocation score on db03: 150
native_color: reader_vip_1 allocation score on db01: -200
native_color: reader_vip_1 allocation score on db02: 150
native_color: reader_vip_1 allocation score on db03: -150
root@pacemaker-1:~# crm_simulate -Ls --node-down pacemaker-3 | grep vip
reader_vip_1 (ocf::heartbeat:IPaddr2): Started pacemaker-1
reader_vip_2 (ocf::heartbeat:IPaddr2): Started pacemaker-3
writer_vip (ocf::heartbeat:IPaddr2): Started pacemaker-2
native_color: reader_vip_2 allocation score on pacemaker-1: 0
native_color: reader_vip_2 allocation score on pacemaker-2: 0
native_color: reader_vip_2 allocation score on pacemaker-3: 0
native_color: reader_vip_1 allocation score on pacemaker-1: -200
native_color: reader_vip_1 allocation score on pacemaker-2: 0
native_color: reader_vip_1 allocation score on pacemaker-3: 0
native_color: writer_vip allocation score on pacemaker-1: -INFINITY
native_color: writer_vip allocation score on pacemaker-2: 816
native_color: writer_vip allocation score on pacemaker-3: -INFINITY
* Move reader_vip_1 (Started pacemaker-1 -> pacemaker-2)
* Start reader_vip_2 (pacemaker-1)
which is the expected behavior.
Nope, read carefully:
* Move reader_vip_1 (Started pacemaker-1 -> pacemaker-2)
* Start reader_vip_2 (pacemaker-1)
It ends on pacemaker-1, not -2 which is the master. I also did the real thing and the surviving slave has the 2 read vips.
Regards,
Yves
I see what you mean, I'll test something and come back to you.
Regards,
Yves