PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Pacemaker Problem



nr8
26.07.13, 16:50
Hallo Leute.

Ich habe leider ein Problem bei meinem zwei Node Pacemaker Cluster.
Ich habe einige Services konfiguriert und der Cluster wechselt auch brav im falle eines Fehler auf die andere Node.
Soweit funktioniert alles sehr fein.

Mein Problem ist dieses. Alle Services laufen auf der Node1. Node2 ist Up aber ich reboote Node2 einmal. Wenn Node2 wieder dem Cluster beigetreten ist übernimmt diese die Resourcen MySQL und Apache. Nach ca. 2-3 Sekunden gibt Node2 diese Resourcen wieder ab auf Node1. Das Problem das dabei entsteht ist das mein Service dabei unterbrochen wird.

Wenn ich das ganze umdrehe also alle Services laufen auf Node2 und ich reboote Node1 dann passiert dies nicht.

Ich weiss leider nicht mehr weiter und woran das liegen kann.
Ich Poste euch hier einmal die Config meiner Resourcen:


node ZK01 \
attributes standby="off"
node ZK02 \
attributes standby="off"
primitive res_apache ocf:heartbeat:apache \
params configfile="/etc/apache2/apache2.conf" httpd="/usr/sbin/apache2" port="80" \
op start interval="0" timeout="40s" \
op stop interval="0" timeout="60s" \
op monitor interval="20" timeout="20s" \
meta target-role="Started"
primitive res_drbd_knd ocf:linbit:drbd \
params drbd_resource="r_knd" \
op start interval="0" timeout="240" \
op promote interval="0" timeout="90" \
op demote interval="0" timeout="90" \
op stop interval="0" timeout="100" \
op monitor interval="10" role="Master" timeout="20" start-delay="0" \
op monitor interval="12" role="Slave" timeout="20" start-delay="0" \
op notify interval="0" timeout="90"
primitive res_fs_knd ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/knd-drbd" fstype="ext4" \
op start interval="0" timeout="60" \
op stop interval="0" timeout="60" \
op monitor interval="20" timeout="40" start-delay="0" \
op notify interval="0" timeout="60" \
meta target-role="Started"
primitive res_ip_knd ocf:heartbeat:IPaddr2 \
params ip="192.168.116.50" nic="eth0" broadcast="192.168.116.255" cidr_netmask="24" \
meta is-managed="true" target-role="Started"
primitive res_link_apache2_etc ocf:heartbeat:symlink \
params target="/knd-drbd/apache-etc" link="/etc/apache2" backup_suffix=".local-backup"
primitive res_link_apache2_log ocf:heartbeat:symlink \
params target="/knd-drbd/apache-log" link="/var/log/apache2" backup_suffix=".local-backup"
primitive res_link_apache2_www ocf:heartbeat:symlink \
params target="/knd-drbd/apache-www" link="/var/www" backup_suffix=".local-backup"
primitive res_link_mysql_etc ocf:heartbeat:symlink \
params target="/knd-drbd/mysql-etc" link="/etc/mysql" backup_suffix=".local-backup" \
meta target-role="Started"
primitive res_link_mysql_lib ocf:heartbeat:symlink \
params target="/knd-drbd/mysql-lib" link="/var/lib/mysql" backup_suffix=".local-backup" \
meta target-role="Started"
primitive res_mysql ocf:heartbeat:mysql \
params socket="/var/run/mysqld/mysqld.sock" \
op start interval="0" timeout="120s" \
op stop interval="0" timeout="120s" \
op monitor interval="20" timeout="30" \
meta target-role="Started"
primitive res_openldap lsb:openldap \
op monitor interval="10" timeout="15" \
op start interval="0" timeout="30" interval0 \
op stop interval="0" timeout="30" \
meta target-role="Started"
primitive res_tomcat-one lsb:tomcat-one \
op monitor interval="30" timeout="30" \
op start interval="0" timeout="70" \
op stop interval="0" timeout="120" \
meta target-role="Started"
primitive res_tomcat-two lsb:tomcat-two \
op monitor interval="30" timeout="30" \
op start interval="0" timeout="70" \
op stop interval="0" timeout="120" \
meta target-role="Started"
group grp_apache res_ip_knd res_apache \
meta target-role="Started" is-managed="true"
group grp_links_apache2 res_link_apache2_etc res_link_apache2_log res_link_apache2_www
group grp_links_mysql res_link_mysql_etc res_link_mysql_lib
ms ms_drbd_knd res_drbd_knd \
meta master-max="1" master-node-max="1" clone-node-max="1" clone-max="2" notify="true" interleave="true" target-role="Master"
location loc_ms_drbd_knd_on_ZK01 ms_drbd_knd \
rule $id="loc_ms_drbd_knd_on_ZK01-rule" $role="Master" 1000: #uname eq ZK01
colocation col_apache inf: grp_apache ms_drbd_knd:Master
colocation col_links_apache inf: grp_links_apache2 ms_drbd_knd:Master
colocation col_links_mysql inf: grp_links_mysql ms_drbd_knd:Master
colocation col_mysql inf: res_mysql ms_drbd_knd:Master
colocation col_openldap inf: res_openldap ms_drbd_knd:Master
colocation col_res_Filesystem_ms_drbd_knd inf: res_fs_knd ms_drbd_knd:Master
colocation col_tomcat-one inf: res_tomcat-one ms_drbd_knd:Master
colocation col_tomcat-two inf: res_tomcat-two ms_drbd_knd:Master
order ord_apache inf: res_fs_knd:start res_link_apache2_etc res_link_apache2_log res_link_apache2_www grp_apache
order ord_ms_drdb_knd inf: ms_drbd_knd:promote res_fs_knd:start
order ord_mysql inf: res_fs_knd:start res_link_mysql_etc res_link_mysql_lib res_mysql
order ord_openldap inf: res_fs_knd:start res_openldap
order ord_tomcat-one inf: res_mysql:start res_tomcat-one
order ord_tomcat-two inf: res_mysql:start res_tomcat-two
property $id="cib-bootstrap-options" \
dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
last-lrm-refresh="1374846841" \
default-resource-stickiness="1000"

