Hi all, 

I'm trying to configure a heartbeat cluster with 2 nodes and a drbd
filesystem (the cib.xml is attached to this message). 

The problem is that, when I try to move the resource from a node to
other, the filesystem resource try to mount before that the drbd
master_slave resource set the correct master node and the mount fail.


The heartbeat version that I'm using is 2.1.4 and the drbd version is
8.0.16 
The command that I'm using to move the resource is:
crm_resource -M -r webip -H node1.example.com 

or

crm_resource -M -r webip -H nodo2.example.com 
Thanks for your answer. 
Best regards, 
Carlos Chiriboga Calderon 
PD: My english is terrible :(
<cib admin_epoch="13" num_updates="13" epoch="13">
        <configuration>
                <crm_config />
                <nodes />
                <resources>
                        <primitive id="webip" class="ocf" type="IPaddr" 
provider="heartbeat">
                                <instance_attributes id="attr_webip1">
                                        <attributes>
                                                <nvpair id="id_ipaddr"  
name="ip"                       value="172.20.2.210"/>
                                                <nvpair id="id_netmask" 
name="netmask"                  value="24"/>
                                                <nvpair id="id_device"  
name="nic"                      value="eth0"/>
                                                <nvpair id="id_start"   
name="local_start_script"       value="/etc/ifup.sh"/>
                                        </attributes>
                                </instance_attributes>
                        </primitive>
                        <master_slave id="ms_drbd">
                                <meta_attributes 
id="ms_drbd_mysql-meta_attributes">
                                        <attributes>
                                                <nvpair id="ms_drbd_notify" 
name="notify" value="yes"/>
                                                <nvpair id="ms_drbd_globa" 
name="globally_unique" value="false"/>
                                                <nvpair id="ms_drbd_master_max" 
name="master_max" value="1"/>
                                        </attributes>
                                </meta_attributes>
                                <primitive id="drbd0" class="ocf" 
provider="heartbeat" type="drbd">
                                        <instance_attributes id="ia-r0">
                                                <attributes>
                                                        <nvpair id="resource" 
name="drbd_resource" value="r0"/>
                                                </attributes>
                                        </instance_attributes>
                                        <operations>
                                                <op id="op-r0-1" name="monitor" 
interval="29s" timeout="10s" role="Master"/>
                                                <op id="op-r0-2" name="monitor" 
interval="30s" timeout="10s" role="Slave"/>
                                        </operations>
                                </primitive>
                        </master_slave>
                        <group id="group_fs">
                                <primitive id="FS_replica" class="ocf" 
type="Filesystem" provider="heartbeat">
                                        <instance_attributes id="attr_Fs">
                                                <attributes>
                                                        <nvpair id="device"     
name="device"           value="/dev/drbd1"/>
                                                        <nvpair id="replica"    
name="directory"        value="/replica"/>
                                                        <nvpair id="fs_type1"   
        name="fstype"           value="ext3"/>
                                                </attributes>
                                        </instance_attributes>
                                        <operations>
                                                <op id="fs_mon" name="monitor" 
interval="5s"/>
                                        </operations>
                                </primitive>
                        </group>
                </resources>
                <constraints>
                        <rsc_colocation id="loc_ip_groupfs"             
from="webip"    to="group_fs" score="INFINITY"/>
                        <rsc_colocation id="loc_grpFS_r0"               
from="group_fs" to="ms_drbd" to_role="Master" score="INFINITY"/>
                        <rsc_order id="order_named_r0_group_fs"         
from="ms_drbd"  action="start" type="before" to="group_fs"/>
                        <rsc_order id="order_grpFS_webip"               
from="group_fs" action="start" type="before" to="webip"/> 
                </constraints>
        </configuration>
        <status />
</cib>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to