[ClusterLabs] DRBD: both nodes stuck in secondary mode

2016-06-13 Thread Kevin THIERRY
Hello, I've been trying to setup pacemaker to get a HA system for a web application but I am having a hard time with DRBD. I have two nodes and drbd is configured in single primary mode. The issue I am facing is that I always end up with the two nodes being secondary/slaves, no node gets prom

Re: [ClusterLabs] DRBD: both nodes stuck in secondary mode

2016-06-14 Thread Ken Gaillot
On 06/13/2016 10:13 PM, Kevin THIERRY wrote: > Hello, > > I've been trying to setup pacemaker to get a HA system for a web > application but I am having a hard time with DRBD. I have two nodes and > drbd is configured in single primary mode. The issue I am facing is that > I always end up with the

Re: [ClusterLabs] DRBD: both nodes stuck in secondary mode

2016-06-14 Thread Dimitri Maziuk
On 06/13/2016 10:13 PM, Kevin THIERRY wrote: > Hello, > > I've been trying to setup pacemaker to get a HA system for a web > application but I am having a hard time with DRBD. This worked for me: First, make sure your drbd resource is consistent/up to date and finished syncing. IME initial setu

Re: [ClusterLabs] DRBD: both nodes stuck in secondary mode

2016-06-15 Thread Kevin THIERRY
Hello ! I wasn't expecting such great explanations, thanks a lot Ken ! Also thank you for your example Dimitri ! It solved the issue I had ! I'm still having trouble though: when I make the primary node fail (I unplug it), the secondary node starts everything as expected but the httpd servic

Re: [ClusterLabs] DRBD: both nodes stuck in secondary mode

2016-06-15 Thread Kevin THIERRY
I found out why it didn't work, fail-count for resource httpd was at INFINITY: # crm_simulate -sL [...] value="INFINITY"/> [...] To reset the fail-count: # pcs resource failcount reset httpd Now it works as expected :) Next step: configure STONISH ! Thanks again ! Kevin On 06/15/2016 02:18