A cluster resource load script is automatically generated for the pool when you cluster-enable it. You can modify the script as needed to suit your needs by using iManager. For information about how to access scripts for the cluster resource, see Section 11.5, Configuring a Load Script for a Cluster Resource.
Newly created pool cluster resources use the following sequence for commands in a load script. The order is reversed in an unload script.
If you modify the load script, you must take the pool cluster resource offline, then bring it online for the changes to take effect.
IMPORTANT:Do not comment out commands that are automatically generated for parameters that define the cluster resource, such as the IP address, pool name, and volume name.
If you need to modify the IP address, administrator credentials, or other attributes of an existing resource, follow the procedure in Section 9.13, Moving a Cluster, or Changing the Node IP Addresses, LDAP Servers, or Administrator Credentials for a Cluster.
The following sample values are used in the NSS load script below:
Variable |
Sample Value |
---|---|
Cluster resource’s virtual server name |
NCS1-SHPOOL43-SERVER |
Resource IP address |
10.10.10.43 |
Pool name |
SHPOOL43 |
Volume name |
SHVOL43 |
Volume ID |
252 (valid values are 0 to 254) |
#!/bin/bash . /opt/novell/ncs/lib/ncsfuncs exit_on_error nss /poolact=SHPOOL43 exit_on_error ncpcon mount SHVOL43=252 exit_on_error add_secondary_ipaddress 10.10.10.43 exit_on_error ncpcon bind --ncpservername=NCS1-SHPOOL43-SERVER --ipaddress=10.10.10.43 exit 0
For NSS pool cluster resources, the default mount point of /media/nss/volume_name is assumed. In order to use a custom mount point, you must add some Linux commands to mount and dismount the volume from Linux at that location. For information about using a custom mount point path, see Section 13.14, Renaming the Mount Point Path for a Shared NSS Volume (Using a Custom Mount Point for a Shared NSS Volume).
The load script for an NSS volume assumes that the default name space of LONG is used when mounting the clustered NSS volume. Supported name spaces include LONG, UNIX, DOS, and MAC. For information about name spaces for NSS volumes, see Lookup Namespace
in the OES 2015 SP1: NSS File System Administration Guide for Linux.
You can explicitly specify the desired name space by adding the following switch to the ncpcon mount command in the load script:
/opt=ns=<long|unix|dos|mac>
The options are case-sensitive. In the ncpcon mount command, place the /opt switch before the volume information.
If you use a name space other than the default for the shared volume, or if you change the name space setting for shared volume by using NSSMU or the Storage plug-in for iManager, you must modify the load script for the pool cluster resource to add the name space to the ncpcon mount command for the volume.
For example, to specify the LONG name space, add the /opt=ns=long switch as follows:
exit_on_error ncpcon mount /opt=ns=long <VOLUMENAME>=<VOLUMEID>
For example, to specify the Unix name space, add the /opt=ns=unix switch as follows:
exit_on_error ncpcon mount /opt=ns=unix <VOLUMENAME>=<VOLUMEID>
After you modify the load script, you must take the pool cluster resource offline, then bring it online to apply the new name space setting for the volume.
If you enable Novell AFP as an advertising protocol for the pool, the following command is automatically added below the bind command:
exit_on_error cluster_afp.sh add CLUSTER-POOL1-SERVER 10.10.10.43
The command uses the NCP virtual server name and the IP address of the pool cluster resource.
If you enable Novell CIFS as an advertising protocol for the pool, the following command is automatically added below the bind command:
exit_on_error novcifs --add '--vserver=".cn=CLUSTER-POOL1-SERVER.o=novell.t=AVALON_TREE."' --ip-addr=10.10.10.43
The --vserver option uses the fully distinguished name of the NCP virtual server. The --ip-addr option uses the IP address of the pool cluster resource.