Configuring Policies For A Linux Posix Volume Cluster Resource - Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual

Table of Contents

Advertisement

To continue configuring the new cluster resource:
1 On the Monitor Scripts page, select the Enable Resource Monitoring check box to enable
resource monitoring for the selected resource.
Resource monitoring is disabled by default.
2 On the Monitor Scripts page, edit or add the necessary commands to the script to monitor
resource on the server.
The monitor script from the generic file system template should appear similar to the following
script. Modify the variable values in the definition lines. For an example of the customized
monitor script, see
Section 11.5.3, "Sample Monitor Script for a Linux POSIX Volume Cluster
Resource," on page
#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# define the IP address
RESOURCE_IP=a.b.c.d
# define the file system type
MOUNT_FS=reiserfs
#define the container name
container_name=name
# define the device
MOUNT_DEV=/dev/evms/$container_name/volume_name
# define the mount point
MOUNT_POINT=/mnt/mount_point
# test the file system
exit_on_error status_fs $MOUNT_DEV $MOUNT_POINT $MOUNT_FS
# status the IP address
exit_on_error status_secondary_ipaddress $RESOURCE_IP
exit 0
3 Below the script editing area, specify the Monitor Script Timeout value, then click Next.
The timeout value determines how much time the script is given to complete. If the script does
not complete within the specified time, the resource becomes comatose. Cluster Services marks
the process as failed right after the defined timeout expires, but it must wait for the process to
conclude before it can start other resource operations..
4 Continue with
"Setting Start, Failover, and Failback Modes for Cluster Resources" on page 125
to configure the cluster resource behavior for the shared storage you have cluster-enabled.
11.3.6 Configuring Policies for a Linux POSIX Volume Cluster
Resource
You can configure the start, failover, and failback of cluster resources to happen manually or
automatically.
With the resource Start mode set to AUTO, the resource automatically starts on a server when the
cluster is first brought up. If the resource Start mode is set to MANUAL, you can manually start the
resource on a server when you want, instead of having it automatically start when servers in the
cluster are brought up.
176.
Configuring Cluster Resources for Shared Linux POSIX Volumes 167

Advertisement

Table of Contents
loading

Table of Contents