User Tools

Site Tools


informatica:linux:heartbeat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatica:linux:heartbeat [2012/10/10 12:41] javiinformatica:linux:heartbeat [2012/10/10 12:49] javi
Line 12: Line 12:
  
   * Los dos nodos se comunican mediante trafico multicast, por lo que la red/cortafuegos... lo tiene que permitir   * Los dos nodos se comunican mediante trafico multicast, por lo que la red/cortafuegos... lo tiene que permitir
 +
  
 ===== Configuracion ===== ===== Configuracion =====
Line 60: Line 61:
 ucast eth2 10.0.0.15 ucast eth2 10.0.0.15
  
-auto_failback on+auto_failback off
  
 node balancer-1.dev.jj.com node balancer-1.dev.jj.com
Line 70: Line 71:
 | 10.0.0.15 | IP address of the node. In this case belongs to balancer-1.dev.jj.com | | 10.0.0.15 | IP address of the node. In this case belongs to balancer-1.dev.jj.com |
 | node balancer-1.dev.jj.com\\ node balancer-2.dev.jj.com | Nodes name. Should be the same on both nodes. If no DNS entry have them added to /etc/hosts | | node balancer-1.dev.jj.com\\ node balancer-2.dev.jj.com | Nodes name. Should be the same on both nodes. If no DNS entry have them added to /etc/hosts |
 +| auto_failback off | Prefiero hacer un sanity check antes de volver a poner como activo el nodo que fallo |
  
 ---- ----
Line 84: Line 86:
  
  
-===== Asignar IP virtual a cada nodo ===== 
  
-1. A mano, ajustando a la interfaz de red adecuada (eth2 en este caso): 
  
-  sudo ifconfig eth2:0 10.0.0.200 netmask 255.255.255.0 
- 
-2. Permanente, ajustando a la interfaz de red adecuada (eth2 en este caso): 
- 
-  sudo vim /etc/network/interfaces 
- 
-<code> 
-auto eth2:0 
-allow-hotplug eth2:0 
-iface eth2:0 inet static 
-        address 10.0.0.200 
-        netmask 255.255.255.0 
-</code> 
  
 ===== Servicio ===== ===== Servicio =====
informatica/linux/heartbeat.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1