[Linux-HA] Couldn't mount filesystem /dev/drbd0 on /shared

Alejandro Rios alejandro.rios at avatar.com.co
Mon Oct 8 11:12:01 MDT 2007


Hi.

Now I have upgraded to hb 2.1.2, and the results are not quite different.

I start hb with the drbd0 partition and filesystem resources (target_role)
stopped, and then I use the following command to start drbd:

 # crm_resource -r ms-r0 -v '#default' --meta -p target_role

But I only get Secondary/Secondary status, so the fs0 filesystem mounting
would fail:

flexo:~# cat /proc/drbd 
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root at flexo, 2007-09-30 17:52:57
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0

I running out of options here. ¿does somebody have a full cib.xml example
with drbd and any service running for two nodes?  The linux-ha web site only
has snippets of drbd config for v2.

My full syslog is at:   http://paste.debian.net/39125

--------------------------------
crm_mon -1:
--------------------------------
============
Last updated: Mon Oct  8 11:47:58 2007
Current DC: hal-9000 (9f275006-1303-4c16-b5c6-3f52c4ed0865)
2 Nodes configured.
3 Resources configured.
============

Node: hal-9000 (9f275006-1303-4c16-b5c6-3f52c4ed0865): online
Node: flexo (d66a3fcc-da10-4807-afec-950187f4c084): online

Resource Group: group_1
    IPaddr_192_168_0_101        (heartbeat::ocf:IPaddr):        Started
flexo
    samba_3     (lsb:samba):    Started flexo
Master/Slave Set: ms-r0
    r0:0        (heartbeat::ocf:drbd):  Started flexo
    r0:1        (heartbeat::ocf:drbd):  Started hal-9000

Failed actions:
    fs0_start_0 (node=hal-9000, call=9, rc=1): Error
    fs0_start_0 (node=flexo, call=12, rc=1): Error

--------------------------------
cib.xml:
--------------------------------
 <cib admin_epoch="0" have_quorum="false" num_peers="0"
cib_feature_revision="1.3" generated="false" epoch="29" num_updates="1356"
cib-last-written="Mon Oct  8 10:46:04 2007" ignore_dtd="false">
   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-symmetric_cluster"
name="symmetric_cluster" value="true"/>
           <nvpair id="cib-bootstrap-options-no_quorum_policy"
name="no_quorum_policy" value="ignore"/>
           <nvpair id="cib-bootstrap-options-default_resource_stickiness"
name="default_resource_stickiness" value="INFINITY"/>
           <nvpair
id="cib-bootstrap-options-default_resource_failure_stickiness"
name="default_resource_failure_stickiness" value="INFINITY"/>
           <nvpair id="cib-bootstrap-options-stonith_enabled"
name="stonith_enabled" value="false"/>
           <nvpair id="cib-bootstrap-options-stonith_action"
name="stonith_action" value="reboot"/>
           <nvpair id="cib-bootstrap-options-stop_orphan_resources"
name="stop_orphan_resources" value="true"/>
           <nvpair id="cib-bootstrap-options-stop_orphan_actions"
name="stop_orphan_actions" value="true"/>
           <nvpair id="cib-bootstrap-options-remove_after_stop"
name="remove_after_stop" value="false"/>
           <nvpair id="cib-bootstrap-options-short_resource_names"
name="short_resource_names" value="true"/>
           <nvpair id="cib-bootstrap-options-transition_idle_timeout"
name="transition_idle_timeout" value="5min"/>
           <nvpair id="cib-bootstrap-options-default_action_timeout"
name="default_action_timeout" value="10s"/>
           <nvpair id="cib-bootstrap-options-is_managed_default"
name="is_managed_default" value="true"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node uname="hal-9000" type="normal"
id="9f275006-1303-4c16-b5c6-3f52c4ed0865">
         <instance_attributes
id="master-9f275006-1303-4c16-b5c6-3f52c4ed0865">
           <attributes/>
         </instance_attributes>
       </node>
       <node uname="flexo" type="normal"
id="d66a3fcc-da10-4807-afec-950187f4c084">
         <instance_attributes
id="master-d66a3fcc-da10-4807-afec-950187f4c084">
           <attributes/>
         </instance_attributes>
       </node>
     </nodes>
     <resources>
       <group id="group_1">
         <primitive class="ocf" id="IPaddr_192_168_0_101"
provider="heartbeat" type="IPaddr">
           <instance_attributes id="IPaddr_192_168_0_101_inst_attr">
             <attributes>
               <nvpair id="IPaddr_192_168_0_101_attr_0" name="ip"
