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.
Deactivate and then activate the target virtual interface.
Reboot the system.
Execute the resethanet -s command.
Procedure 2
Perform one of the following procedures after changing settings.
Reboot the system.
Execute the "resethanet -s" command.
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:
Inactivate the target virtual interface using the "stphanet" command. For information, see "7.3 stphanet Command".
Change the configuration information.
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:
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.
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.
Configuration definition information
Use the "hanetconfig" command to change the following information. For information, see "7.1 hanetconfig Command" or "7.5 hanetmask Command".
Host name or IP address to be attached to a virtual interface or a logical virtual interface
Interface names to be bundled by a virtual interface
Subnet mask to a virtual interface or a logical virtual interface
Monitoring function information
Use the "hanetparam" command to change the following information. For information, see "7.6 hanetparam Command".
Transfer path monitoring interval
The number of constant monitoring prior to outputting message
The number of constant monitoring prior to switching cluster
Timing of activating the virtual interface
Outputting message (monitoring the physical interface)
Switching cluster immediately after starting RMS
[Example 1]
The following shows the procedure for changing the virtual IP address of a virtual interface in operation.
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 |
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 |
Change the monitoring destination.
# /opt/FJSVhanet/usr/sbin/hanetconfig modify -n sha0 -i 192.168.100.11 |
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 |