Am 16.03.2011 12:26, schrieb Dejan Muhamedagic: > Hi, > > On Wed, Mar 16, 2011 at 12:21:33PM +0100, Christoph Bartoschek wrote: >> Am 16.03.2011 12:14, 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 >>> >>> Sorry. Of course I wanted to say: >>> >>> # lrmadmin -P ocf exportfs >>> # export OCF_ROOT=/usr/lib/ocf >>> # /usr/lib/ocf/resource.d/heartbeat/exportfs meta-data >>> >> >> Here are the results: >> >> root@ries:~# lrmadmin -P ocf exportfs >> heartbeat >> root@ries:~# /usr/lib/ocf/resource.d/heartbeat/exportfs meta-data >> .: 14: Can't open /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs > > The latest resource agents source common scripts from the new > location (/usr/lib/ocf/lib instead of /usr/lib/ocf/resource.d). > You can adjust the paths in exportfs accordingly. > >> I guess I am missing ocf-shellfuncs. Is it safe to just install the >> current resource agents release? Or will there be other dependencies >> that fail? > > It should be safe to install the new resource agents release.
It works now. Thanks Dejan and Michael _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
