<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1"><font face="Courier New, Courier, monospace">Hi!<br>
<br>
<font size="-1">I <font size="-1">have 2 node c<font size="-1">luster.
On each node I have mysql, nginx and php-fpm. Each node
have it's own virtual IP. I <font size="-1">n<font
size="-1">eed this virtual ip to migrate t<font
size="-1">o <font size="-1">other node if one of
services</font></font></font></font></font></font></font>
(mysql/nginx/php-fpm) is down/stopped. How can I do it?<br>
<br>
<font size="-1"><font size="-1">!!! </font>Scheme:<br>
<font size="-1"><font size="-1">==<font size="-1">- </font></font>Normal<font
size="-1"> situation:</font><br>
Node 1 (Core1.Test) <br>
<font size="-1">My<font size="-1">SQL is running<br>
<font size="-1">Ngin<font size="-1">X is running<br>
<font size="-1">Php-Fpm is running<br>
<font size="-1">Core1<font size="-1">_IP <font
size="-1">is on Node<font size="-1"> 1<br>
<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font
face="Courier New, Courier, monospace"><font
size="-1"><font size="-1">Node <font
size="-1">2</font> (vCore1.Test)
<br>
<font size="-1">My<font size="-1">SQL
is running<br>
<font size="-1">Ngin<font
size="-1">X is running<br>
<font size="-1">Php-Fpm is
running<br>
<font size="-1">vCore1<font
size="-1">_IP <font
size="-1">is on
Node<font
size="-1"> <font
size="-1">2</font><br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="-1">==- </font>If some service (for ex. MySQL
on Node 1) failed or stopped:<br>
</font></font></font></font><font size="-1"><font
face="Courier New, Courier, monospace"><font size="-1"><font
face="Courier New, Courier, monospace"><font size="-1"><font
size="-1">Node 1 (Core1.Test) <br>
<font size="-1">My<font size="-1">SQL is stopped<br>
<font size="-1">Ngin<font size="-1">X is running<br>
<font size="-1">Php-Fpm is running<br>
<font size="-1">Core1<font size="-1">_IP <font
size="-1">is on Node<font size="-1"> <font
size="-1">2</font><br>
<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font
face="Courier New, Courier,
monospace"><font size="-1"><font
size="-1">Node <font
size="-1">2</font>
(vCore1.Test) <br>
<font size="-1">My<font
size="-1">SQL is running<br>
<font size="-1">Ngin<font
size="-1">X is running<br>
<font size="-1">Php-Fpm
is running<br>
<font size="-1">vCore1<font
size="-1">_IP <font
size="-1">is
on Node<font
size="-1"> <font
size="-1">2</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
</font></font><font size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1">Core1<font
size="-1">_IP <font size="-1">is on
Node<font size="-1"> <font
size="-1">2</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="-1"><br>
!!! My config:<br>
<font size="-1">node Core1.Test \<br>
attributes standby="off"<br>
node vCore1.</font></font></font></font><font size="-1"><font
face="Courier New, Courier, monospace"><font size="-1"><font
size="-1"><font size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font>\<br>
attributes standby="off"<br>
primitive Core1_IP ocf:heartbeat:IPaddr2 \<br>
params ip="192.168.0.139" nic="bond0"<br>
primitive P_MYSQL lsb:mysqld \<br>
op monitor interval="5s" timeout="20s"<br>
primitive P_NGINX lsb:nginx \<br>
op monitor interval="5s" timeout="20s"<br>
primitive P_PHP lsb:php-fpm \<br>
op monitor interval="5s" timeout="20s"<br>
primitive vCore1_IP ocf:heartbeat:IPaddr2 \<br>
params ip="192.168.0.141" nic="bond0"<br>
clone CL_MYSQL P_MYSQL \<br>
params clone-max="2" clone-node-max="1"
globally-unique="false"<br>
clone CL_NGINX P_NGINX \<br>
params clone-max="2" clone-node-max="1"
globally-unique="false"<br>
clone CL_PHP P_PHP \<br>
params clone-max="2" clone-node-max="1"
globally-unique="false"<br>
location L_MYSQL_01 CL_MYSQL 100: Core1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1">Test<br>
</font></font></font></font>location L_MYSQL_02
CL_MYSQL 100: vCore1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location L_NGINX_01 CL_NGINX 100: Core1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location L_NGINX_02 CL_NGINX 100: vCore1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location L_PHP_01 CL_PHP 100: Core1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location L_PHP_02 CL_PHP 100: vCore1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location location_Core1_IP Core1_IP inf: Core1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location location_Core1_IP_2 Core1_IP 10: vCore1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
location location_vCore1_IP vCore1_IP inf: vCore1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test<br>
</font></font></font></font></font></font></font></font>location
location_vCore1_IP_2 vCore1_IP 10: Core1.</font></font></font></font><font
size="-1"><font face="Courier New, Courier, monospace"><font
size="-1"><font size="-1"><font size="-1"><font face="Courier
New, Courier, monospace"><font size="-1"><font size="-1"><font
size="-1"><font face="Courier New, Courier,
monospace"><font size="-1"><font size="-1">Test</font></font></font></font></font></font></font></font><br>
property $id="cib-bootstrap-options" \<br>
dc-version="1.1.8-7.el6-394e906" \<br>
cluster-infrastructure="classic openais (with
plugin)" \<br>
expected-quorum-votes="2" \<br>
no-quorum-policy="ignore" \<br>
symmetric-cluster="false" \<br>
stonith-enabled="false"<br>
</font><br>
</font></font></font>
</body>
</html>