1
votes

I am setting up a Linux-HA(corosync+pacemaker) cluster which includes 2 nodes, and I defined several resources:

primitive virtual-ip   
primitive main-service   
primitive db  
clone db-clone  

My question is could we identify which node will be the master node before pacemaker begin or during loading services? I mean which node will virutal-ip resource running on? Is there any crm command line api or other method?

thanks,
Emre

1

1 Answers

0
votes

As per the configuration of corosync.conf you define which ip is your primary node and which is secondary node, as per the failover approach when node1 one is down,node2 becomes primary in active/passive configuration.

crm configure show command gives you the configured information of both nodes.

crm status shows you the node which is online

Please check the link below for more information :-

http://www.tokiwinter.com/clustering-with-drbd-corosync-and-pacemaker/

Thanks & Regards,
Alok Thaker