Sample Unload Script For The Linux Posix Volume Cluster Resource - Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual

Table of Contents

Advertisement

11.5.2 Sample Unload Script for the Linux POSIX Volume
Cluster Resource
The following is an example unload script for the cluster resource for a Linux POSIX volume:
#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# define the IP address
RESOURCE_IP=10.10.10.44
# define the file system type
MOUNT_FS=ext3
#define the container name
container_name=csm44
# define the device
MOUNT_DEV=/dev/evms/$container_name/shvol44
# define the mount point
MOUNT_POINT=/mnt/shvol44
# 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
ignore_error deactivate_evms_container $container_name $NCS_TIMEOUT
# return status
exit 0
Configuring Cluster Resources for Shared Linux POSIX Volumes 175

Advertisement

Table of Contents
loading

Table of Contents