166
OES 2 SP2: Novell Cluster Services 1.8.7 for Linux Administration Guide
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
The unload script from the generic file system template should appear similar to the following
script. Modify the variable values in the definition lines. For an example of the customized
unload script, see
Section 11.5.2, “Sample Unload Script for the Linux POSIX Volume Cluster
Resource,” on page 175
.
#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
# define the IP address
RESOURCE_IP=
a.b.c.d
# define the file system type
MOUNT_FS=
reiserfs
#define the container name
container_name=
name
# define the device
MOUNT_DEV=/dev/evms/$container_name/
volume_name
# define the mount point
MOUNT_POINT=
/mnt/mount_point
# 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
exit_on_error deactivate_evms_container $container_name $NCS_TIMEOUT
# return status
exit 0
2
Below the script editing area, specify the
Unload Script Timeout
value, then click
Next
.
The timeout value determines how much time the script is given to complete. If the script does
not complete within the specified time, the resource becomes comatose when migrating to
another node. Cluster Services marks the process as failed right after the defined timeout
expires, but it must wait for the process to conclude before it can start other resource
operations.
3
Continue with
Section 11.3.5, “Enabling Monitoring and Configuring a Monitor Script for a
Linux POSIX Volume Cluster Resource,” on page 166
.
11.3.5 Enabling Monitoring and Configuring a Monitor Script
for a Linux POSIX Volume Cluster Resource
The cluster resource monitor script specifies the commands to monitor the cluster resource.
The generic file system template you specified in
Step 6
when you created the cluster resource
contains a monitor script that you must edit to supply information specific to your file system
resource. Use the same values for the defined variables that you used in the load script in
Section 11.3.3, “Configuring a Load Script for a Linux POSIX Volume Cluster Resource,” on
page 164
.
Содержание OPEN ENTERPRISE SERVER 2 SP 2 - CLUSTER SERVICES 1.8.7 FOR LINUX
Страница 4: ...4 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 22: ...22 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 58: ...58 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 90: ...90 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 132: ...132 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 156: ...156 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 180: ...180 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 194: ...194 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 212: ...212 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...
Страница 254: ...254 OES 2 SP2 Novell Cluster Services 1 8 7 for Linux Administration Guide novdocx en 7 January 2010 ...