Customizing The Translation Syntax For Converting Load And Unload Scripts - Novell OPEN ENTERPRISE SERVER - CONVERSION GUIDE 12-2010 Manual

Cluster services conversion guide
Hide thumbs Also See for OPEN ENTERPRISE SERVER - CONVERSION GUIDE 12-2010:
Table of Contents

Advertisement

Linux
Protocol
Script Command for Unload Scripts
NCP
ignore_error ncpcon unbind --ncpservername=NCS1_P1_SERVER
--ipaddress=10.10.10.194
# dismount the NCP volume
ignore_error ncpcon dismount $NCP_VOLUME
Novell AFP
ignore_error cluster_afp.sh del NCS1_P1_SERVER 10.10.10.204
Novell CIFS
ignore_error novcifs --remove
--vserver=.CN=NCS1_P1_SERVER.O=novell.T=TREE-188.
--ip-addr=<virtual_server_ip_address>
3.7 Customizing the Translation Syntax for
Converting Load and Unload Scripts
The syntax for load and unload scripts differs for NetWare and Linux platforms. A script that is valid
for the NetWare platform is not necessarily recognized on the OES 2 Linux platform. In a mixed-
platform cluster, a cluster resource's load script and unload script must be translated to use the
proper syntax when running on the NetWare or Linux nodes. Translation occurs in-memory while
the cluster contains mixed-platform nodes, and during the final cluster conversion of the cluster
from NetWare to Linux.
The translation between NetWare and Linux versions of the load and unload scripts is performed by
the Cluster Translation Library script (
translations in the library are described in
Mixed NetWare and Linux Clusters," on page
unload scripts are not part of the translation library, the cluster resource can end up in a comatose
state.
Beginning in OES 2 SP2, Novell Cluster Services allows you to customize the translation syntax
that is used for load and unload scripts in mixed-platform situations by defining new syntax
translations in the
/var/opt/novell/ncs/customized_translation_syntax
create. The
clstrlib.py
processes them in addition to the normal translations in the Cluster Translation Library.
The customized translation supports using Python regular expressions to search for strings (
digits (
), and other data types. The search is case insensitive.
(\d+)
NOTE: Refer to information about Python regular expressions to learn how to create searches for
other data types.
In a text editor, create the
syntax that you need, then copy the file to the
node in the mixed-platform cluster.
The syntax file should contain a four-line command for each type of translation you want to add:
/opt/novell/ncs/bin/clstrlib.py
Section 3.1, "Translation of Cluster Resource Scripts for
19. If the commands in a cluster resource's load or
script reads the additional translation syntax from the syntax file, and
customized_translation_syntax
/var/opt/novell/ncs/ folder
file with the additional translation
Planning the Conversion of Load and Unload Scripts
). The normal
file that you
),
(\S+)
on each Linux
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Open enterprise server 2 sp3

Table of Contents