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

Table of Contents

Advertisement

#!/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
export OCF_RESKEY_CRM_meta_migrate_target=$NCS_TOFROM
RC=0
# stop the service
if [ -n $NCS_TOFROM ]
then
RC = `ocf_migrate_to Xen`
if [ $RC -ne 0 ]
then
ignore_error ocf_stop Xen
fi
else
ignore_error ocf_stop Xen
fi
# return status
exit $RC
Configuring the Monitor Script
The Xen_Template and XenLive Template each include a resource monitoring script that you can
customize. You use the script to monitor the health of a virtual machine cluster resource.
Resource monitoring is disabled by default. If you want to enable resource monitoring for a virtual
machine cluster resource, you must enable it prior to customizing the resource monitoring script.
"Enabling Resource Monitoring" on page 187
"Viewing or Modifying the Monitor Script" on page 188
"Sample Xen_Template Monitor Script" on page 188
"Sample XenLive_Template Monitor Script" on page 189
Enabling Resource Monitoring
To enable resource monitoring for a virtual machine cluster resource:
1 In iManager, click Clusters, then click Cluster Options.
2 Browse and select the Cluster object.
3 Select the check box next to the virtual machine resource, then click the Details link.
4 Click the Monitoring tab, then select the Enable Resource Monitoring check box to enable
resource monitoring for the resource.
Resource monitoring is disabled by default.
5 For the polling interval, specify how often you want the resource monitoring script for this
resource to run.
You can choose to specify the number in minutes or seconds.
Configuring Novell Cluster Services in a Xen Virtualization Environment 187

Advertisement

Table of Contents
loading

Table of Contents