[Linux-HA] Heartbeat 2.0.7 with CRM and IBM ServeRAID

Andrew Beekhof beekhof at gmail.com
Thu Oct 5 07:07:59 MDT 2006


On 10/5/06, Jon Fanti <Jon.Fanti at unique.com> wrote:
>
>
> --
> Jon Fanti - 3rd Line Support Analyst
> Red Hat Certified Engineer (RHCE) #804005983015071
> Unique Interactive, part of UBC Media Group plc
>
> http://www.ubcmedia.com
> http://www.uniqueinteractive.co.uk
> 24hr Client Support Line: +44 (0)845 355 0568
>
>
> >>>> beekhof at gmail.com 04/10/2006 10:08:57 >>>
>
> >> However, executing the RA from shell appears to work correctly:
> >>
> >> [root at dc-dls-dbsrv1 resource.d]# export OCF_RESKEY_serveraid=1
> >> [root at dc-dls-dbsrv1 resource.d]# export OCF_RESKEY_mergegroup=1
> >> [root at dc-dls-dbsrv1 resource.d]#
> >> /usr/lib/ocf/resource.d/heartbeat/ServeRAID status
> >> 2006/10/04_04:22:18 DEBUG: ServeRAID merge group 1 1 is stopped.
> >> [root at dc-dls-dbsrv1 resource.d]#
> >> /usr/lib/ocf/resource.d/heartbeat/ServeRAID start
> >> 2006/10/04_04:22:20 INFO: Found 1 IBM ServeRAID controller(s).
> >> Configuration merge has been initiated for controller 1... Command
> >> completed successfully.
> >> 2006/10/04_04:22:34 INFO: Found 1 IBM ServeRAID controller(s).
> >> Configuration merge has been initiated for controller 1... Command
> >> completed successfully.
> >> 2006/10/04_04:22:34 ERROR: Found 1 IBM ServeRAID controller(s).
> >> Synchronize has been initiated for controller 1... Valid logical
> drive
> >> numbers are 1 through 8. Command aborted.
> >> [root at dc-dls-dbsrv1 heartbeat]# ./ServeRAID status
> >>2006/10/04_04:27:43 DEBUG: ServeRAID merge group 1 1 is running.
> >>./ServeRAID: line 438: return: can only `return' from a function or
> >> sourced script
> >
> >maybe that is related somehow
>
>
> Okay, so firstly some syntax has changed with ipssend - specifically
> with the way a disk synch is done. So i've altered that. But the correct
> return codes are not being returned by the ServeRAID script (which I've
> included im my mail). I can't see why it wouldn't return the correct
> codes.

is ocf-shellfuncs in /usr/lib64/heartbeat ?

have you tried adding a  bunch of ocf_log calls to see what its doing?

> All the other Linux-HA included RA's work correctly. Is there
> something obviously wrong with the script? Is it possible to provide the
> correct exit/return codes without usinf the OCF functions?

they're straight from the OCF spec:
http://linux-ha.org/OCFResourceAgent , and
http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-api.txt?rev=HEAD
(section 3.6)


More information about the Linux-HA mailing list