[ClusterLabs] 2 Nodes Pacemaker for Nginx can only failover 1 time
Hello Everyone, I setup a cluster with two nodes with pacemaker 1.1.10 on CentOS 7. Then I downloaded aresource agent for nginx from github https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/nginx I tested my setup like this: 1. Node 1 is started with the nginx and vip, everyting is ok 2. Kill Node1 nginx, wait for a few seconds 3. See the ngnix and vip are moved to node2, failover succeeded, and Node1 doesn't have any resources active 4. I kill nginx on node2, but nginx and vip don't come back to Node1 I set no-quorum-policy=ignore and stonith-enabled=false. Why won't pacemaker let the resource come back to Node1? What did I miss here? I guess the node1 is still in some failure status, how can I recovery the node? Does anyone can shed some light on my questions? Thank you in advance. Thanks, Jacob ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
Re: [ClusterLabs] 2 Nodes Pacemaker for Nginx can only failover 1 time
Hello Jacob, Look at the journal. It will tell you. Also, it's hard to debug without any information from the daemons. Regards, Noel Kuntze Am 9. August 2015 05:02:15 MESZ, schrieb jun huang huangjun@gmail.com: Hello Everyone, I setup a cluster with two nodes with pacemaker 1.1.10 on CentOS 7. Then I downloaded aresource agent for nginx from github https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/nginx I tested my setup like this: 1. Node 1 is started with the nginx and vip, everyting is ok 2. Kill Node1 nginx, wait for a few seconds 3. See the ngnix and vip are moved to node2, failover succeeded, and Node1 doesn't have any resources active 4. I kill nginx on node2, but nginx and vip don't come back to Node1 I set no-quorum-policy=ignore and stonith-enabled=false. Why won't pacemaker let the resource come back to Node1? What did I miss here? I guess the node1 is still in some failure status, how can I recovery the node? Does anyone can shed some light on my questions? Thank you in advance. Thanks, Jacob ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
Re: [ClusterLabs] 2 Nodes Pacemaker for Nginx can only failover 1 time
On 08/08/15 11:02 PM, jun huang wrote: Hello Everyone, I setup a cluster with two nodes with pacemaker 1.1.10 on CentOS 7. Then I downloaded aresource agent for nginx from github https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/nginx I tested my setup like this: 1. Node 1 is started with the nginx and vip, everyting is ok 2. Kill Node1 nginx, wait for a few seconds 3. See the ngnix and vip are moved to node2, failover succeeded, and Node1 doesn't have any resources active 4. I kill nginx on node2, but nginx and vip don't come back to Node1 I set |no-quorum-policy=ignore| and |stonith-enabled=false|. Without fencing (stonith), the cluster will enter an undefined state after a node fails and debugging becomes very difficult. Please configure (and test!) stonith, then see if your problem remains. Why won't pacemaker let the resource come back to Node1? What did I miss here? I guess the node1 is still in some failure status, how can I recovery the node? Does anyone can shed some light on my questions? Thank you in advance. Thanks, Jacob ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org