Am 16.03.2011 10:27, schrieb Michael Schwartzkopff: >> Am Mittwoch, 16. März 2011 schrieb Michael Schwartzkopff: >>>> Am 16.03.2011 06:58, schrieb Michael Schwartzkopff: >>>>>> Hi, >>>>>> >>>>>> I try to setup a high available NFS server according to the tutorial >>>>>> "Highly available NFS storage with DRBD and Pacemaker". >>>>>> >>>>>> My problem is that Ubuntu Lucid LTS does not know the resource >>>>>> ocf:heartbeat:exportfs. I tried to copy the file exportfs from the >>>>>> current git repository but I still get: >>>>>> >>>>>> crm(live)configure# primitive p_exportfs_root >>>>>> ocf:heartbeat:exportfs params fsid=0 directory "/srv/nfs/afs" >>>>>> options="rw,no_root_squash,crossmnt" >>>>>> clientspec="192.168.143.0/255.255.255.0" op monitor interval="30s" >>>>>> ERROR: ocf:heartbeat:exportfs: could not parse meta-data: >>>>>> ERROR: ocf:heartbeat:exportfs: no such resource agent >>>>>> >>>>>> >>>>>> Are there newer packages available for Ubuntu Lucid? Or how to get >>>>>> it running? >>>>>> >>>>>> Christoph >>>>> >>>>> Where did you copy the script to? >>>> >>>> To /usr/lib/ocf/resource.d/heartbeat/ >>> >>> Is the script executable? >> >> The script is executable on both nodes. >> It is listed by "crm ra list ocf heartbeat". >> >> I tried to add the resource again and if I do it for the first time in crm >> I get: >> >> >> lrmadmin[11236]: 2011/03/16_09:27:39 ERROR: lrm_get_rsc_type_metadata(578): >> got a return code HA_FAIL from a reply message of rmetadata with function >> get_ret_from_msg. >> ERROR: ocf:heartbeat:exportfs: could not parse meta-data: >> ERROR: ocf:heartbeat:exportfs: no such resource agent >> >> If I try it again, I only get the two lines with ERROR. > > Which cluster-glue version do you run? > Try also: > > # lrmadmin -C > # lrmadmin -P ocf drbd > # export OCF_ROOT=/usr/lib/ocf > # /usr/lib/ocf/resource.d/linbit/drbd meta-data >
The version of cluster-glue is 1.0.5 Here are the commands: root@ries:~# lrmadmin -C There are 4 RA classes supported: heartbeat lsb stonith ocf root@ries:~# lrmadmin -P ocf drbd linbit heartbeat root@ries:~# export OCF_ROOT=/usr/lib/ocf root@ries:~# /usr/lib/ocf/resource.d/linbit/drbd meta-data <?xml version="1.0"?> <!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd"> <resource-agent name="drbd"> <version>1.1</version> <longdesc lang="en"> Master/Slave OCF Resource Agent for DRBD </longdesc> <shortdesc lang="en">This resource agent manages a DRBD resource as a master/slave resource. DRBD is a shared-nothing replicated storage device.</shortdesc> <parameters> <parameter name="drbd_resource" unique="1" required="1"> <longdesc lang="en"> The name of the drbd resource from the drbd.conf file. </longdesc> <shortdesc lang="en">drbd resource name</shortdesc> <content type="string"/> </parameter> <parameter name="drbdconf"> <longdesc lang="en"> Full path to the drbd.conf file. </longdesc> <shortdesc lang="en">Path to drbd.conf</shortdesc> <content type="string" default="/etc/drbd.conf"/> </parameter> </parameters> <actions> <action name="start" timeout="240" /> <action name="promote" timeout="90" /> <action name="demote" timeout="90" /> <action name="notify" timeout="90" /> <action name="stop" timeout="100" /> <action name="monitor" depth="0" timeout="20" interval="20" start-delay="1m" role="Slave" /> <action name="monitor" depth="0" timeout="20" interval="10" start-delay="1m" role="Master" /> <action name="meta-data" timeout="5" /> <action name="validate-all" timeout="30" /> </actions> </resource-agent> _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
