Top
PRIMECLUSTER Installation and Administration Guide4.6 Cloud Services
FUJITSU Software

15.7.1 Initial GLS Setup

When using GLS, execute the initial GLS setup to the network used for the administrative LAN and the public LAN, according to the procedure below. Also, execute the initial GLS setup to the network for a storage and the network used for the cluster interconnect. For details on each setting, refer to "PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function."

Set the following in each node building the cluster.

The following is the procedure to duplicate eth0, eth1 that are used in the network of the public LAN and the administrative LAN, and to duplicate eth2, eth3 that are used in the network for a storage and the network of the interconnect.

Also, the procedure is for specifying 10 to VLAN ID of the network for the public LAN, 20 to VLAN ID of the network for the cluster interconnect, and 30 to VLAN ID of the network for a storage.

[Setting node1]

  1. Set the system.

    1. In the /etc/hosts file, define the IP address and the host name to be used.

      172.16.0.10       node1-mng       # Administrative LAN IP address of node1
      172.16.101.10     node1-gyomu     # Public LAN IP address of node1
      172.16.102.10     node1-cf        # IP address for CF of node1
      172.16.103.10     node1-storage   # IP address for storage connection of node1
      172.16.0.11       node2-mng       # Administrative LAN IP address of node2
      172.16.101.11     node2-gyomu     # Public LAN IP address of node2
      172.16.102.11     node2-cf        # IP address for CF of node2
      172.16.103.11     node2-storage   # IP address for storage connection of node2
      172.16.101.100    takeover        # Takeover IP address
      172.16.101.1      gw-gyomu        # Public LAN gateway IP address
    2. Edit the /etc/sysconfig/network-scripts/ifcfg-ethX (X is 0,1,2,3) file as follows.

      • Contents of /etc/sysconfig/network-scripts/ifcfg-ethX

        DEVICE=ethX
        #TYPE=Ethernet
        BOOTPROTO=static
        DEFROUTE=no
        UUID=<fixed value depending on an environment (change not required)>
        HOTPLUG=no
        ONBOOT=yes
        DEVICETYPE=hanet

      Note

      Describe all the parameters described in /etc/sysconfig/network-scripts/ifcfg-ethX.

      Correct the /etc/sysconfig/network-scripts/ifcfg-ethX.10 (X is 0,1) file and the ifcfg-ethY.Z (Y is 2,3 and Z is 20,30) file.

      Change ONBOOT to no in the /etc/sysconfig/network-scripts/ifcfg-ethX.10 file.

      Change ONBOOT to no in the /etc/sysconfig/network-scripts/ifcfg-ethY.Z file.

      • Contents of /etc/sysconfig/network-scripts/ifcfg-ethX.10

        VLAN=yes
        DEVICE=ethX.10
        PHYSDEV=ethX
        VLAN_ID=10
        TYPE=VLAN
        BOOTPROTO=static
        DEFROUTE=no
        UUID=<fixed value depending on an environment (change not required)>
        ONBOOT=no
      • Contents of /etc/sysconfig/network-scripts/ifcfg-ethY.Z

        VLAN=yes
        DEVICE=ethY.Z
        PHYSDEV=ethY
        VLAN_ID=Z
        TYPE=VLAN
        BOOTPROTO=static
        DEFROUTE=no
        UUID=<fixed value depending on an environment (change not required)>
        ONBOOT=no
  2. Create the virtual interface.

    Execute the following commands, and create the virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m v -t eth0,eth1
    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m v -t eth2,eth3
  3. Set the virtual interface.

    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha0

      Describe the IP address or the subnet mask in the /etc/sysconfig/network-scripts/ifcfg-sha0 file.

      For the administrative LAN, add the settings of DEFROUTE=yes, DNS1, DNS2 in the /etc/sysconfig/network-scripts/ifcfg-sha0 file.

      DEVICE=sha0
      IPADDR=172.16.0.10
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      HOTPLUG=no
      DEFROUTE=yes (for administrative LAN)
      DNS1=<IP address of the main DNS server> (for administrative LAN)
      DNS2=<IP address of the sub DNS server> (for administrative LAN)
    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha1

      Comment out the lines of IPADDR, NETMASK.

      DEVICE=sha1
      # IPADDR=
      # NETMASK=
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      HOTPLUG=no

    Note

    • Do not set ifcfg-sha0 to SHAMACADDR.

    • Describe all the parameters described in the /etc/sysconfig/network-scripts/ifcfg-sha0 file and the ifcfg-sha1 file.

  4. Add the tagged VLAN interface.

    To add the tagged VLAN interface sha0.10 on the virtual interface sha0, add the following interface configuration file.

    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha0.10

      DEVICE=sha0.10
      IPADDR=172.16.101.10
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      VLAN=yes

    To add the tagged VLAN interfaces sha1.20 and sha1.30 on the virtual interface sha1, add the following interface configuration files.

    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha1.20

      DEVICE=sha1.20
      IPADDR=172.16.102.10
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      VLAN=yes
    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha1.30

      DEVICE=sha1.30
      IPADDR=172.16.103.10
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      VLAN=yes
  5. Set the network monitoring function.

    Set the virtual router on the business network to the monitoring destination.

    # /opt/FJSVhanet/usr/sbin/hanetpathmon target -n sha0 -v 10 -p 172.16.101.1

    Specify the primary IP and the secondary IP of the block storage connected in "15.7.2 Connecting the Block Storage (iSCSI)" to the monitoring destination.

    # /opt/FJSVhanet/usr/sbin/hanetpathmon target -n sha1 -v 30 -p primary_ip,secondary_ip
  6. Set the subnet mask of the takeover virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanetmask create -i 172.16.101.0 -m 255.255.255.0
  7. Create the takeover virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 -i 172.16.101.100 -v 10
  8. Check the configuration.

    Make sure that the settings done from step 3 to step 7 are reflected.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print
     [IPv4,Patrol / Virtual NIC]
    
     Name       Hostname      Mode Physical ipaddr    Interface List
    +-----------+---------------+----+-----------------+---------------------------+
     sha0                         v                    eth0,eth1
     sha1                         v                    eth2,eth3
    [IPv6]
    
     Name        Hostname/prefix                  Mode Interface List
    +-----------+---------------------------------+-----+---------------------------+
    # /opt/FJSVhanet/usr/sbin/hanetpathmon target
    [Target List] Name VID Target +-------+----+----------------------------------------------------------+ sha0 10 172.16.101.1 sha1 30 primary_ip,secondary_ip
    # /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.101.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.101.100 - 10
  9. Restart the system.

    Run the following command and restart the system.

    # /sbin/shutdown -r now

