Enabling Monitoring And Configuring A Monitor Script 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

The unload 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
unload script, see
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
# unmount the volume
sleep 10 # if not using SMS for backup, please comment out this line
exit_on_error umount_fs $MOUNT_DEV $MOUNT_POINT $MOUNT_FS
# del the IP address
ignore_error del_secondary_ipaddress $RESOURCE_IP
# deactivate the container
exit_on_error deactivate_evms_container $container_name $NCS_TIMEOUT
# return status
exit 0
2 Below the script editing area, specify the Unload 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 when migrating to
another node. 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.
3 Continue with
Linux POSIX Volume Cluster Resource," on page
11.3.5 Enabling Monitoring and Configuring a Monitor Script
for a Linux POSIX Volume Cluster Resource
The cluster resource monitor script specifies the commands to monitor the cluster resource.
The generic file system template you specified in
contains a monitor script that you must edit to supply information specific to your file system
resource. Use the same values for the defined variables that you used in the load script in
Section 11.3.3, "Configuring a Load Script for a Linux POSIX Volume Cluster Resource," on
page
164.
166 OES 2 SP2: Novell Cluster Services 1.8.7 for Linux Administration Guide
Section 11.5.2, "Sample Unload Script for the Linux POSIX Volume Cluster
175.
Section 11.3.5, "Enabling Monitoring and Configuring a Monitor Script for a
166.
Step 6
when you created the cluster resource

Advertisement

Table of Contents
loading

Table of Contents