The OCF_ROOT is set to the wrong path when using the XEN live template

  • 7002527
  • 03-Feb-2009
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2)
Novell Open Enterprise Server (Linux based)
Novell Cluster Services 1.8.4

Situation

Can not load a XEN VM on a XEN cluster node when using the XEN live template. 
The variable OCF_ROOT is set to the wrong path. The resource goes
comatose immediately and shows the following error in the output of the load
script:

/usr/lib/ocf/resource.d/heartbeat/Xen: line 30:
/var/run/ncs/resource.d/heartbeat/.ocf-shellfuncs: No such file or directory

The path /var/run/ncs/resource.d is erroneous.
It should be /usr/lib/ocf.

Resolution

At the top of the load script set OCF_ROOT=/usr/lib/ocf

Code was fixed in Novell-cluster-services RPM dated March 2009 and later.