Sample Load 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.1 Sample Load Script for the Linux POSIX Volume Cluster
Resource
The following is an example load 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
#activate the container
exit_on_error activate_evms_container $container_name $MOUNT_DEV $NCS_TIMEOUT
# mount the file system
ignore_error mkdir -p $MOUNT_POINT
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
174 OES 2 SP2: Novell Cluster Services 1.8.7 for Linux Administration Guide

Advertisement

Table of Contents
loading

Table of Contents