12.5 Configuring a Load Script for the Shared NSS Pool

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 10.4, Configuring a Load Script for a Cluster Resource.

IMPORTANT:Do not comment out commands that are automatically generated for parameters that define the cluster resource, such as the mount point, IP address, container name, file system type, and device.

If you need to modify the IP address, administrator credentials, or other attributes of an existing resource, follow the procedure in Section 8.9, Moving a Cluster, or Changing IP Addresses, LDAP Server, or Administrator Credentials for a Cluster.

If you specified the following values for the variables in the template, your load script would appear like the script below.

Variable

Your 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 add_secondary_ipaddress 10.10.10.43
exit_on_error nss /poolact=SHPOOL43
exit_on_error ncpcon mount SHVOL43=252

exit_on_error ncpcon bind --ncpservername=NCS1_SHPOOL43_SERVER --ipaddress=10.10.10.43

exit 0

If you change the name space for an existing shared volume by using NSSMU or the NSS 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. Otherwise, the cluster assumes the default name space for mounting the volume. You can do this by using the /opt=ns=<long|unix|dos|mac> switch in the ncpcon mount command. Place the /opt switch before the volume information. The options are case-sensitive. For information about default name spaces for NSS volumes, see Lookup Namespace in the OES 2 SP3: NSS File System Administration Guide for Linux.

For example, to specify the Long name space, add the /opt=ns=long switch as follows:

ncpcon mount /opt=ns=long <VOLUMENAME>=<VOLUMEID> 

For example, to specify the Unix name space, add the /opt=ns=unix switch as follows:

ncpcon mount /opt=ns=unix <VOLUMENAME>=<VOLUMEID>