Setting Up Live Migration - Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual

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
# status of the file system
exit_on_error ocf_status Filesystem
# status of the service
exit_on_error ocf_status Xen
# return status
exit 0
Sample XenLive_Template Monitor Script
The XenLive_Template monitor script appears similar to the following example:
#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# service settings
export OCF_RESKEY_xmfile=$OCF_RESKEY_directory/$OCF_RESOURCE_INSTANCE
# status of the service
exit_on_error ocf_status Xen
# return status
exit 0

12.2.3 Setting Up Live Migration

Live migrations use the XenLive template. You can manually copy the virtual machine
configuration files to the same path on each node of the cluster, or you can set up an OCFS2 file
system for the configuration files. Do one of the following:
Manually copy the configuration file for the virtual machine to the same directory (the path
must be the same) on each cluster node where the virtual machine will run.
Configure the OCFS2 file system on a shared disk system and copy the virtual machine
configuration file to a directory on the file system. You also must ensure that all cluster nodes
where the virtual machine will run have access to the OCFS2 file system on the shared disk
system.
Configuring Novell Cluster Services in a Xen Virtualization Environment 189

Advertisement

Table of Contents
loading

Table of Contents