12.6 Configuring an Unload Script for the Shared NSS Pool

A cluster resource unload 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 the scripts for a cluster resource, see Section 10.5, Configuring an Unload Script for a Cluster Resource.

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


Your Value

Cluster resource’s virtual server name


Resource IP address

Pool name


Volume name


Volume ID

252 (valid values are 0 to 254)

. /opt/novell/ncs/lib/ncsfuncs

ignore_error ncpcon unbind --ncpservername=NCS1_SHPOOL43_SERVER --ipaddress=

ignore_error nss /pooldeact=SHPOOL43
ignore_error del_secondary_ipaddress

exit 0

By default, ncpcon dismount commands are not added to the unload script. The pool deactivation automatically dismounts the volumes on the pool. However, you can add ncpcon dismount commands for each volume before the pool deactivation line. For example:

ignore_error ncpcon dismount SHVOL43
ignore_error nss /pooldeact=SHPOOL43

Adding the ncpcon dismount command provides predictable and clean dismount behavior. It allows the volume dismount to occur and be logged independently of the pool deactivation, which can help with troubleshooting dismount issues. However, the ncpcon dismount commands are not automatically maintained and updated if you change a volume name or delete a volume. You must modify the unload script yourself.