I just updated from 2.1.0 to 2.1.2 and it appears that the rsc_order
constraint I was was using to mount a drbd filesystem after a drbd resource
is promoted is no longer working.

I have attached the CIB I am using.

It appears to attempt a start on 'shared_filesystem' *before* promoting
'shared_storage':

Aug  9 16:11:07 redun1 crmd: [19394]: info: do_lrm_rsc_op: Performing 
op=shared_filesystem_start_0 key=34:3:c3ec3075-915c-4279-a45a-ec2fbe0d522f)
Aug  9 16:11:07 redun1 crmd: [19394]: info: do_lrm_rsc_op: Performing 
op=prim_shared_storage:1_notify_0 key=44:3:c3ec3075-915c-4279-a45a-ec2fbe0d522
f)
Aug  9 16:11:07 redun1 drbd[19860]: [19874]: DEBUG: sip-shared notify: pre for 
promote - counts: active 0 - starting 0 - stopping 0
Aug  9 16:11:07 redun1 crmd: [19394]: info: process_lrm_event: LRM operation 
prim_shared_storage:1_notify_0 (call=8, rc=0) complete
Aug  9 16:11:07 redun1 Filesystem[19854]: [19895]: INFO: Running start for 
/dev/drbd0 on /shared
Aug  9 16:11:07 redun1 lrmd: [19391]: info: RA output: 
(shared_filesystem:start:stderr) mount: block device /dev/drbd0 is 
write-protected, mounting
read-only
Aug  9 16:11:07 redun1 lrmd: [19391]: info: RA output: 
(shared_filesystem:start:stderr) mount: /dev/drbd0 already mounted or /shared 
busy
Aug  9 16:11:07 redun1 Filesystem[19854]: [19909]: ERROR: Couldn't mount 
filesystem /dev/drbd0 on /shared
Aug  9 16:11:07 redun1 crmd: [19394]: ERROR: process_lrm_event: LRM operation 
shared_filesystem_start_0 (call=7, rc=1) Error unknown error
Aug  9 16:11:07 redun1 crmd: [19394]: info: build_operation_update: Digest for 
4:1;34:3:c3ec3075-915c-4279-a45a-ec2fbe0d522f (shared_filesystem_star
t_0) was 5858fd8b1fcc9107c71c24186f95f937
Aug  9 16:11:07 redun1 crmd: [19394]: info: log_data_element: 
build_operation_update: digest:source <parameters directory="/shared" 
fstype="reiserfs
" device="/dev/drbd0"/>
Aug  9 16:11:09 redun1 crmd: [19394]: info: do_lrm_rsc_op: Performing 
op=prim_shared_storage:1_promote_0 key=6:3:c3ec3075-915c-4279-a45a-ec2fbe0d522
f)
Aug  9 16:11:09 redun1 drbd[19917]: [19929]: DEBUG: sip-shared: Calling drbdadm 
-c /etc/drbd.conf state sip-shared
Aug  9 16:11:09 redun1 drbd[19917]: [19936]: DEBUG: sip-shared: Exit code 0
Aug  9 16:11:09 redun1 drbd[19917]: [19937]: DEBUG: sip-shared: Command output: 
Secondary/Secondary
Aug  9 16:11:09 redun1 drbd[19917]: [19945]: DEBUG: sip-shared: Calling drbdadm 
-c /etc/drbd.conf cstate sip-shared
Aug  9 16:11:09 redun1 drbd[19917]: [19958]: DEBUG: sip-shared: Exit code 0
Aug  9 16:11:09 redun1 drbd[19917]: [19959]: DEBUG: sip-shared: Command output: 
Connected
Aug  9 16:11:09 redun1 drbd[19917]: [19960]: DEBUG: sip-shared status: 
Secondary/Secondary Secondary Secondary Connected
Aug  9 16:11:09 redun1 drbd[19917]: [19961]: DEBUG: sip-shared: Calling drbdadm 
-c /etc/drbd.conf primary sip-shared
Aug  9 16:11:09 redun1 kernel: drbd0: Secondary/Secondary --> Primary/Secondary
Aug  9 16:11:09 redun1 drbd[19917]: [19968]: DEBUG: sip-shared: Exit code 0
Aug  9 16:11:09 redun1 drbd[19917]: [19969]: DEBUG: sip-shared: Command output:
Aug  9 16:11:09 redun1 lrmd: [19391]: info: RA output: 
(prim_shared_storage:1:promote:stdout)
Aug  9 16:11:09 redun1 drbd[19917]: [19971]: DEBUG: sip-shared: Calling drbdadm 
-c /etc/drbd.conf state sip-shared
Aug  9 16:11:09 redun1 drbd[19917]: [19978]: DEBUG: sip-shared: Exit code 0
Aug  9 16:11:09 redun1 drbd[19917]: [19979]: DEBUG: sip-shared: Command output: 
Primary/Secondary
Aug  9 16:11:09 redun1 drbd[19917]: [19987]: DEBUG: sip-shared: Calling drbdadm 
-c /etc/drbd.conf cstate sip-shared
Aug  9 16:11:09 redun1 drbd[19917]: [20000]: DEBUG: sip-shared: Exit code 0
Aug  9 16:11:09 redun1 drbd[19917]: [20001]: DEBUG: sip-shared: Command output: 
Connected
Aug  9 16:11:09 redun1 drbd[19917]: [20002]: DEBUG: sip-shared status: 
Primary/Secondary Primary Secondary Connected
Aug  9 16:11:09 redun1 drbd[19917]: [20003]: INFO: sip-shared promote: primary 
succeeded

