Configuring An Unload 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

#! /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
# activate the container
exit_on_error activate_evms_container $container_name $MOUNT_DEV
$NCS_TIMEOUT
# mount the file system
exit_on_error mount_fs $MOUNT_DEV $MOUNT_POINT $MOUNT_FS
# add the IP address
exit_on_error add_secondary_ipaddress $RESOURCE_IP
exit 0
2 If the path to the mount point does not exist on other nodes, you can add the following lines in
the script before the line to mount the file system:
# create the mount point path when loading on a new node
ignore_error mkdir -p $MOUNT_POINT
3 Below the script editing area, specify the Load 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
Section 11.3.4, "Configuring an Unload Script for a Linux POSIX Volume
Cluster Resource," on page
11.3.4 Configuring an Unload Script for a Linux POSIX Volume
Cluster Resource
The cluster resource unload script specifies the commands to stop the resource (including
unmounting the file system) on a server in the cluster. The unload script is required for each Linux
POSIX volume that you cluster-enable.
The generic file system template you specified in
contains an unload 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.
To continue configuring the new cluster resource:
1 On the Unload Script page, edit or add the necessary commands to the script to unload or stop
the resource on the server.
165.
Step 6
when you created the cluster resource
Configuring Cluster Resources for Shared Linux POSIX Volumes 165

Advertisement

Table of Contents
loading

Table of Contents