Und hier noch die Scores dazu:

Resource Score Node Stickiness #Fail Migration-Threshold
res_apache 100 ZK01 100 0
res_apache -INFINITY ZK02 100 0
res_drbd_knd:0 0 ZK02 1 0
res_drbd_knd:0 10001 ZK01 1 0
res_drbd_knd:0_(master) 13400 ZK01 1 0
res_drbd_knd:1 10001 ZK02 1 0
res_drbd_knd:1 -INFINITY ZK01 1 0
res_drbd_knd:1_(master) 10000 ZK02 1 0
res_fs_knd 10101 ZK01 100 0
res_fs_knd -INFINITY ZK02 100 0
res_ip_knd 10201 ZK01 100 0
res_ip_knd -INFINITY ZK02 100 0
res_link_apache2_etc 10301 ZK01 100 0
res_link_apache2_etc -INFINITY ZK02 100 0
res_link_apache2_log 200 ZK01 100 0
res_link_apache2_log -INFINITY ZK02 100 0
res_link_apache2_www 100 ZK01 100 0
res_link_apache2_www -INFINITY ZK02 100 0
res_link_mysql_etc 10201 ZK01 100 0
res_link_mysql_etc -INFINITY ZK02 100 0
res_link_mysql_lib 100 ZK01 100 0
res_link_mysql_lib -INFINITY ZK02 100 0
res_mysql 10101 ZK01 100 0
res_mysql -INFINITY ZK02 100 0
res_openldap 10101 ZK01 100 0
res_openldap -INFINITY ZK02 100 0
res_tomcat-one 10101 ZK01 100 0
res_tomcat-one -INFINITY ZK02 100 0
res_tomcat-two 10101 ZK01 100 0
res_tomcat-two -INFINITY ZK02 100 0


Hat jemand eine Ahnung woran das liegen könnte?
Danke.

nr8
31.07.13, 08:10
Hat niemand eine Idee?