
Installation and Setup
39
no
vd
ocx (
E
NU)
29
Ja
nua
ry
200
7
# mount the file system
ignore_error mkdir -p $MOUNT_POINT
exit_on_error mount -t $MOUNT_FS $MOUNT_DEV $MOUNT_POINT
# add the IP address
exit_on_error add_secondary_ipaddress $RESOURCE_IP
exit 0
Configuring Traditional Linux Volume Unload Scripts
The resource unload script specifies the commands to stop the resource (including unmounting the
file system) on a server in the cluster, and is also required for each Linux volume you cluster enable.
If you are creating a new cluster resource, the unload script page should already be displayed. You
can start with
Step 4
.
1
In the left column of the main iManager page, locate
Clusters
, then click the
Cluster Options
link.
2
Type the cluster name or browse and select it, select the box next to the resource whose unload
script you want to edit, then click the
Properties
link.
3
Click the
Scripts
tab, then click the
Unload Script
link.
4
Edit or add the necessary commands to the script to unload or stop the resource on the server.
The generic file system template you specified in
Step 7
above contains an unload script that
you must edit to supply information specific to your file system resource.
The unload script from the generic file system template should appear similar to the following
example:
#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# define the IP address
RESOURCE_IP=
a.b.c.d
#define the container name
container_name=name
# define the mount point
MOUNT_POINT=
/mnt/mount_point
#dismount the volume
exit_on_error ncs_dismount $MOUNT_POINT
# del the IP address
ignore_error del_secondary_ipaddress $RESOURCE_IP
# deport the container
exit_on_error deport_evms_container $container_name
# return status
exit 0
The first section of the above unload script example contains mount point, container name, and
IP address variables that you must change to customize the unload script for your specific
configuration.
5
Specify the
Unload Script Timeout
value, then click
Apply
to save the script or, if you are
creating a new cluster resource, click
Next
and continue with
Section 3.7.11, “Setting Start,
Failover, and Failback Modes,” on page 42
.
Содержание OPEN ENTERPRISE SERVER CLUSTER SERVICES 1.8.2 - ADMINISTRATION
Страница 4: ...novdocx ENU 29 January 2007...
Страница 8: ...8 OES Novell Cluster Services 1 8 2 Administration Guide for Linux novdocx ENU 29 January 2007...
Страница 14: ...14 OES Novell Cluster Services 1 8 2 Administration Guide for Linux novdocx ENU 29 January 2007...
Страница 16: ...16 OES Novell Cluster Services 1 8 2 Administration Guide for Linux novdocx ENU 29 January 2007...