Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual page 185

Table of Contents

Advertisement

#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# filesystem settings
export OCF_RESKEY_device=/dev/evms/$OCF_RESOURCE_INSTANCE
export OCF_RESKEY_directory=/mnt/$OCF_RESOURCE_INSTANCE
export OCF_RESKEY_fstype=reiserfs
#export OCF_RESKEY_options=
# service settings
export OCF_RESKEY_xmfile=$OCF_RESKEY_directory/$OCF_RESOURCE_INSTANCE
# mount the file system
exit_on_error ocf_start Filesystem
# start the service
exit_on_error ocf_start Xen
# return status
exit 0
Sample XenLive_Template Load Script
The XenLive_Template load script appears similar to the following example:
#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# filesystem settings
export OCF_RESKEY_directory=/mnt/$OCF_RESOURCE_INSTANCE
# service settings
export OCF_RESKEY_xmfile=$OCF_RESKEY_directory/$OCF_RESOURCE_INSTANCE
# start the service
if [ -n "$NCS_TOFROM" ]
then
exit_on_error ocf_migrate_from Xen
else
exit_on_error ocf_start Xen
fi
# return status
exit 0
Configuring the Unload Script
The virtual machine resource unload script page should now be displayed. The unload script
contains commands to stop the virtual machine. You can customize some commands for your
specific configuration.
1 View and, if necessary, edit the lines in the script for your specific directory structure, mount
point, configuration files, and file system type (in the Xen_Template).
Use the same values that you specified in the load script.
Configuring Novell Cluster Services in a Xen Virtualization Environment 185

Advertisement

Table of Contents
loading

Table of Contents