[Pacemaker] resource migrate has no effect - got no clue
    Koch, Sebastian 
    Sebastian.Koch at netzwerk.de
       
    Tue Jan 26 17:33:23 UTC 2010
    
    
  
Hi,
 
i am kind of new to pacemaker. I am trying to configure a active/passive pacemaker/drbd/mysql cluster. Preferably all resources should run on node1 if available, if not they should migrate to node2.  I already read all the howtos, guides and now i reached the point were i hope to get some help from you experts. My problem is, that if i try to test the cluster with a manual migration like 
 
crm resource migrate grp_MySQL pinguin01-node2 nothing happens. If i manually reboot the active node it does a nice and clean failover. It is frustrating ;-)
Thats the syslog output right after issued the command:
 
...
Jan 26 18:30:21 prolog01-node1 crm_resource: [12802]: info: Invoked: crm_resource -M -r grp_MySQL -H prolog01-node2
Jan 26 18:30:21 prolog01-node1 cib: [2585]: info: cib_process_request: Operation complete: op cib_delete for section constraints (origin=local/crm_resource/3, version=0.795.3): ok (rc=0)
Jan 26 18:30:21 prolog01-node1 cib: [2585]: info: cib_process_request: Operation complete: op cib_modify for section constraints (origin=local/crm_resource/4, version=0.795.3): ok (rc=0)
...
 
Here you can see some debugging output (i will contribute the small script i am using for these dumps later if i finished the whole installation, i will write  a comprehensive step-by-step howto as soon is gt everything up and working, cause it seems to me that most oft he howtos do not face every issue):
 
--- Cluster Config & Status Dump --
Created: Tue Jan 26 18:25:01 CET 2010 on pinguin01-node1
Systeminfo: Linux pinguin01-node1 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux
 
#####################
### 1. DRBD State ###
#####################
 
drbd driver loaded OK; device status:
version: 8.3.4 (api:88/proto:86-91)
GIT-hash: 70a645ae080411c87b4482a135847d69dc90a6a2 build by phil at fat-tyre, 2009-10-06 14:36:06
m:res      cs         ro                 ds                 p  mounted       fstype
0:pinguin0  Connected  Primary/Secondary  UpToDate/UpToDate  C  /mnt/cluster  xfs
 
#######################
### 2. DRBD Config  ###
#####################
 
## generated by drbd-gui 0.5.0
 
global {
                usage-count     yes;
}
common {
  protocol C;
}
 
resource pinguin0 {
syncer {
        rate 125M;
}
    device    /dev/drbd0;
    disk      /dev/sdb1;
                meta-disk internal;
 
  on pinguin01-node1 {
    address   192.168.1.1:7789;
  }
  on pinguin01-node2 {
    address   192.168.1.2:7789;
  }
}
 
 
########################
### 3. Cluster State ###
########################
 
 
 
============
Last updated: Tue Jan 26 18:25:02 2010
Stack: openais
Current DC: pinguin01-node1 - partition with quorum
Version: 1.0.6-cebe2b6ff49b36b29a3bd7ada1c4701c7470febe
2 Nodes configured, 2 expected votes
2 Resources configured.
============
 
Online: [ pinguin01-node2 pinguin01-node1 ]
 
 Master/Slave Set: ms_drbd_mysql0
     Masters: [ pinguin01-node1 ]
     Slaves: [ pinguin01-node2 ]
 Resource Group: grp_MySQL
     res_Filesystem     (ocf::heartbeat:Filesystem):    Started pinguin01-node1
     res_ClusterIP      (ocf::heartbeat:IPaddr2):       Started pinguin01-node1
     res_MySQL  (lsb:mysql):    Started pinguin01-node1
     res_Apache (lsb:apache2):  Started pinguin01-node1
 
#########################
### 4. Cluster Config ###
#########################
 
node pinguin01-node1 \
        attributes standby="off"
node pinguin01-node2 \
        attributes standby="off"
primitive drbd_pinguin0 ocf:linbit:drbd \
        params drbd_resource="pinguin0" \
        operations $id="drbd_pinguin0-operations"
primitive res_Apache lsb:apache2 \
        operations $id="res_Apache-operations" \
        op stop interval="0" timeout="15" \
        op monitor interval="15" timeout="15" start-delay="15" \
        op status interval="0" timeout="15" \
        op start interval="0" timeout="15"
primitive res_ClusterIP ocf:heartbeat:IPaddr2 \
        params iflabel="ClusterIP" ip="10.1.1.175" \
        operations $id="res_ClusterIP_1-operations" \
        op stop interval="0" timeout="100" \
        op monitor interval="10" timeout="20" start-delay="0" \
        op status interval="10" timeout="20" \
        op start interval="0" timeout="90"
primitive res_Filesystem ocf:heartbeat:Filesystem \
        params fstype="xfs" directory="/mnt/cluster" device="/dev/drbd0" \
        operations $id="res_Filesystem-operations" \
        op stop interval="0" timeout="60" \
        op monitor interval="20" timeout="40" start-delay="0" \
        op start interval="0" timeout="60"
primitive res_MySQL lsb:mysql \
        operations $id="res_MySQL-operations" \
        op stop interval="0" timeout="15" \
        op monitor interval="15" timeout="15" start-delay="15" \
        op status interval="0" timeout="15" \
        op start interval="0" timeout="15"
group grp_MySQL res_Filesystem res_ClusterIP res_MySQL res_Apache \
        meta target-role="Started"
ms ms_drbd_mysql0 drbd_pinguin0 \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
location cli-prefer-grp_MySQL grp_MySQL \
        rule $id="cli-prefer-rule-grp_MySQL" inf: #uname eq pinguin01-node2
colocation col_drbd_on_mysql inf: grp_MySQL ms_drbd_mysql0:Master
order mysql_after_drbd inf: ms_drbd_mysql0:promote grp_MySQL:start
property $id="cib-bootstrap-options" \
        expected-quorum-votes="2" \
        stonith-enabled="false" \
        no-quorum-policy="ignore" \
        dc-version="1.0.6-cebe2b6ff49b36b29a3bd7ada1c4701c7470febe" \
        cluster-infrastructure="openais" \
        last-lrm-refresh="1264524276" \
        symmetric-cluster="true"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100"
 
--- Finished Dump ...  ---
 
Help is appreciated.
Sebastian Koch
                                                         
NETZWERK GmbH
Fon:  +49.711.220 5498 81
Mobil: +49.160.907 908 30
Fax:  +49.711.220 5499 27
Email: sebastian.koch at netzwerk.de
<mailto:olaf.mueller-haberland at netzwerk.de> Web:  www.netzwerk.de <http://www.netzwerk.de/> 
NETZWERK GmbH, Kurze Str. 40, 70794 Filderstadt-Bonlanden
Geschäftsführer: Siegfried Herner, Hans-Baldung Luley, Olaf Müller-Haberland
Sitz der Gesellschaft: Filderstadt-Bonlanden, Amtsgericht Stuttgart HRB 225547, WEEE-Reg Nr. DE 185 622 492
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100126/2aa9bf73/attachment-0001.html>
    
    
More information about the Pacemaker
mailing list