Hi,

I am trying to configure two systems to use the exportfs resource agent, but
am running into a problem with the agent failing to start. The systems run
Centos 5.4 with Heartbeat 3.0.3-1.el5, Pacemaker 1.0.8-5.el5 and the
exportfs RA from the repository listed below. The CIB is provided at the
bottom.

With debug =1 I'm seeing the following messages in the debug log,

Apr 21 11:02:59 kong103.kongregate.com lrmd: [19112]: debug:
on_msg_perform_op: add an operation operation monitor[5] on
ocf::exportfs::shared_export for client 19115,
its parameters: directory=[/data/shared] CRM_meta_op_target_rc=[7]
clientspec=[172.20.1.0/255.255.255.0] CRM_meta_timeout=[20000]
fsid=[2465189] crm_feature_set=[3.0.1] options=[rw,no_root_squash,sync]  to
the operation list.
Apr 21 11:02:59 kong103.kongregate.com lrmd: [19112]: info:
rsc:shared_export:5: probe
Apr 21 11:02:59 kong103.kongregate.com crmd: [19115]: debug: run_graph:
Transition 0 (Complete=0, Pending=8, Fired=10, Skipped=0, Incomplete=14,
Source=/var/lib/pengine/pe-warn-131.bz2): In-progress
Apr 21 11:02:59 kong103.kongregate.com crmd: [19115]: debug: run_graph:
Transition 0 (Complete=2, Pending=8, Fired=0, Skipped=0, Incomplete=14,
Source=/var/lib/pengine/pe-warn-131.bz2): In-progress
Apr 21 11:02:59 kong103.kongregate.com lrmd: [19112]: WARN: Managed
shared_export:monitor process 19148 exited with return code 2.
Apr 21 11:02:59 kong103.kongregate.com crmd: [19115]: info:
process_lrm_event: LRM operation shared_export_monitor_0 (call=5, rc=2,
cib-update=36, confirmed=true) invalid parameter



[r...@kong103 ha]# crm_resource -L
 Master/Slave Set: shared_drbd_ms
     Masters: [ kong103.kongregate.com ]
     Slaves: [ kong102.kongregate.com ]
 Resource Group: shared
     shared_fs    (ocf::heartbeat:Filesystem) Started
     shared_ip    (ocf::heartbeat:IPaddr2) Started
     shared_export    (ocf::heartbeat:exportfs) Stopped

Any suggestions on how to debug this?

Sid

crm(live)# configure show
node $id="008bd64a-037d-47d1-93b4-674c00f30ee4" kong102.kongregate.com
node $id="e36aa34b-f5d4-4762-b22a-a7e32ee8de8d" kong103.kongregate.com
primitive shared_drbd ocf:linbit:drbd \
    params drbd_resource="shared" \
    op monitor interval="15s"
primitive shared_export ocf:heartbeat:exportfs \
    params clientspec="172.20.1.0/255.255.255.0" directory="/data"
fsid="2465189" options="rw,no_root_squash,sync" \
    meta target-role="Started"
primitive shared_fs ocf:heartbeat:Filesystem \
    params device="/dev/drbd/by-res/shared" directory="/data" fstype="xfs"
primitive shared_ip ocf:heartbeat:IPaddr2 \
    params ip="172.20.1.204" nic="eth0"
group shared shared_fs shared_ip shared_export
ms shared_drbd_ms shared_drbd \
    meta clone-max="2" clone-nod-max="1" notify="true"
colocation shared_on_drbd inf: shared shared_drbd_ms:Master
order shared_after_drbd inf: shared_drbd_ms:promote shared:start
property $id="cib-bootstrap-options" \
    dc-version="1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7" \
    cluster-infrastructure="Heartbeat" \
    stonith-enabled="false" \
    no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
    resource-stickiness="100"




On Mon, Apr 19, 2010 at 8:28 AM, Florian Haas <florian.h...@linbit.com>wrote:

> Hello,
>
> After last week's resource-agents 1.0.3 release, I have merged the
> exportfs resource agent, which has lived in its separate branch so far,
> into the default branch.
>
> exportfs was thankfully submitted by Ben Timby, and manages NFS exports
> on a per-directory basis, without ever killing nfsd. This allows you to
> seamlessly migrate NFS exports between hosts using an underlying cluster
> file system, and also saves you quite a few headaches compared to
> running an NFS LSB service (or the nfsserver OCF agent, for that matter).
>
> Please test this new RA so we can get it into production-ready shape for
> 1.0.4.
>
> Until it becomes part of an official release, you may retrieve the RA
> from here:
> http://hg.linux-ha.org/agents/raw-file/tip/heartbeat/exportfs
>
> Its revision history is here:
> http://hg.linux-ha.org/agents/log/tip/heartbeat/exportfs
>
> Cheers,
> Florian
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to