Any idea what's wrong here?

-- 
James Oakley
[EMAIL PROTECTED]
<cib>
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <attributes>
          <nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names" value="true" />
          <nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing" value="true" />
          <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false" />
          <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="true" />
          <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions" value="true" />
          <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot" />
          <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true" />
          <nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources" value="true" />
          <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="stop" />
          <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="-100" />
          <nvpair id="cib-bootstrap-options-probe_complete" name="probe_complete" value="true" />
          <nvpair id="cib-bootstrap-options-transition-idle-timeout" name="transition-idle-timeout" value="60s" />
          <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="800" />
        </attributes>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="1f7cf7cc-7d90-43fb-a7bd-f13fb5c203c1" type="normal" uname="redun2" />
      <node id="cd34ed93-fa5d-4092-a618-ac6349351d13" type="normal" uname="redun1" />
    </nodes>
    <resources>
      <master_slave id="shared_storage">
        <meta_attributes id="ma_shared_storage">
          <attributes>
            <nvpair id="shared_storage_ma_master_node_max" name="master_node_max" value="1" />
            <nvpair id="shared_storage_ma_master_max" name="master_max" value="1" />
            <nvpair id="shared_storage_ma_notify" name="notify" value="yes" />
            <nvpair id="shared_storage_ma_clone_max" name="clone_max" value="2" />
            <nvpair id="shared_storage_ma_clone_node_max" name="clone_node_max" value="1" />
            <nvpair id="shared_storage_ma_globally_unique" name="globally_unique" value="false" />
          </attributes>
        </meta_attributes>
        <primitive class="ocf" id="prim_shared_storage" provider="heartbeat" type="drbd">
          <operations>
            <op id="shared_storage_op_monitor" interval="120s" name="monitor" timeout="60s" />
          </operations>
          <instance_attributes id="ias_prim_shared_storage">
            <attributes>
              <nvpair id="shared_storage_attr_drbd_resource" name="drbd_resource" value="sip-shared" />
            </attributes>
          </instance_attributes>
        </primitive>
      </master_slave>
      <primitive class="ocf" id="shared_filesystem" provider="heartbeat" type="Filesystem">
        <operations>
          <op id="shared_filesystem_op_monitor" interval="120s" name="monitor" timeout="60s" />
        </operations>
        <instance_attributes id="ias_shared_filesystem">
          <attributes>
            <nvpair id="shared_filesystem_attr_device" name="device" value="/dev/drbd0" />
            <nvpair id="shared_filesystem_attr_directory" name="directory" value="/shared" />
            <nvpair id="shared_filesystem_attr_fstype" name="fstype" value="reiserfs" />
          </attributes>
        </instance_attributes>
      </primitive>
    </resources>
    <constraints>
      <!--<rsc_colocation from="shared_filesystem" id="colocation_shared_filesystem_not_shared_storage:stopped" score="-INFINITY" to="shared_storage" to_role="stopped" />
      <rsc_colocation from="shared_filesystem" id="colocation_shared_filesystem_not_shared_storage:slave" score="-INFINITY" to="shared_storage" to_role="slave" />-->
      <rsc_colocation from="shared_filesystem" id="colocation_shared_filesystem_shared_storage:master" score="INFINITY" to="shared_storage" to_role="master" />
      <rsc_order from="shared_filesystem" id="order_shared_filesystem_after_shared_storage:promote" to="shared_storage" to_action="promote" />
    </constraints>
  </configuration>
</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