PRIMECLUSTER Installation and Administration Guide 4.1 (for Solaris(TM) Operating System)
Contents Index PreviousNext

Part 4 System Configuration Modification> Chapter 8 Changing the Operation Configuration

8.2 Changing an IP Address on the Public LAN

This section explains how to change the IP address setting if the IP address of a public LAN or administrative LAN changes after the PRIMECLUSTER system is installed. Note that when you change an IP address, do not change the host name.

mark2Operation Procedure:

  1. Execute the following command on one of the cluster nodes to stop RMS operation:
    # hvshut -a
  2. Execute the following command on each cluster node to stop the shutdown facility:
    # sdtool -e
  3. If you use the shutdown facility to change an IP address when you change the public or administrative LAN, you must decide whether the /etc/opt/SMAW/SMAWsf/rcsd.cfg file must be changed on each cluster node. The file does not need to be changed if the host name registered to /etc/inet/hosts is defined in "admIP" of the rcsd.cfg file. The file must be changed if an IP address is defined in "admIP." In this case, change the "admIP" definition.
    For details about the rcsd.cfg file, see the rcsd.cfg(4M) manual page.

     

  4. To change the IP address of either the remote console connection unit or the XSCF when you change the public or administrative LAN, correct the /etc/inet/hosts file of each node.

     

  5. To change the IP address of either the remote console connection unit or the XSCF when you change the public or administrative LAN, execute the following command in any cluster node and determine whether the IP address of either the remote console connection unit or the XSCF used by the shutdown facility must be changed. The IP address does not need to be changed if the host name registered to /etc/inet/hosts is displayed in the "IP-address" field of the command output
    The IP address must be changed if an IP address is displayed in the "IP address" field.
    # /etc/opt/FJSVcluster/bin/clrccusetup -l

    Example: In the following example, the IP address must be changed.

    # /etc/opt/FJSVcluster/bin/clrccusetup -l
    device-name cluster-host-name  IP-address      host-name      user-name
    -------------------------------------------------------------------------
    xscf        narcissus          10.10.10.11     -              user01
    xscf        sweetpea           10.10.10.12     -              user02
  6. If in Step 5 you determined that the IP address must be changed, execute the following command in each cluster node to change the IP address of the either remote console connection unit or the XSCF.
    For IP-address, specify the IP address or host name of the remote console connection unit or XSCF.
    # /etc/opt/FJSVcluster/bin/clrccusetup -m -i IP-address

    Example: In the following example, the IP address of either the remote console connection unit or the XSCF is changed to 10.10.10.21.

    # /etc/opt/FJSVcluster/bin/clrccusetup -m -i 10.10.10.21
  7. Execute the following command in all nodes to start the system in single-user mode:
    # /usr/sbin/shutdown -y -g0 -i0
         :
    ok> boot -s
  8. Execute the following command in all nodes to mount the file system:
    # /usr/sbin/mountall -l
  9. Edit the /etc/inet/hosts file, and change the IP address of each node.

     

  10. On each node, change the IP address of the public LAN used by Web-Based Admin View.

    For details, see "7.1 Network address," "7.3 Management server," and "7.5 Multi-network between server and client by classified use" in the "PRIMECLUSTER Web-Based Admin View Operation Guide."
  11. If a takeover IP address must be changed, correct the IP address being used as the takeover IP address in the "/etc/inet/hosts" file of each node.

     

  12. If you used the userApplication Configuration Wizard to create an Ipaddress resource, edit the "/opt/SMAW/SMAWRrms/bin/hvenv.local" file on each cluster node as shown below to disable RMS automatic startup during system restart.
    # vi /opt/SMAW/SMAWRrms/bin/hvenv.local <Return>
    export HV_RCSTART=0
  13. Restart the system on all nodes.
    # /usr/sbin/shutdown -y -g0 -i6
  14. If you used the userApplication Configuration Wizard to set up an Ipaddress resource, take the following steps to change the takeover IP address in the resource database.
    1. Identify the takeover IP address resource to be changed in the resource database.

      Execute the "clgettree(1)" command on one of the cluster nodes. The takeover IP address resource has the resource class name for IP addresses.

      Example) In the following example, the resources with resource IDs 56 and 57 are the takeover IP address resources.

       # /etc/opt/FJSVcluster/bin/clgettree
       Cluster 1 cluster
            Domain 2 RC2
                    Shared 7 SHD_RC2
                            SHD_Host 58 config_Ipaddress0_ip1 UNKNOWN
                                    IP_Address 56 hme0:1 UNKNOWN narcissus
                                    IP_Address 57 hme0:1 UNKNOWN sweetpea
                    Node 3 narcissus ON
                            Ethernet 21 hme0 UNKNOWN
                                    IP_Address 56 hme0:1 UNKNOWN
                            Application 31 proc1 UNKNOWN
                            DISK 19 c0t0d0 UNKNOWN
                    Node 5 sweetpea ON
                            Ethernet 22 hme0 UNKNOWN
                                    IP_Address 57 hme0:1 UNKNOWN
                            Application 32 proc1 UNKNOWN
                            DISK 20 c0t0d0 UNKNOWN
    2. Identify the shared resources of the takeover IP address.

      To identify the shared resources, execute the "clgettree(1)" command on one cluster node.

      The shared resources of the takeover IP address are resources that have the SHD_Host resource class name.

      Example) For the example shown in Step 1), the resource that has resource ID 58 is the shared resource of the takeover IP address.

    3. Change the takeover IP address.

      To change the address, execute the "clsetrsc(1M)" command. The takeover IP address is defined in the attributes of the shared resource for the takeover IP address that was identified in Step 2.

      On each cluster node, execute the "clsetrsc(1M)" command with the following format.

      # /etc/opt/FJSVcluster/sys/clsetrsc -A ip_addr=new-IP-address resource-ID-of-shared-resource-having-IP-address

      Example) To change the takeover IP address of a shared resource (resource with resource ID=58) to 10.10.10.10

      # /etc/opt/FJSVcluster/sys/clsetrsc -A ip_addr=10.10.10.10 58
    4. Execute the "clgetrsc(1)" command to check that the takeover IP address was changed.

      Using the command format below, execute the "clgetrsc(1)" command on one of the cluster nodes and check that the takeover IP address was changed.

      # /etc/opt/FJSVcluster/sys/clgetrsc -a ip_addr resource-ID-of-shared-resource-having-IP-address

      Example) If the takeover IP address of a shared resource (resource with resource ID=58) was changed to 10.10.10.10

      # /etc/opt/FJSVcluster/sys/clgetrsc -a ip_addr 58
      ip_addr 10.10.10.10
  15. If you edited the /opt/SMAW/SMAWRrms/bin/hvenv.local file in Step 12, return the file to its previous setting.


Contents Index PreviousNext

All Rights Reserved, Copyright (C) FUJITSU LIMITED 2005