8.11 Moving a Cluster, or Changing IP Addresses, LDAP Server, or Administrator Credentials for a Cluster

Use the instructions in this section to change the IP addresses of the cluster, information about the LDAP server that the cluster uses, or the credentials used to administer the cluster.

8.11.1 Changing the Administrator Credentials or LDAP Server IP Addresses for a Cluster

You can modify the administrator credentials or LDAP server settings that you assigned when you created the cluster. You must modify this cluster configuration information in the following cases:

  • Changing the Administrator user name and password for the cluster

  • Changing the password for the existing Administrator user name

  • Changing the IP address information about the existing LDAP servers

  • Assigning a different LDAP server for the cluster to use

  • Changing the order of the servers in the LDAP server list

  • Adding LDAP servers to the list of ones that the cluster can use.

    As a best practice, you should list the LDAP servers in the following order:

    • local to the cluster

    • closest physical read/write replica

You can modify these settings at any time. Novell Cluster Services can be running or not running.

To modify the LDAP server IP address or administrator credentials in the Novell Cluster Services configuration settings:

  1. Ensure that the IP addresses and administrator user name that you plan to use meet the requirements specified in Section 4.2, IP Address Requirements.

  2. Log in as the root user to the master node of the cluster.

  3. In a text editor, create a text file, specify the configuration information for the Novell Cluster Services cluster in it, then save the file.

    Two examples are shown below of the content of the file with sample values. The directives are self-explanatory.

    IMPORTANT:Ensure that you change the values inside the quotation marks to the actual settings for your cluster.

    The following lines are the content of a sample configuration file for a Novell Cluster Services cluster when you have a single LDAP server.

    CONFIG_NCS_CLUSTER_DN="cn=svr1_oes2_cluster.o=context"
    CONFIG_NCS_LDAP_IP="10.1.1.102"
    CONFIG_NCS_LDAP_PORT="636"
    CONFIG_NCS_ADMIN_DN="cn=admin.o=context"
    CONFIG_NCS_ADMIN_PASSWORD="password"
    

    If you have multiple LDAP servers, the syntax is slightly different. The following lines are the content of a sample configuration file for a Novell Cluster Services cluster when you have multiple LDAP servers.

    CONFIG_NCS_CLUSTER_DN="cn=svr1_oes2_cluster.o=context"
    CONFIG_NCS_LDAP_INFO="ldaps://10.1.1.102:636,ldaps://10.1.1.101:636"
    CONFIG_NCS_ADMIN_DN="cn=admin.o=context"
    CONFIG_NCS_ADMIN_PASSWORD="password"
    
  4. As the root user, enter the following command at a terminal console prompt:

    /opt/novell/ncs/install/ncs_install.py -l -f configuration_filename
    

    Replace configuration_filename with the actual name of the file you created.

  5. Delete the configuration file that you created.

  6. For each of the other nodes in the cluster, log in as the root user for the node, then repeat Step 3 to Step 5.

    Modifying the information on each node allows iManager to manage the cluster after a different node becomes the master. This step is necessary because credentials are stored on CASA, and CASA does not synchronize across clustered nodes.

  7. Push this update to all nodes on the cluster by entering the following as the root user on one of the cluster nodes:

    cluster exec "/opt/novell/ncs/bin/ncs-configd.py -init" 
    

8.11.2 Moving a Cluster or Changing IP Addresses of Cluster Nodes and Resources

If you move a cluster to a different subnet, you must change the IP addresses of the cluster nodes and the cluster resources, information about the LDAP servers used by the cluster, and possibly the administrator credentials for the cluster.

When you move the cluster to a new IP subnet, you must replace the existing unique static IP addresses with ones that are valid in that subnet. You can make the IP address changes in the old location or the new location. If you start the servers in the different IP subnet with the old IP addresses, the cluster does not come up until you make the changes described in this section.

To modify the IP addresses of servers being used in a Novell Cluster Services cluster, perform the following tasks in the order given:

Prerequisites

Before you begin, ensure that the IP addresses that you plan to use meet the requirements specified in Section 4.2, IP Address Requirements. Ensure that the administrator user name that you will use in the new location has sufficient rights as described in Section 4.1.3, Cluster Administrator or Administrator-Equivalent User.

Changing the IP Addresses of Cluster Resources

Before you modify the server IP address for a server in a cluster, you must change the IP addresses of all of the cluster resources that run on it:

  1. Offline the cluster resources whose IP addresses are changing.

    1. In iManager, select Cluster > Cluster Manager.

    2. Browse to locate and select the Cluster object of the cluster you want to manage.

    3. Select the check boxes next to the resources you want to take offline, then click Offline.

  2. For each cluster resource, including the master IP address resource, modify the IP address on the Protocols page, then modify the IP address information as needed in the resource load, unload, and monitor scripts.

    1. In iManager, select Clusters > Cluster Options.

    2. Browse to locate and select the Cluster object of the cluster you want to manage.

    3. Select the check box next to the resource whose load script you want to edit, then click the Details link.

    4. Click the Protocols tab, modify the IP address for the resource, then click Apply.

      This is necessary to change the IP address for the NCS:NCP Server object for the resource.

    5. Click the Scripts tab, then click the Load Script link.

    6. Edit the script by replacing variables with actual values for your new configuration, such as the resource IP address where you will be moving the cluster. You might also need to edit the values used in the command lines.

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

    7. Click Apply to save the changed script.

    8. Make similar changes to the Unload Script and Monitor Script.

  3. Stop Novell Cluster Services for every node in the cluster by entering the following at the terminal console prompt as the root user:

    rcnovell-ncs stop
    
  4. Continue with Changing the IP Addresses of Servers in a Cluster.

Changing the IP Addresses of Servers in a Cluster

After preparing the cluster resources for the IP address change and stopping Novell Cluster Services (see Changing the IP Addresses of Cluster Resources), you are ready to change the IP addresses of the servers in the cluster.

  1. For each server in the cluster, change the server’s IP address by following the instructions Changing an OES 11 Server’s IP Address in the OES 11: Planning and Implementation Guide.

  2. The server IP address changes are not complete until you make those changes known to Novell Cluster Services and eDirectory. Continue with Modifying the Cluster Configuration Information.

Modifying the Cluster Configuration Information

Before restarting Novell Cluster Services, you must update the cluster configuration information in Novell Cluster Services and eDirectory with the new IP addresses. You might also need to update the IP address information for the LDAP server and administrator credentials that the cluster uses in the new subnet.

  1. If the cluster is using a different LDAP server or administrator in the new IP subnet, change the LDAP server IP address and administrator credentials for the cluster in the Novell Cluster Services configuration settings.

    Follow the procedure in Section 8.11.1, Changing the Administrator Credentials or LDAP Server IP Addresses for a Cluster.

  2. For each node in the cluster, including that of the master IP address resource, modify the NCS: Network Address attribute of its Cluster Node object.

    1. In iManager, select Directory Administration > Modify Object.

    2. Browse to locate and select the Cluster Node object of the cluster node you want to manage.

    3. In the Valued Attributes list, select the attribute NCS: Network Address, click Edit, modify the IP address, then click OK.

    4. Repeat this process for each node in the cluster and the master IP resource.

  3. For the cluster container of the cluster you want to manage, modify the NCS: Network Address and Network Address attributes of its Cluster object to specify the new IP address information. Both TCP and UDP addresses need to be replaced.

    1. In iManager, select Directory Administration > Modify Object.

    2. Browse to locate and select the Cluster object of the cluster you want to manage.

    3. In the Valued Attributes list, select the attribute NCS: Network Address (the attribute for the TCP address), click Edit, modify the IP address, then click OK.

    4. In the Valued Attributes list, select the attribute Network Address (the attribute for the UDP address), click Edit, modify the IP address, then click OK.

  4. Ensure that LDAP server is running before restarting Novell Cluster Services.

    IMPORTANT:Novell Cluster Services requires LDAP.

  5. Ensure that NSS is running if there are NSS cluster resources that you will be onlining.

  6. Start Novell Cluster Services by entering the following command at a terminal console prompt as the root user:

    rcnovell-ncs start
    
  7. Online the cluster resources:

    1. In iManager, select Cluster > Cluster Manager.

    2. Browse to locate and select the Cluster object of the cluster you want to manage.

    3. Select the check boxes next to the resources you want to bring online, then click Online.