[DRBD-user] ocf:Filesystem

Papp Tamás tompos at martos.bme.hu
Mon Mar 10 11:55:11 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


For the archive, apparmor was enabled and inhibited heartbeat.

Thank you,

tamas

Papp Tamás wrote:
>
> Dear All,
>
> I try to use the subject, and somewhere else it's working perfectly, 
> but here on this system I'm stucked.
>
> System: Ubuntu 7.10 (gutsy), heartbeat 7.10, drbd 8.0.11
>
> This is the xml:
>
> <primitive class="ocf" provider="heartbeat" type="Filesystem" 
> id="mount_ve-ns1">
>  <instance_attributes id="ia_mount_ve-ns1">
>    <attributes>
>      <nvpair id="mount_ve-ns1_fstype" name="fstype" value="ext3"/>
>      <nvpair id="mount_ve-ns1_mountpoint" name="directory" 
> value="/vz/ve-ns1"/>
>      <nvpair id="mount_ve-ns1_device" name="device" value="/dev/drbd0"/>
>    </attributes>
>  </instance_attributes>
> </primitive>
>
> With a normal device like sda5 it's working. From command line after I 
> set the right OCF variables it's working.
> There is also some constraint rule, the make it belong to the Primary 
> drbd node.
>
> I've changed two thing in the Filesystem script:
>
> 1. #!/bin/sh -> /bin/bash
>    - without this it was not working, I've found this by google.
> 2. set -x
>   - why don't I see the output from this in the log?
>
> When I start it from hb_gui, I see this in the logs:
>
> mgmtd[4472]: 2008/03/06_09:16:54 info: on_set_target_role:<primitive 
> id="mount_ve-ns1"><instance_attributes 
> id="ia_mount_ve-ns1"><attributes><nvpair id="mount_ve-ns1_target_role" 
> name="target_role" 
> value="started"/></attributes></instance_attributes></primitive>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: - 
> <cib epoch="265">
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: -   
> <configuration>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: -     
> <resources>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -       <primitive id="mount_ve-ns1">
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -         <instance_attributes id="ia_mount_ve-ns1">
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -           <attributes>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -             <nvpair value="stopped" id="mount_ve-ns1_target_role"/>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -           </attributes>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -         </instance_attributes>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> -       </primitive>
> tengine[5486]: 2008/03/06_09:16:54 info: update_abort_priority: Abort 
> priority upgraded to 1000000
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: -     
> </resources>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: -   
> </configuration>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: - </cib>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: + 
> <cib epoch="266">
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: +   
> <configuration>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: +     
> <resources>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +       <primitive id="mount_ve-ns1">
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +         <instance_attributes id="ia_mount_ve-ns1">
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +           <attributes>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +             <nvpair value="started" id="mount_ve-ns1_target_role"/>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +           </attributes>
> crmd[4471]: 2008/03/06_09:16:54 info: do_state_transition: State 
> transition S_IDLE -> S_POLICY_ENGINE [ input=I_PE_CALC 
> cause=C_IPC_MESSAGE origin=route_message ]
> crmd[4471]: 2008/03/06_09:16:54 info: do_state_transition: All 2 
> cluster nodes are eligible to run resources.
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +         </instance_attributes>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: 
> +       </primitive>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: +     
> </resources>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: +   
> </configuration>
> cib[4467]: 2008/03/06_09:16:54 info: log_data_element: cib:diff: + </cib>
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'stop' for cluster option 'no-quorum-policy'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'true' for cluster option 'symmetric-cluster'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'false' for cluster option 'stonith-enabled'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'reboot' for cluster option 'stonith-action'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '0' for cluster option 'default-resource-stickiness'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '0' for cluster option 
> 'default-resource-failure-stickiness'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'true' for cluster option 'is-managed-default'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '60s' for cluster option 'cluster-delay'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '20s' for cluster option 'default-action-timeout'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'true' for cluster option 'stop-orphan-resources'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'true' for cluster option 'stop-orphan-actions'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'false' for cluster option 'remove-after-stop'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '-1' for cluster option 'pe-error-series-max'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '-1' for cluster option 'pe-warn-series-max'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value '-1' for cluster option 'pe-input-series-max'
> pengine[5487]: 2008/03/06_09:16:54 notice: cluster_option: Using 
> default value 'true' for cluster option 'startup-fencing'
> pengine[5487]: 2008/03/06_09:16:54 info: determine_online_status: Node 
> fw2 is online
> pengine[5487]: 2008/03/06_09:16:54 WARN: unpack_rsc_op: Processing 
> failed op (mount_ve-ns1_start_0) on fw2
> pengine[5487]: 2008/03/06_09:16:54 WARN: unpack_rsc_op: Handling 
> failed start for mount_ve-ns1 on fw2
> pengine[5487]: 2008/03/06_09:16:54 info: determine_online_status: Node 
> fw1 is online
> pengine[5487]: 2008/03/06_09:16:54 info: unpack_find_resource: 
> Internally renamed ve-ns1:0 on fw1 to ve-ns1:1
> pengine[5487]: 2008/03/06_09:16:54 info: log_data_element: 
> process_orphan_resource: Orphan resource <lrm_resource 
> id="resource_mount" type="Filesystem" class="ocf" provider="heartbeat">
> pengine[5487]: 2008/03/06_09:16:54 info: log_data_element: 
> process_orphan_resource: Orphan resource   <lrm_rsc_op 
> id="resource_mount_monitor_0" operation="monitor" 
> crm-debug-origin="build_active_RAs" 
> transition_key="5:8:06be3d50-9826-44a5-8ba5-61072b8788a6" 
> transition_magic="4:7;5:8:06be3d50-9826-44a5-8ba5-61072b8788a6" 
> call_id="9" crm_feature_set="1.0.9" rc_code="7" op_status="4" 
> interval="0" op_digest="5f2ae49f899ebe85616e075a5347519d"/>
> pengine[5487]: 2008/03/06_09:16:54 info: log_data_element: 
> process_orphan_resource: Orphan resource </lrm_resource>
> pengine[5487]: 2008/03/06_09:16:54 WARN: process_orphan_resource: 
> Nothing known about resource resource_mount running on fw1
> pengine[5487]: 2008/03/06_09:16:54 info: log_data_element: 
> create_fake_resource: Orphan resource <lrm_resource 
> id="resource_mount" type="Filesystem" class="ocf" provider="heartbeat">
> pengine[5487]: 2008/03/06_09:16:54 info: log_data_element: 
> create_fake_resource: Orphan resource   <lrm_rsc_op 
> id="resource_mount_monitor_0" operation="monitor" 
> crm-debug-origin="build_active_RAs" 
> transition_key="5:8:06be3d50-9826-44a5-8ba5-61072b8788a6" 
> transition_magic="4:7;5:8:06be3d50-9826-44a5-8ba5-61072b8788a6" 
> call_id="9" crm_feature_set="1.0.9" rc_code="7" op_status="4" 
> interval="0" op_digest="5f2ae49f899ebe85616e075a5347519d"/>
> pengine[5487]: 2008/03/06_09:16:54 info: log_data_element: 
> create_fake_resource: Orphan resource </lrm_resource>
> pengine[5487]: 2008/03/06_09:16:54 info: process_orphan_resource: 
> Making sure orphan resource_mount is stopped
> pengine[5487]: 2008/03/06_09:16:54 WARN: unpack_rsc_op: Processing 
> failed op (mount_ve-ns1_start_0) on fw1
> pengine[5487]: 2008/03/06_09:16:54 WARN: unpack_rsc_op: Handling 
> failed start for mount_ve-ns1 on fw1
> pengine[5487]: 2008/03/06_09:16:54 info: clone_print: Master/Slave 
> Set: ms_ve-ns1
> pengine[5487]: 2008/03/06_09:16:54 info: native_print:     
> ve-ns1:0     (heartbeat::ocf:drbd):  Started fw2
> pengine[5487]: 2008/03/06_09:16:54 info: native_print:     
> ve-ns1:1     (heartbeat::ocf:drbd):  Master fw1
> pengine[5487]: 2008/03/06_09:16:54 info: native_print: 
> mount_ve-ns1     (heartbeat::ocf:Filesystem):    Stopped
> pengine[5487]: 2008/03/06_09:16:54 info: native_print: 
> resource_tmp     (heartbeat::ocf:Filesystem):    Stopped
> pengine[5487]: 2008/03/06_09:16:54 info: master_color: Promoting ve-ns1:1
> pengine[5487]: 2008/03/06_09:16:54 info: master_color: Promoted 1 
> instances of a possible 1 to master
> pengine[5487]: 2008/03/06_09:16:54 notice: DemoteRsc: fw1       Demote 
> ve-ns1:1
> pengine[5487]: 2008/03/06_09:16:54 notice: NoRoleChange: Leave 
> resource ve-ns1:1        (fw1)
> pengine[5487]: 2008/03/06_09:16:54 notice: NoRoleChange: Leave 
> resource ve-ns1:0        (fw2)
> pengine[5487]: 2008/03/06_09:16:54 notice: DemoteRsc: fw1       Demote 
> ve-ns1:1
> pengine[5487]: 2008/03/06_09:16:54 notice: NoRoleChange: Leave 
> resource ve-ns1:1        (fw1)
> pengine[5487]: 2008/03/06_09:16:54 notice: NoRoleChange: Leave 
> resource ve-ns1:0        (fw2)
> pengine[5487]: 2008/03/06_09:16:54 info: master_color: Promoted 1 
> instances of a possible 1 to master
> pengine[5487]: 2008/03/06_09:16:54 info: master_color: Promoted 1 
> instances of a possible 1 to master
> pengine[5487]: 2008/03/06_09:16:54 WARN: native_color: Resource 
> mount_ve-ns1 cannot run anywhere
> pengine[5487]: 2008/03/06_09:16:54 WARN: native_color: Resource 
> resource_tmp cannot run anywhere
> pengine[5487]: 2008/03/06_09:16:54 info: native_color: Stopping orphan 
> resource resource_mount
> crmd[4471]: 2008/03/06_09:16:54 info: do_state_transition: State 
> transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [ input=I_PE_SUCCESS 
> cause=C_IPC_MESSAGE origin=route_message ]
> tengine[5486]: 2008/03/06_09:16:54 info: unpack_graph: Unpacked 
> transition 69: 0 actions in 0 synapses
> tengine[5486]: 2008/03/06_09:16:54 info: run_graph: Transition 69: 
> (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0)
> tengine[5486]: 2008/03/06_09:16:54 info: notify_crmd: Transition 69 
> status: te_complete - <null>
> crmd[4471]: 2008/03/06_09:16:54 info: do_state_transition: State 
> transition S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS 
> cause=C_IPC_MESSAGE origin=route_message ]
> pengine[5487]: 2008/03/06_09:16:54 WARN: process_pe_message: 
> Transition 69: WARNINGs found during PE processing. PEngine Input 
> stored in: /var/lib/heartbeat/pengine/pe-warn-59.bz2
> pengine[5487]: 2008/03/06_09:16:54 info: process_pe_message: 
> Configuration WARNINGs found during PE processing.  Please run 
> "crm_verify -L" to identify issues.
> cib[7120]: 2008/03/06_09:16:54 info: write_cib_contents: Wrote version 
> 0.266.1 of the CIB to disk (digest: e4855a24618632e3e196e1d59dc0239e)
>
>
> So, I have no idea, why does not mount it the resource. Why not?
>
> Thank you,
>
> tamas
>
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user




More information about the drbd-user mailing list