19.5.7 Setting the LAN status
This subsection defines switching of LAN in the HA monitor by specifying the IP address of the LAN adapter in the LAN status setup file of the HA monitor.
Specify the alias IP address in the following files:
-
server-identification-name.up file
You use this file when connecting LAN. Specify the alias IP address to be added to the LAN adapter.
-
server-identification-name.down file
You use this file when switching LAN. Specify the alias IP address to be deleted from the LAN adapter.
In server-identification-name, specify the value of alias of server-compliant environment settings (servers file).
Create a LAN status setup file for each of the executing nodes and the standby node.
- (N number of) Executing nodes
-
Create the script for setting and deleting the alias IP address. Specify the settings in accordance with the alias IP address in each host.
- Standby node (One node for recovery)
-
Prepare the .up file and .down file for the N number of executing node hosts. Specify a unique value for the logical network device in each of the N number of executing node hosts.
For details on setting the LAN status, see the manual High-reliability System Monitoring Functionality HA Monitor.
The following is an example of creating the file in Linux. For details on creating the file in other operating systems, see the manual High-reliability System Monitoring Functionality HA Monitor.
Example of the server-identification-name.up file
#!/bin/sh
/sbin/ifconfig eth0:1 inet 172.16.12.31 \
netmask 255.255.255.0 broadcast 10.209.112.255 up
/sbin/arping -U -c 2 -I eth0 172.16.12.31Example of the server-identification-name.down file
#!/bin/sh /sbin/ifconfig eth0:1 down