Configuring or enabling AFP and making it available in a cluster environment requires you to perform the following tasks:
Install the AFP server on all the nodes in cluster or on the nodes identified for running AFP.
For instructions on installing, see Section 5.0, Installing and Setting Up AFP.
Continue with Section 9.3.2, Installing OES Cluster Services.
Install OES Cluster Services 2.0 on the OES server.
For details, see Installing, Configuring, and Repairing OES Cluster Services.
When you have finished installing OES Cluster Services, continue with Section 9.3.3, Creating Shared NSS Pools.
You can create a pool by using iManager, the NSSMU utility, or the NLVM create command.
For information on creating pools by using iManager, see Creating a Pool
in the OES 2018 SP3: NSS File System Administration Guide for Linux.
For information on creating pools by using NSSMU, see NSS Management Utility (NSSMU) Quick Reference
in the OES 2018 SP3: NSS File System Administration Guide for Linux.
For information on creating pool by using NLVM, see NLVM Commands
in the OES 2018 SP3: NLVM Reference.
You use a script to configure resource monitoring to let a cluster fail over to the next node in the preferred nodes list.
The default monitor script is:
#!/bin/bash . /opt/novell/ncs/lib/ncsfuncs exit_on_error status_fs /dev/pool/P_E /opt/novell/nss/mnt/.pools/P_E nsspool exit_on_error status_secondary_ipaddress 10.10.10.44 exit_on_error ncpcon volume V_E exit_on_error afpstat exit 0
For details on configuring resource monitoring scripts, see Configuring Resource Monitoring
in the OES 2018 SP3: OES Cluster Services for Linux Administration Guide
Cluster resource load and unload scripts are automatically generated for pools when they are cluster-enabled.
You can review the load and unload scripts for the AFP cluster by using the following procedure:
Open an Internet browser and enter the URL for iManager.
The URL is https:// server_ip_address/nps/imanager.html. Replace server_ip_address with the IP address or DNS name of the Linux server running AFP.
Enter your user name and password.
In Roles and Tasks, locate and select the Clusters > My Clusters task, then select the cluster.
or
If the cluster does not appear in your personalized list of clusters to manage, you can add it. Click Add, browse and select the cluster, then click OK. Wait for the cluster to appear and report its status, then select the cluster.
On the Cluster Manager page or Cluster Options page, select the cluster resource to view its properties, then click the Scripts tab.
Click the Load Script, Unload Script, or Monitor Script links to view or modify the scripts. If you modify a script, click Apply to save your changes before you leave the page.
Changes do not take effect until you take the resource offline, and bring it online again.
#!/bin/bash . /opt/novell/ncs/lib/ncsfuncs exit_on_error nss /poolact=P_E exit_on_error ncpcon mount V_E=254 exit_on_error add_secondary_ipaddress 10.10.10.44 exit_on_error ncpcon bind --ncpservername=CLUSTER-P-E-SERVER --ipaddress=10.10.10.44 exit_on_error cluster_afp.sh add CLUSTER-P-E-SERVER 10.10.10.44 exit 0
#!/bin/bash . /opt/novell/ncs/lib/ncsfuncs ignore_error cluster_afp.sh del CLUSTER-P-E-SERVER 10.10.10.44 ignore_error ncpcon unbind --ncpservername=CLUSTER-P-E-SERVER --ipaddress=10.10.10.44 ignore_error del_secondary_ipaddress 10.10.10.44 ignore_error nss /pooldeact=P_E exit 0