value="192.168.0.101"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive class="lsb" id="samba_3" provider="heartbeat"
type="samba">
           <operations>
             <op id="samba_1_start" name="stop" timeout="5s"/>
             <op id="samba_2_stop" name="start" timeout="5s"/>
           </operations>
         </primitive>
       </group>
       <master_slave id="ms-r0">
         <meta_attributes id="ma-ms-r0">
           <attributes>
             <nvpair id="ma-ms-r0-1" name="clone_max" value="2"/>
             <nvpair id="ma-ms-r0-2" name="clone_node_max" value="1"/>
             <nvpair id="ma-ms-r0-3" name="master_max" value="1"/>
             <nvpair id="ma-ms-r0-4" name="master_node_max" value="1"/>
             <nvpair id="ma-ms-r0-5" name="notify" value="yes"/>
             <nvpair id="ma-ms-r0-6" name="globally_unique" value="false"/>
             <nvpair id="ma-ms-r0-7" name="target_role" value="#default"/>
           </attributes>
         </meta_attributes>
         <primitive id="r0" class="ocf" provider="heartbeat" type="drbd">
           <instance_attributes id="ia-r0">
             <attributes>
               <nvpair id="ia-r0-1" name="drbd_resource" value="r0"/>
             </attributes>
           </instance_attributes>
           <operations>
             <op id="r0_1_start" name="stop" timeout="10s"/>
             <op id="r0_2_stop" name="start" timeout="10s"/>
           </operations>
         </primitive>
       </master_slave>
       <primitive class="ocf" provider="heartbeat" type="Filesystem"
id="fs0">
         <meta_attributes id="ma-fs0">
           <attributes>
             <nvpair name="target_role" id="ma-fs0-1" value="#default"/>
           </attributes>
         </meta_attributes>
         <instance_attributes id="ia-fs0">
           <attributes>
             <nvpair id="ia-fs0-1" name="fstype" value="ext3"/>
             <nvpair id="ia-fs0-2" name="directory" value="/shared"/>
             <nvpair id="ia-fs0-3" name="device" value="/dev/drbd0"/>
           </attributes>
         </instance_attributes>
         <operations>
           <op id="fs_1_start" name="stop" timeout="10s"/>
           <op id="fs_2_stop" name="start" timeout="10s"/>
           <op id="fs_3_monitor" name="start" interval="10s"/>
         </operations>
       </primitive>
     </resources>
     <constraints>
       <rsc_order id="r0_before_fs0" to="ms-r0" to_action="promote"
from="fs0" action="start"/>
       <rsc_colocation id="fs0_on_r0" to="ms-r0" to_role="stopped"
from="fs0" score="-INFINITY"/> 
       <rsc_location id="rsc_location_r0" rsc="ms-r0">
         <rule id="prefered_location_r0" score="INFINITY">
           <expression attribute="#uname" id="prefered_location_r0_expr"
operation="eq" value="flexo"/>
         </rule>
       </rsc_location>
       <rsc_location id="rsc_location_group_1" rsc="group_1">
         <rule id="prefered_location_group_1" score="INFINITY">
           <expression attribute="#uname"
id="prefered_location_group_1_expr" operation="eq" value="flexo"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
 </cib>



Dejan Muhamedagic <dejanmm at fastmail.fm> escribió: 
>

Hi,
>
>On Fri, Oct 05, 2007 at 04:10:39PM -0500, Alejandro Rios Peña wrote:
>> While I manage to upgrade to a heartbeat  2.1.2 debian backport,  DC 
>> node syslog output is now at:  http://paste.debian.net/38899
>
>Again can't see anything: the log part posted ends before the
>interesting stuff. Let's wait for 2.1.2 to be installed.
>
>Thanks,
>
>Dejan
>
>> 
>> Thank you.
>> 
>> Dejan Muhamedagic wrote:
>> >>Doing it by hand and mounting the filesystem works without 
>> >>problem.
>> >>
>> >>Maybe I configured something wrong, could somebody help me pointing it
>
>> >>out?
>> >>
>> >>I'm using:
>> >>heartbeat 2.0.7-2
>> >>    
>> >
>> >You could upgrade to 2.1.2.
>> >...
>> >  
>> 
>> >>From where is this log (looks as if it's from flexo)? I don't see
>> >any problems here (beware: I don't have much experience with
>> >drbd). The other log (from the DC node) could be more
>> >interesting.
>> >
>> >Thanks,
>> >
>> >Dejan
>> >
>> >
>> >  
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA at lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>_______________________________________________
>Linux-HA mailing list
>Linux-HA at lists.linux-ha.org
>http://lists.linux-ha.org/mailman/listinfo/linux-ha
>See also: http://linux-ha.org/ReportingProblems
>
>
-- 
Alejandro Ríos Peña
Avatar Ltda.
http://www.avatar.com.co





More information about the Linux-HA mailing list