Morning,
sorry for asking these questions but I'm kinda stuck here.
I installed the rpms from Opensuse for RHEL5 and last week I had
problems getting my OCF resources started.
So I tried to manually start one of the OCF scripts just to see their
output:
[EMAIL PROTECTED] heartbeat]# ./IPaddr
./IPaddr: line 32: /resource.d/heartbeat/.ocf-shellfuncs: No such file
or directory
Ok so I go to line 32 and it says:
. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs
So the problem is that OCF_ROOT is not in the PATH variable and the
script can't find .ocf-shellfuns. If I replace OCF_ROOT with the full
path the script does not return an error.
I tried setting the OCF_ROOT variable but it does not work if I just
type in:
OCF_ROOT=/usr/lib/ocf
the script still can't find the files. So I had a look at the other
files and tried this from .ocf-shellfuncs:
[EMAIL PROTECTED] heartbeat]# ${OCF_ROOT=/usr/lib/ocf}
-bash: /usr/lib/ocf: is a directory
Now odly enough, this morning my resource came up without any problems.
I have no idea why, or if it is even related to this environmental
variable issue. Maybe I'm beating on a dead horse there since it is not
an error or should I continue to look into it?
I tried to find any file which specifies OCF_ROOT but the only file I
found would be .ocf-shellfuncs which doesn't return an error when
executed but it will still not work. /etc/ha.d/shellfuncs does not
declare OCF_ROOT.
Well just let me know please what you think. Should I further
investigate this or just ignore it?
Best Regards,
Tobias
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems