![Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual Download Page 174](http://html.mh-extra.com/html/novell/open-enterprise-server-2-sp-2-cluster-services-1-8-7-for-linux/open-enterprise-server-2-sp-2-cluster-services-1-8-7-for-linux_manual_1711859174.webp)
174
OES 2 SP2: Novell Cluster Services 1.8.7 for Linux Administration Guide
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
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