Hello Everyone,

I am trying to get pacemaker going with ocfs2. As you already know
there are two mounts that happen before mounting the actual shared
file system:

dlm -> ocfs2_dlmfs
configfs -> /sys/kernel/config

My first question is, do those need loaded and mounted upon startup,
i.e. using modules and fstab? Or can pacemaker handle that?

root@astdrbd2:/# /etc/init.d/o2cb status
Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Driver for "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Offline

This is what I have so far, for starters:

node astdrbd1 \
       attributes standby="off"
node astdrbd2 \
       attributes standby="off"
primitive resDRBD ocf:linbit:drbd \
        params drbd_resource="r0.res"
ms msDRBD resDRBD \
        meta master-max=2 clone-max=2 notify=true
primitive resDLM ocf:pacemaker:controld
primitive resO2CB ocf:pacemaker:o2cb
group g_ocfs2mgmt resDLM resO2CB
clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=true
primitive resFS ocf:heartbeat:Filesystem \
        params device="/dev/drbd/by-res/r0" directory="/service" fstype="ocfs2" 
\
        options="rw,noatime"
clone cl_fs_ocfs2 resFS
order o_ocfs2 inf: msDRBD:promote cl_ocfs2mgmt:start cl_fs_ocfs2:start
colocation c_ocfs2 inf: cl_fs_ocfs2 cl_ocfs2mgmt msDRBD:Master
property $id="cib-bootstrap-options" \
        no-quorum-policy="ignore" \
        stonith-enabled="false" \
        expected-quorum-votes="2" \
        dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
        cluster-recheck-interval="0" \
        cluster-infrastructure="openais"
        rsc_defaults $id="rsc-options" \
        resource-stickiness="100"

DRBD is starting fine, however the ocfs2 partition is not getting mounted.

Message from log:

Sep 29 17:43:28 astdrbd1 crmd: [17544]: info: do_pe_invoke_callback:
Invoking the PE: query=28, ref=pe_calc-dc-1317332608-11, seq=2836,
quorate=1
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: unpack_config: On
loss of CCM Quorum: Ignore
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice:
clone_rsc_colocation_rh: Cannot pair resDLM:0 with instance of
cl_fs_ocfs2
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice:
clone_rsc_colocation_rh: Cannot pair resDLM:1 with instance of
cl_fs_ocfs2
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice:
clone_rsc_colocation_rh: Cannot pair resDLM:2 with instance of
cl_fs_ocfs2
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice:
clone_rsc_colocation_rh: Cannot pair resDLM:3 with instance of
cl_fs_ocfs2
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice:
clone_rsc_colocation_rh: Cannot pair resDLM:4 with instance of
cl_fs_ocfs2
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice:
clone_rsc_colocation_rh: Cannot pair resDLM:5 with instance of
cl_fs_ocfs2
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Start
resDRBD:0       (astdrbd1)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Start
resDRBD:1       (astdrbd2)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resFS:0 (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resFS:1 (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resFS:2 (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resFS:3 (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resFS:4 (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resFS:5 (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resDLM:0        (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resO2CB:0       (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resDLM:1        (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resO2CB:1       (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resDLM:2        (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resO2CB:2       (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resDLM:3        (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resO2CB:3       (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resDLM:4        (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resO2CB:4       (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resDLM:5        (Stopped)
Sep 29 17:43:28 astdrbd1 pengine: [17543]: notice: LogActions: Leave
resO2CB:5       (Stopped)
Sep 29 17:43:28 astdrbd1 crmd: [17544]: info: do_state_transition:
State transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [
input=I_PE_SUCCESS cause=C_IPC_MESSAGE origin=handle_response ]


Thanks in Advance,

Nick.
_______________________________________________
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