Top
PRIMECLUSTER Global Link Services Configuration and AdministrationGuide 4.3Redundant Line Control Function

3.4.1 Fast switching mode

This section describes how to change the settings for Fast switching mode. After changing the settings, you need to reflect the changes in the operations following some procedures. Note that the distribution procedures vary depending on the command used for changing the settings, and whether the settings were changed in a single system configuration (no cluster is used), or in a cluster configuration.

Distribution procedure

hanetconfig command

Single

Cluster

IP address to be assigned for the virtual interface (-i)

1

2

Virtual Interface (-n) (newly added)

1

2

Physical interface (-t)

1

2

hanethvrsc command

Single

Cluster

Takeover virtual ip address (-i)

-

2

hanetmask command

Single

Cluster

Subnet mask (-m)

1

1

hanetparam command

Single

Cluster

Transfer path monitoring interval (-w)

3

3

The number of constant monitoring prior to outputting message (-m)

3

3

The number of constant monitoring prior to switching cluster (-l)

-

2

Switching cluster immediately after starting (-c)

-

2

Outputting message (-s)

3

3

Hostname resolution (-h)

3

3

Network configuration of OS

Single

Cluster

Network configuration file (/etc/sysconfig/network-scripts/ifcfg-ethX, /etc/sysconfig/network), hosts file(/etc/hosts) etc.

4

4


Procedure 1

Perform one of the following procedures after changing settings.

Procedure 2

Perform one of the following procedures after changing settings.

Procedure 3

Changed settings are immediately reflected in operations after executing the command to change settings. No distribution procedure is required.


Procedure 4

If you modified the network configuration file for the operating system, you must reboot the system instead of manually restarting the network service (/etc/init.d/network restart, service network restart).

Changing Procedure

The following shows the procedure for changing configuration information for Fast switching mode:

  1. Inactivate the target virtual interface using the "stphanet" command. For information, see "7.3 stphanet Command".

  2. Change the configuration information.

  3. After changing the configuration information, activate the target virtual interface using the "strhanet" command. For information, see "7.2 strhanet Command".

The procedure to change the information of a monitoring function is as follows:

  1. Change the information of a monitoring function using a "hanetparam" command. See "7.6 hanetparam Command" for the detail. In this case, it is not necessary to reactivate a virtual interface. The information becomes valid immediately after changed.

  2. Reboot the system after applying changes if necessary.

The following lists the information that can be changed for Fast switching mode. No information can be changed besides the information listed below. Delete the concerned definition and add it again.

[Example 1]

The following shows the procedure for changing the virtual IP address of a virtual interface in operation.

  1. Check the setting.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print
    [IPv4,Patrol / Virtual NIC]
    
     Name        Hostname        Mode Physical ipaddr   Interface List
    +-----------+---------------+----+-----------------+---------------------------+
     sha0        192.168.100.10   t                     eth1,eth2
     sha1        192.168.101.10   t                     eth1,eth2
  2. Deactivate the target interface. To change the virtual IP address for sha0, deactivate the virtual interface of sha0.

    # /opt/FJSVhanet/usr/sbin/stphanet -n sha0
  3. Change the monitoring destination.

    # /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.100.11
  4. Distribute the changes. Because the "IP address of a virtual/physical interface" was changed in the single configuration, perform the "deactivate and then activate the target virtual interface" procedure or "reboot the system" procedure, or "execute the resethanet -s command" procedure according to Procedure 1. The following is an execution example in which the "deactivate and then activate the target virtual interface" procedure is used.

    # /opt/FJSVhanet/usr/sbin/stphanet -n sha0
    # /opt/FJSVhanet/usr/sbin/strhanet -n sha0