Hi.
Heartbeat version is heartbeat-3.0.4-1.fc15.1.i686.
While testing ocf script IPaddr2, it returned an error message
"./IPaddr2: line 68: /lib/heartbeat/ocf-shellfuncs: No such file or directory"
[root@node1 heartbeat]# ./IPaddr2 status
./IPaddr2: line 68: /lib/heartbeat/ocf-shellfuncs: No such file or directory
When I referred the IPaddr2 code, I found that ${OCF_ROOT} is not
getting initialized, resulting an error.
# Initialization:
: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
So, I replaced the above 2 lines with the below one in IPaddr2 and
tested it, it was working fine.
. /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs
And also tested the script by replacing with the below one also and
was working fine.
. /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs
So, is this a bug in ocf scripts or I have missed some step? Please suggest me.
Regards,
Padmaja.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems