Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Change the Private Network Address or Address Range of an Existing Cluster

Use this procedure to change a private network address or the range of network addresses used or both.

Before You Begin

Ensure that remote shell (rsh(1M)) or secure shell (ssh(1)) access for superuser is enabled to all cluster nodes.

  1. Reboot all cluster nodes into noncluster mode by performing the following substeps on each cluster node:

    1. Become superuser or assume a role that provides solaris.cluster.admin RBAC authorization on the cluster node to be started in noncluster mode.

    2. Shut down the node by using the clnode evacuate and cluster shutdown commands.

      The clnode evacuate command switches over all device groups from the specified node to the next-preferred node. The command also switches all resource groups from voting or non-voting nodes on the specified node to the next-preferred voting or non-voting node.


      # clnode evacuate  node
      # cluster shutdown -g0 -y
      
  2. From one node, start the clsetup utility.

    When run in noncluster mode, the clsetup utility displays the Main Menu for noncluster-mode operations.

  3. Type the number that corresponds to the option for Change IP Address Range and press the Return key.

    The clsetup utility displays the current private-network configuration, then asks if you would like to change this configuration.

  4. To change either the private-network IP address or the IP address range, type yes and press the Return key.

    The clsetup utility displays the default private-network IP address, 172.16.0.0, and asks if it is okay to accept this default.

  5. Change or accept the private-network IP address.

    • To accept the default private-network IP address and proceed to changing the IP address range, type yes and press the Return key.

      The clsetup utility will ask if it is okay to accept the default netmask. Skip to the next step to enter your response.

    • To change the default private-network IP address, perform the following substeps.

      1. Type no in response to the clsetup utility question about whether it is okay to accept the default address, then press the Return key.

        The clsetup utility will prompt for the new private-network IP address.

      2. Type the new IP address and press the Return key.

        The clsetup utility displays the default netmask and then asks if it is okay to accept the default netmask.

  6. Change or accept the default private-network IP address range.

    On the Solaris 9 OS, the default netmask is 255.255.248.0. This default IP address range supports up to 64 nodes and up to 10 private networks in the cluster. On the Solaris 10 OS, the default netmask is 255.255.240.0. This default IP address range supports up to 64 nodes, up to 12 zone clusters, and up to 10 private networks in the cluster.

    • To accept the default IP address range, type yes and press the Return key.

      Then skip to the next step.

    • To change the IP address range, perform the following substeps.

      1. Type no in response to the clsetup utility's question about whether it is okay to accept the default address range, then press the Return key.

        When you decline the default netmask, the clsetup utility prompts you for the number of nodes and private networks, and zone clusters on the Solaris 10 OS, that you expect to configure in the cluster.

      2. Enter the number of nodes and private networks, and zone clusters on the Solaris 10 OS, that you expect to configure in the cluster.

        From these numbers, the clsetup utility calculates two proposed netmasks:

        • The first netmask is the minimum netmask to support the number of nodes and private networks, and zone clusters on the Solaris 10 OS, that you specified.

        • The second netmask supports twice the number of nodes and private networks, and zone clusters on the Solaris 10 OS, that you specified, to accommodate possible future growth.

      3. Specify either of the calculated netmasks, or specify a different netmask that supports the expected number of nodes and private networks, and zone clusters on the Solaris 10 OS.

  7. Type yes in response to the clsetup utility's question about proceeding with the update.

  8. When finished, exit the clsetup utility.

  9. Reboot each cluster node back into cluster mode by completing the following substeps for each cluster node:

    1. Boot the node.

      • On SPARC based systems, run the following command.


        ok boot
        
      • On x86 based systems, run the following commands.

        When the GRUB menu is displayed, select the appropriate Solaris entry and press Enter. The GRUB menu appears similar to the following:


        GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
        +-------------------------------------------------------------------------+
        | Solaris 10 /sol_10_x86                                                  |
        | Solaris failsafe                                                        |
        |                                                                         |
        +-------------------------------------------------------------------------+
        Use the ^ and v keys to select which entry is highlighted.
        Press enter to boot the selected OS, 'e' to edit the
        commands before booting, or 'c' for a command-line.
  10. Verify that the node has booted without error, and is online.


    # cluster status -t node