For information on the initial GLS setup, see "Chapter 5 Operation on Cluster System" in the "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function" and "Chapter 7 Administration on a Cluster System" in the "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Multipath Function."
This section describes how to set up "the Single system without NIC sharing of the NIC switching mode (IPv4)" that GLS (redundant line control function) provides. This procedure is described in the example below.
Interface names listed in examples of setting up vary depending on the environment. Replace interface names according to the environment. For Solaris 11 OS, the default interface name is netX (X means the instance number).
Note
You can use PRIMECLUSTER "takeover network" and GLS "IP address takeover" together in the same cluster system; however, you cannot configure them on the same interface. If this occurs, communication using takeover IP addresses is disenabled.
For example, if you select hme1 as the interface when you set up the PRIMECLUSTER "takeover network," do not set hme1 in the GLS environment settings (do not specify hme1 using "-t" option of the "hanetconfig create" command).
The setup values correspond to those on the "A.7.2 GLS Setup Worksheet."
Operation Procedure:
If the OPERATING node is [HOST-primecl01]
Setting up the system
Define the IP address and Host name in /etc/inet/hosts file.
10.34.214.185 takeoverIP # Virtual IP 10.34.214.181 primecl01 # primecl01 Physical IP 10.34.214.182 primecl02 # primecl02 Physical IP 10.34.214.188 swhub1 # primary HUB IP 10.34.214.189 swhub2 # secondary HUB IP
Setting up interface to use.
For Solaris 10
Add the host names from above definitions to the /etc/hostname.hme0 file.
Contents of /etc/hostname.hme0
primecl01
For Solaris 11
Set up with the interface and the host name defined above using ipadm(1M) command.
Interface net0 (corresponding to hme0 in the figure)
# /usr/sbin/ipadm create-ip net0 # /usr/sbin/ipadm create-addr -T static -a primecl01/24 net0/v4
Define the subnet masks in the /etc/inet/netmasks file.
10.0.0.0 255.255.255.0
Rebooting
Run the following command and reboot the system. After rebooting the system, verify the interface set using ifconfig command is enabled.
# /usr/sbin/shutdown -y -i6 -g0
Creating of virtual interface
For the underlined parameter, specify the physical IP address of the node.
# /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m d -i 10.34.214.185 -e 10.34.214.181 -t hme0,hme3
Check that the virtual interface has been set up correctly.
# /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 hme0,hme3 [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+----+-------------------------+
Setting up the HUB monitoring function
For the underlined parameter, specify the IP addresses of the hubs to be monitored.
# /opt/FJSVhanet/usr/sbin/hanetpoll create -n sha0 -p 10.34.214.188,10.34.214.189 -b off
Check that the facility has been set up correctly.
# /opt/FJSVhanet/usr/sbin/hanetpoll print
[ Standard Polling Parameter ] interval(idle) = 5( 60) sec times = 5 times max_retry = 5 retry repair_time = 5 sec link detection = NO failover mode = YES [ Polling Parameter of each interface ] Name Hostname/Polling Parameter +-------+---------------------------------------------------------------+ sha0 10.34.214.188,10.34.214.189 hub-hub poll = OFF interval(idle) = 5( 60) sec times = 5 times max_retry = 5 retry repair_time = 5 sec link detection = NO failover mode = YES
Setting up the Standby patrol monitoring function
# /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m p -t sha0
Check that the facility has been set up correctly.
# /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 hme0,hme3
sha1 - p 00:00:00:00:00:00 sha0
[IPv6]
Name Hostname/prefix Mode Interface List
+-----------+---------------------------------+----+-------------------------+
Creating of the takeover IP address (takeover virtual Interface)
# /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0
Check that the registration has been done correctly.
# /opt/FJSVhanet/usr/sbin/hanethvrsc print
ifname takeover-ipv4 takeover-ipv6
+----------+----------------+--------------------------------------------------+
sha0:65 10.34.214.185 -
Setting up the system
Define the IP address and Host name in /etc/inet/hosts file. Defined content is same as HOST-primecl01.
Setting up interface to use.
For Solaris 10
Add the host names from above definitions to the /etc/hostname.hme0 file.
Contents of /etc/hostname.hme0
primecl02
For Solaris 11
Set up with the interface and the host name defined above using ipadm(1M) command.
Interface net0 (corresponding to hme0 in the figure)
# /usr/sbin/ipadm create-ip net0 # /usr/sbin/ipadm create-addr -T static -a primecl02/24 net0/v4
Define the subnet masks in the /etc/inet/netmasks file.
10.0.0.0 255.255.255.0
Rebooting
Run the following command and reboot the system. After rebooting the system, verify the interface set using ifconfig command is enabled.
# /usr/sbin/shutdown -y -i6 -g0
Creating of virtual interface
For the underlined parameter, specify the physical IP address of the node.
# /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m d -i 10.34.214.185 -e 10.34.214.182 -t hme0,hme3
Check that the virtual interface has been set up correctly.
# /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.182 hme0,hme3
[IPv6]
Name Hostname/prefix Mode Interface List
+-----------+---------------------------------+----+---------------------------+
Setting up the HUB monitoring function
For the underlined parameter, specify the IP addresses of the hubs to be monitored.
# /opt/FJSVhanet/usr/sbin/hanetpoll create -n sha0 -p 10.34.214.188,10.34.214.189 -b off
Check that the facility has been set up correctly.
# /opt/FJSVhanet/usr/sbin/hanetpoll print
[ Standard Polling Parameter ]
interval(idle) = 5( 60) sec
times = 5 times
max_retry = 5 retry
repair_time = 5 sec
link detection = NO
failover mode = YES
[ Polling Parameter of each interface ]
Name Hostname/Polling Parameter
+-------+---------------------------------------------------------------+
sha0 10.34.214.188,10.34.214.189
hub-hub poll = OFF
interval(idle) = 5( 60) sec
times = 5 times
max_retry = 5 retry
repair_time = 5 sec
link detection = NO
failover mode = YES
Setting up the Standby patrol monitoring function
# /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m p -t sha0
Check that the facility has been set up correctly.
# /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.182 hme0,hme3
sha1 - p 00:00:00:00:00:00 sha0
[IPv6]
Name Hostname/prefix Mode Interface List
+-----------+---------------------------------+----+---------------------------+
Creating of the takeover IP address (takeover virtual Interface)
# /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0
Check that the resources have been set up correctly.
# /opt/FJSVhanet/usr/sbin/hanethvrsc print
ifname takeover-ipv4 takeover-ipv6 +----------+----------------+--------------------------------------------------+ sha0:65 10.34.214.185 -
Post-setup processing
After the OPERATING and STANDBY node setup is done, create the Gls resources, and register them to the cluster application.
For details, see "6.7.1.4 Creating Gls Resources" and "6.7.2 Creating Cluster Applications."
See
For information on GLS (redundant line control function) and other operation modes, see "Appendix B Examples of Setting Up" in the "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function."