Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17832

Corosync/pacemaker/drbd/nginx - replication on separate network

$
0
0

Hello fellow linux admins...

 

I am experimenting with ha and am setting up a test environment on 2 Debian 7.8 nodes (running as xen domUs on physically separate dom0 hosts). I cannot seem to figure out how to configure corosync/pacemaker to manage nginx on a public IP address and drbd on a separate private network.

 

I have been successful at getting drbd configured and working (stand-alone). I've also been able to get failover_ip and nginx working successfully with pacemaker. But, I cannot seem to figure out how to get both drbd AND nginx managed by pacemaker on separate networks.

 

Some setup details:

node1:

  • eth0 (public) ip addr = xxx.xxx.xxx.150
  • eth1 (private) ip addr = 192.168.250.150

 

node 2:

  • eth0 (public) ip addr = xxx.xxx.xxx.151
  • eth1 (private) ip addr = 192.168.250.151

 

both nodes:

  • bind9 configured to serve DNS for local domain (drbd.local)
  • ntp configured and working correctly
  • iptables rules configured and allowing traffic between nodes on both networks
  • drbd/corosync/pacemaker all installed via apt-get

 

If anyone has any experience with setting up corosync/pacemaker/drbd, or knows of a good online resource (my google-fu is failing me) for setting up the scenario I'm after, it would be much appreciated!

 

If more info is needed (contents of configs, etc.) please ask.

 

EDIT: formatting

submitted by orange-zx10r-guy
[link][3 comments]

Viewing all articles
Browse latest Browse all 17832

Trending Articles