When using GLS, execute the initial GLS setup to the network used for the public LAN (used also for the administrative LAN), according to the procedure below. For details on each setting, refer to "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function."
Note
If this setting is done incorrectly by mistake, the system may not be accessible. Before the initial GLS setup, acquire the snapshot to the system disk.
Set the following in each node building the cluster.
Set the system.
In the /etc/hosts file, define the IP address and the host name to be used.
Example
172.16.0.10 node1 IP address of # node1 172.16.0.11 node2 IP address of # node2 172.16.0.100 takeover # Takeover IP address 172.16.0.1 gw # Gateway IP address
Correct the /etc/sysconfig/network-scripts/ifcfg-eth0 file.
[RHEL7]
In the /etc/sysconfig/network-scripts/ifcfg-eth0 file, comment out TYPE. Set BOOTPROTO=static, PEERDNS=no, and DEFROUTE=no. Add HOTPLUG=no and DEVICETYPE=hanet.
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 #TYPE=Ethernet BOOTPROTO=static DEFROUTE=no UUID=<fixed value depending on an environment (change not required)> HOTPLUG=no ONBOOT=yes DEVICETYPE=hanet PEERDNS=no
[RHEL8]
Set BOOTPROTO=static, PEERDNS=no, and DEFROUTE=no.
Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 TYPE=Ethernet BOOTPROTO=static DEFROUTE=no UUID=<fixed value depending on an environment (change not required)> HOTPLUG=no ONBOOT=yes PEERDNS=no
Note
Describe all the parameters described in /etc/sysconfig/network-scripts/ifcfg-eth0.
Create the virtual interface.
Execute the following command, and create the virtual interface.
# /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m v -t eth0
Set the virtual interface.
Contents of /etc/sysconfig/network-scripts/ifcfg-sha0
[RHEL7]
In the /etc/sysconfig/network-scripts/ifcfg-sha0 file, comment out IPADDR and NETMASK. Set BOOTPROTO=dhcp. Also add DEFROUTE=yes, PEERDNS=yes, and the settings of DNS1 and DNS2.
DEVICE=sha0 #IPADDR= #NETMASK= BOOTPROTO=dhcp DEFROUTE=yes ONBOOT=yes DEVICETYPE=sha HOTPLUG=no PEERDNS=yes DNS1=<IP address of the main DNS server> DNS2=<IP address of the sub DNS server>
[RHEL8]
In the /etc/sysconfig/network-scripts/ifcfg-sha0 file, comment out IPADDR and PREFIX. Set BOOTPROTO=dhcp. Also add DEFROUTE=yes, PEERDNS=yes, and the settings of DNS1 and DNS2.
DEVICE=sha0 #IPADDR= #PREFIX= BOOTPROTO=dhcp DEFROUTE=yes ONBOOT=yes TYPE=Ethernet PEERDNS=yes DNS1=<IP address of the main DNS server> DNS2=<IP address of the sub DNS server>
Note
Do not set ifcfg-sha0 to SHAMACADDR.
Describe all the parameters described in the /etc/sysconfig/network-scripts/ifcfg-sha0 file.
Set the network monitoring function.
Set the virtual router to the monitoring destination. In consideration of a prolonged time stop in the virtual router, configure the settings to avoid the switchover of cluster when a failure of network route occurs.
Example
# /opt/FJSVhanet/usr/sbin/hanetpathmon target -n sha0 -p 172.16.0.1 # /opt/FJSVhanet/usr/sbin/hanetpathmon param -n sha0 -f no
Set the subnet mask of the takeover virtual interface.
Example
# /opt/FJSVhanet/usr/sbin/hanetmask create -i 172.16.0.0 -m 255.255.255.0
Create the takeover virtual interface.
Example
# /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 -i 172.16.0.100
Check the configuration.
Make sure that the settings done from step 3 to step 6 are reflected.
Example
# /opt/FJSVhanet/usr/sbin/hanetconfig print
[IPv4,Patrol / Virtual NIC]
Name Hostname Mode Physical ipaddr Interface List
+-----------+---------------+----+-----------------+---------------------------+
sha0 v eth0
[IPv6]
Name Hostname/prefix Mode Interface List
+-----------+---------------------------------+-----+---------------------------+
# /opt/FJSVhanet/usr/sbin/hanetpathmon target
[Target List] Name VID Target +-------+----+----------------------------------------------------------+ sha0 - 172.16.0.1
# /opt/FJSVhanet/usr/sbin/hanetpathmon param
[Parameter List]
Name Monitoring Parameter
+-------+----------------------------------------------------------+
sha0 auto_startup = yes
interval = 3 sec
times = 5 times
repair_times = 2 times
idle = 45 sec
Auto fail-back = no
FAILOVER Status = no
# /opt/FJSVhanet/usr/sbin/hanetmask print
network-address netmask +---------------+---------------+ 172.16.0.0 255.255.255.0
# /opt/FJSVhanet/usr/sbin/hanethvrsc print
ifname takeover-ipv4 takeover-ipv6 vlan-id/logical ip address list +----------+----------------+----------------+--------------------------------+ sha0:65 172.16.0.100 - -
Restart the system.
Run the following command and restart the system.
# /sbin/shutdown -r now