![Novell OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX Manual Download Page 175](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_1711859175.webp)
Configuring Cluster Resources for Shared Linux POSIX Volumes
175
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
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