Top
PRIMECLUSTER  Installation and Administration Guide4.5
FUJITSU Software

I.3.2 Changing IP Address, MAC Address, and Interface Name of GLS

Change the settings for the IP address, the MAC address, and the interface name of GLS on all nodes.

See

For details on the settings, see "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function."

Note

The procedure depends on the data communication mode. The following procedure is for changing the IP address within the same network as the configuration using the NIC switching mode. In the procedure below, sha0 indicates the virtual interface name and sha1 indicates the interface name of the standby patrol.

  1. Delete all settings for the takeover virtual Interface.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc delete -n all
  2. Stop the HUB monitoring function and the patrol monitoring function.

    # /opt/FJSVhanet/usr/sbin/hanetpoll off
    # /opt/FJSVhanet/usr/sbin/stpptl -n sha1
  3. Disable the interface status monitoring function.

    # touch /var/opt/FJSVhanet/tmp/disable_watchif
  4. Modify the IP address of the primary physical interface.

    The following is the example of changing the IP address of the primary interface net1 in the Solaris 11 environment. IP address is changed by using the ipadm(1M) command.

    For [primecl03]
    # /usr/sbin/ipadm delete-ip net1
    # /usr/sbin/ipadm create-ip net1
    # /usr/sbin/ipadm create-addr -T static -a 10.34.214.191/24 net1/v4
    # /usr/sbin/ipadm show-addr net1/v4 <- Check that the IP address has been changed.
    For [primecl04]
    # /usr/sbin/ipadm delete-ip net1
    # /usr/sbin/ipadm create-ip net1
    # /usr/sbin/ipadm create-addr -T static -a 10.34.214.192/24 net1/v4
    # /usr/sbin/ipadm show-addr net1/v4 <- Check that the IP address has been changed.

    Note

    When bundling interfaces that are different in the copy source and copy destination, use the ipadm(1M) command to delete the IP address in the copy source, and then assign the IP address for the interface used in the copy destination.

  5. Change the IP address of the virtual interface.

    For [primecl03]
    # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 10.34.214.195 -e 10.34.214.191
    # /opt/FJSVhanet/usr/sbin/hanetconfig print -n sha0 <- Check that the IP address has been changed.
    For [primecl04]
    # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 10.34.214.195 -e 10.34.214.192
    # /opt/FJSVhanet/usr/sbin/hanetconfig print -n sha0 <- Check that the IP address has been changed.
  6. Change the MAC address that is set in the standby patrol function.

    Take the following procedure on all the nodes in the copy destination. These are the examples of [primecl03] and [primecl04].

    1. Check the MAC address that is set in the standby patrol function.

      # /opt/FJSVhanet/usr/sbin/hanetconfig print
      [IPv4,Patrol]
      
       Name      Hostname       Mode MAC Adder/Phys ip   Interface List
      +---------+--------------+----+-------------------+---------------------------+
       sha0      10.34.214.185   d   10.34.214.181       net1,net2
       sha1      -               p   02:03:04:05:06:07   sha0
                                     ^^^^^^^^^^^^^^^^^ <- Check this value.
    2. Take the following procedure depending on the current value.

      • If the current value is "00:00:00:00:00:00", this procedure is not necessary. Go to step 7.

      • If the current value is not "00:00:00:00:00:00", change the MAC address by executing the following command.

        # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha1 -a 0:0:0:0:0:0
  7. Change the interfaces bundled by GLS as necessary.

    When bundling the interfaces that are different in the copy source and copy destination, change the interfaces bundled by GLS. If the interface names have not been changed, skip this step. The following is the procedure when the interfaces bundled by the virtual interface sha0 of GLS need to be changed. Change the primary interface to net3 and the secondary interface to net4.

    For [primecl03]
    # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -t net3,net4
    For [primecl04]
    # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -t net3,net4
  8. Create the takeover virtual interface again.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0
  9. Check the changed configuration definition.

    The following is the example of [primecl03].

    # /opt/FJSVhanet/usr/sbin/hanethvrsc print
     ifname     takeover-ipv4    takeover-ipv6
    +----------+----------------+--------------------------------------------------+
     sha0:65    10.34.214.195    -            <- Check that the takeover virtual interface is 
                                                 set correctly.
    # /opt/FJSVhanet/usr/sbin/hanetconfig print -n sha1
    [IPv4,Patrol]
    
     Name      Hostname       Mode MAC Adder/Phys ip   Interface List
    +---------+--------------+----+-------------------+---------------------------+
     sha0      10.34.214.195   d   10.34.214.191       net3,net4 <- Check IP addresses and
                                                                    interface names.
     sha1      -               p   00:00:00:00:00:00   sha0      <- Check the MAC address.
  10. To enable the setting change of IP address, you must restart OS on all nodes. If the NIC cable has been disconnected in the preliminary operation, stop OS first and then connect the NIC cable again. After that, restart OS.

See

For changing the IP address to a different network, the subnet mask of the virtual interface and the monitoring IP address of the HUB monitoring function need to be changed. For details, see "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function."