[Setting node2]

  1. Set the system.

    1. In the /etc/hosts file, define the IP address and the host name to be used.
      The definition is the same as node1.

    2. Edit the /etc/sysconfig/network-scripts/ifcfg-ethX (X is 0,1,2,3) file.
      The definition is the same as node1.

    3. Correct the /etc/sysconfig/network-scripts/ifcfg-ethX.10 (X is 0,1) file and the ifcfg-ethY.Z (Y is 2,3 and Z is 20,30) file.
      The definition is the same as node1.

  2. Create the virtual interface.

    Execute the following commands, and create the virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha0 -m v -t eth0,eth1
    # /opt/FJSVhanet/usr/sbin/hanetconfig create -n sha1 -m v -t eth2,eth3
  3. Set the virtual interface.

    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha0

      Describe the IP address or the subnet mask in the /etc/sysconfig/network-scripts/ifcfg-sha0 file.

      For the administrative LAN, add the settings of DEFROUTE=yes, DNS1, DNS2 in the /etc/sysconfig/network-scripts/ifcfg-sha0 file.

      DEVICE=sha0
      IPADDR=172.16.0.11
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      HOTPLUG=no 
      DEFROUTE=yes (for administrative LAN)
      DNS1=<IP address of the main DNS server> (for administrative LAN)
      DNS2=<IP address of the sub DNS server> (for administrative LAN)
    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha1

      Comment out the lines of IPADDR, NETMASK.

      DEVICE=sha1
      # IPADDR=
      # NETMASK=
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      HOTPLUG=no

    Note

    • Do not set ifcfg-sha0 to SHAMACADDR.

    • Describe all the parameters described in the /etc/sysconfig/network-scripts/ifcfg-sha0 file and the ifcfg-sha1 file.

  4. Add the tagged VLAN interface.

    To add the tagged VLAN interface sha0.10 on the virtual interface sha0, add the following interface configuration file.

    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha0.10

      DEVICE=sha0.10
      IPADDR=172.16.101.11
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      VLAN=yes

    To add the tagged VLAN interfaces sha1.20 and sha1.30 on the virtual interface sha1, add the following interface configuration files.

    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha1.20

      DEVICE=sha1.20
      IPADDR=172.16.102.11
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      VLAN=yes
    • Contents of /etc/sysconfig/network-scripts/ifcfg-sha1.30

      DEVICE=sha1.30
      IPADDR=172.16.103.11
      NETMASK=255.255.255.0
      BOOTPROTO=static
      ONBOOT=yes
      DEVICETYPE=sha
      VLAN=yes
  5. Set the network monitoring function.

    Set the virtual router on the business network to the monitoring destination.

    # /opt/FJSVhanet/usr/sbin/hanetpathmon target -n sha0 -v 10 -p 172.16.101.1

    Specify the primary IP and the secondary IP of the block storage connected in "15.7.2 Connecting the Block Storage (iSCSI)" to the monitoring destination.

    # /opt/FJSVhanet/usr/sbin/hanetpathmon target -n sha1 -v 30 -p primary_ip,secondary_ip
  6. Set the subnet mask of the takeover virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanetmask create -i 172.16.101.0 -m 255.255.255.0
  7. Create the takeover virtual interface.

    # /opt/FJSVhanet/usr/sbin/hanethvrsc create -n sha0 -i 172.16.101.100 -v 10
  8. Check the configuration.

    Make sure that the settings done from step 3 to step 7 are reflected.

    # /opt/FJSVhanet/usr/sbin/hanetconfig print
     [IPv4,Patrol / Virtual NIC]
    
     Name       Hostname      Mode Physical ipaddr    Interface List
    +-----------+---------------+----+-----------------+---------------------------+
     sha0                         v                    eth0,eth1
     sha1                         v                    eth2,eth3
    
    [IPv6]
    
     Name        Hostname/prefix                  Mode Interface List
    +-----------+---------------------------------+-----+---------------------------+
    # /opt/FJSVhanet/usr/sbin/hanetpathmon target
    [Target List] Name VID Target +-------+----+----------------------------------------------------------+ sha0 10 172.16.101.1 sha1 30 primary_ip,secondary_ip
    # /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.101.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.101.100 - 10
  9. Restart the system.

    Run the following command and restart the system.

    # /sbin/shutdown -r now