Top
PRIMECLUSTER  Installation and Administration Guide4.5
FUJITSU Software

15.1.2 Building the cluster application (Control domain, Guest domain, and Kernel Zones)

For details on how to build the cluster application on the guest domain, see "Building Cluster Applications."

When building the cluster application in the environment where GLS is used in Kernel Zones, you must build it with the procedure described in "15.1.1.1 Cluster system between Kernel Zones within a same physical partition (Control domain/Guest domain)" instead of "GLS Setup."

15.1.2.1 Configuring GLS (Kernel Zones)

This section uses below example to explain the setup procedure for GLS (redundant line control function) for Kernel Zone clusters (1:1 operational/standby) of the NIC switching mode (Ipv4) in the Kernel Zones environment.

For information on the initial GLS setup, refer to "Chapter 5 Operation on Cluster System" in the "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function."

Figure 15.8 Sample GLS Configuration

In this configuration, a cluster is configured using the Kernel Zone kz01 on primecl01 as an operational node and using the Kernel Zone kz02 on primecl02 as a standby node. When user LAN transmissions on the operational node are disabled, GLS in Kernel Zones detects an error in the transmission route and switches clusters.

15.1.2.1.1 Network Setup in a Global Zone
primecl01

Set up the network setting of kz01 with the zonecfg command.

Below is an example when adding a new anet resource used in the virtual interface of the NIC switching mode to Kernel Zones.

# zonecfg -z kz01
zonecfg:kz01> add anet  <- Create the anet interface.
zonecfg:kz01:anet> set lower-link=net1  <- Specify the physical NIC net1 to connect.
zonecfg:kz01:anet> end
zonecfg:kz01> add anet  <- Create the anet interface.
zonecfg:kz01:anet> set lower-link=net2  <- Specify the physical NIC nets to connect.
zonecfg:kz01:anet> end
zonecfg:kz01> export <- Check the setting.
create -b
set autoboot=false
set autoshutdown=shutdown
set hostid=0x48bfa8db
add anet
set lower-link=auto
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=auto
set id=0
end
add anet
set lower-link=net1
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=auto
set id=1
end
add anet
set lower-link=net2
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=auto
set id=2
end
add device
set storage=dev:/dev/zvol/dsk/%{global-rootzpool}/VARSHARE/zones/%{zonename}/disk%{id}
set bootpri=0
set id=0
end
add capped-memory
set physical=2G
end
add keysource
set raw="{base64}qj3mgMZcH8ssmk7WYB7TjA=="
end
zonecfg:kz01> commit  <- Confirm the zone configuration.
zonecfg:kz01> exit    <- Zone setting is completed.
primecl02

Set up the network setting of kz02 with the zonecfg command.

The setting procedure is the same as primecl01

15.1.2.1.2 GLS Setup in Kernel Zones
Operational node [kz01]
  1. Setting up the system.

    1. Define the IP address and Host name in /etc/inet/hosts file.

      10.34.214.183   takeoverIP   # Virtual IP
      10.34.214.181   kz01         # Physical IP of kz01
      10.34.214.182   kz02         # Physical IP of kz02
      10.34.214.188   swhub1       # HUB IP for the primary monitoring destination 
      10.34.214.189   swhub2       # HUB IP for the secondary monitoring destination
    2. Define the subnet masks in the /etc/inet/netmasks file.

      10.34.214.0   255.255.255.0
    3. Setting up interface to use.

      # /usr/sbin/ipadm create-ip net1
      # /usr/sbin/ipadm create-addr -T static -a kz01/24 net1/v4
  2. Reboot the zone.

    Execute the following command to reboot the zone. After rebooting the zone, verify the interface set by using ifconfig command is enabled.

    # /usr/sbin/shutdown -y -i6 -g0
  3. Creating of virtual interface.

    For the underlined parameter, specify the specific IP address of the node.

    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m d -i 10.32.214.183 -e 10.34.214.181 -t net1,net2

    Check that the resources have 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.183 d 10.34.214.181 net1,net2 [IPv6] Name Hostname/prefix Mode Interface List +----------+----------------------------------+----+-------------------------+
  4. 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

    After executing above command, check that the settings are correct.

    # /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
  5. Make the settings for the GLS standby patrol function.

    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m p -t sha0

    After executing above command, check that the settings are correct.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print
    [IPv4,Patrol] Name Hostname Mode MAC Adder/Phys ip Interface List +-----------+---------------+----+-----------------+-------------------+ sha0 10.34.214.183 d 10.34.214.181 net1,net2 sha1 - p 00:00:00:00:00:00 sha0 [IPv6] Name Hostname/prefix Mode Interface List +-----------+----------------------------------+----+-------------------------+
  6. Creating the takeover virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0

    After executing above command, check that the settings are correct.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc print
    ifname takeover-ipv4 takeover-ipv6 +----------+----------------+--------------------------------------------------+ sha0:65 10.34.214.183 -
Standby node [kz02]
  1. Setting up the system.

    1. Define the IP address and Host name in /etc/inet/hosts file.

      The definition content is the same as kz01.

    2. Define the subnet masks in the /etc/inet/netmasks file.

      The definition content is the same as kz01.

    3. Setting up interface to use.

      # /usr/sbin/ipadm create-ip net1
      # /usr/sbin/ipadm create-addr -T static -a kz02/24 net1/v4
  2. Reboot the zone.

    Execute the following command to reboot the zone. After rebooting the zone, verify the interface set by using ifconfig command is enabled.

    # /usr/sbin/shutdown -y -i6 -g0
  3. Creating of virtual interface.

    For the underlined parameter, specify the specific IP address of the node.

    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m d -i 10.32.214.183 -e 10.34.214.182 -t net1,net2

    After executing above command, check that the settings are correct.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print
    [IPv4,Patrol] Name Hostname Mode MAC Adder/Phys ip Interface List +-----------+---------------+----+-----------------+-------------------+ sha0 10.34.214.183 d 10.34.214.182 net1,net2 [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+----+-------------------------+
  4. 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

    After executing above command, check that the settings are correct.

    # /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
  5. Make the settings for the GLS standby patrol function.

    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m p -t sha0

    After executing above command, check that the settings are correct.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print
    [IPv4,Patrol] Name Hostname Mode MAC Adder/Phys ip Interface List +-----------+---------------+----+-----------------+-------------------+ sha0 10.34.214.183 d 10.34.214.181 net1,net2 sha1 - p 00:00:00:00:00:00 sha0 [IPv6] Name Hostname/prefix Mode Interface List +-----------+---------------------------------+----+-------------------------+
  6. Creating the takeover virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0

    After executing above command, check that the settings are correct.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc print
     ifname     takeover-ipv4    takeover-ipv6
    +----------+----------------+--------------------------------------------------+
     sha0:65    10.34.214.183    -