9.3 Configuring AFP in a Cluster

9.3.1 Identifying the Nodes to Host the AFP Service

  1. 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.

  2. Continue with Section 9.3.2, Installing Novell Cluster Services.

9.3.2 Installing Novell Cluster Services

  1. Install Novell Cluster Services 2.0 on the OES 11 SP3 server.

    For details, see Installing, Configuring, and Repairing Novell Cluster Services.

  2. When you have finished installing Novell Cluster Services, continue with Section 9.3.3, Creating Shared NSS Pools.

9.3.3 Creating Shared NSS Pools

You can create a pool by using iManager, the NSSMU utility, or the NLVM create command.

Using iManager to Create Pools

For information on creating pools by using iManager, see Creating a Pool in the OES 11 SP3: NSS File System Administration Guide for Linux.

Using NSSMU to Create Pools

For information on creating pools by using NSSMU, see NSS Management Utility (NSSMU) Quick Reference in the OES 11 SP3: NSS File System Administration Guide for Linux.

Using NLVM to Create Pools

For information on creating pool by using NLVM, see NLVM Commands in the OES 11 SP3: NLVM Reference.

9.3.4 Configuring the Monitoring Script

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 11 SP3: Novell Cluster Services for Linux Administration Guide

9.3.5 Reviewing Load and Unload Scripts

Cluster resource load and unload scripts are automatically generated for pools when they are cluster-enabled.

Reviewing and Editing Scripts

You can review the load and unload scripts for the AFP cluster by using the following procedure:

  1. 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.

  2. Enter your user name and password.

  3. 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.

  4. On the Cluster Manager page or Cluster Options page, select the cluster resource to view its properties, then click the Scripts tab.

  5. 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.

Load Script

#!/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

Unload Script

#!/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