Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     

Configuring a Floating External Address

A floating external address is a logical address assigned to an interface that is used to connect the master node to an external network. The Node State Manager (NSM) uses the Cluster Membership Manager (CMM) notifications to determine when a node takes on or loses the master role. When notified that a node has become the master node, the NSM executes a script to configure a floating external address on one of the node's external interfaces. When notified that a node has lost the master role, the NSM executes a script to unconfigure the floating external address.

The NSM can be installed when you first install the software on the cluster or after you have completed the installation process and have a running cluster. The following procedure describes how to install the NSM on a running cluster.

ProcedureTo Configure a Floating External Address

  1. Log in to the master node as superuser.

  2. Create a file named not_configured in the /etc/opt/SUNWcgha directory.

    # touch /etc/opt/SUNWcgha/not_configured

    If the node is rebooted during this procedure, the node does not start the Foundation Services.

  3. Reboot the master node.

  4. Install the NSM packages, SUNWnhnsa and SUNWnhnsb on the master node.

    # pkgadd -d /software-distribution-dir/NetraHAS2.1/Packages/ \
    SUNWnhnsa SUNWnhnsb

    where software-distribution-dir is the directory that contains the Foundation Services packages.

  5. Edit the /etc/opt/SUNWcgha/nhfs.conf file to define the NSM parameters.

    Example entries to configure the NSM are as follows:

    NSM.Exec.Masterdir=/opt/SUNWcgha/actions/master
    NSM.Exec.Vicemasterdir=/opt/SUNWcgha/actions/vicemaster
    NSM.Log.Masterdir=/var/adm/log/SUNWcgha/nsm_master
    NSM.Log.Vicemasterdir=/var/adm/log/SUNWcgha/nsm_vicemaster
    NSM.External.Master.Address=192.168.12.39
    NSM.External.Master.Nic=hme0:101

    The floating external address is attributed to the master role. This address is assigned to the logical interface hme0:101 and has the external IP address 192.168.12.39. If the master node switches over to become the vice-master node, the interface hme0:101 is enabled on the new master node. For more details on these parameters, see the nhfs.conf(4) man page.

  6. Log in to the vice-master node.

  7. Repeat Step 2 through Step 5 on the vice-master node.

  8. On both the master node and the vice-master node, delete the /etc/opt/SUNWcgha/not_configured file.

  9. Reboot both the master node and the vice-master node.

  10. Log in to the master node.

  11. Run the ifconfig command on the master node.

    # ifconfig -a

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 \
    index 1
            inet 127.0.0.1 netmask ff000000 
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 10.250.1.20 netmask ffffff00 broadcast 10.250.1.255
            ether 8:0:20:f9:b3:6a 
    hme0:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 2
            inet 10.250.1.1 netmask ffffff00 broadcast 10.250.1.255
    hme0:101: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> \
    mtu 1500 index 2 
    			inet 192.168.12.39 netmask ffffff00 broadcast 172.36.128.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
            inet 10.250.2.20 netmask ffffff00 broadcast 10.250.2.255
            ether 8:0:20:f9:b3:6b 
    hme1:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 3
            inet 10.250.2.1 netmask ffffff00 broadcast 10.250.2.255
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
            inet 10.250.3.20 netmask ffffff00 broadcast 10.250.3.255
            ether 0:0:0:0:0:0 
    cgtp0:1: flags=1040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> \
    mtu 1500 index 4
            inet 10.250.3.1 netmask ffffff00 broadcast 10.250.3.255

    In this output, you can see the entry for the hme0:101 interface with the floating external address 192.168.12.39.

  12. Run the ifconfig command on the vice-master node.

    # ifconfig -a

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv> mtu 8232 \
    index 1
             inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 \
    index 2
             inet 10.250.1.10 netmask ffffff00 broadcast 10.250.1.255
             ether 8:0:20:da:8f:c6
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 \
    index 3
             inet 10.250.2.10 netmask ffffff00 broadcast 10.250.2.255
             ether 8:0:20:da:8f:c7
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 \
    index 4
             inet 10.250.3.10 netmask ffffff00 broadcast 10.250.3.255
             ether 0:0:0:0:0:0

    In this output, there is no entry for the external network interface, hme0:101. Therefore, there is no floating external address on the vice-master node.

  13. Trigger a switchover.

    # /opt/SUNWcgha/sbin/nhcmmstat -c so

  14. Run the ifconfig command on the new master node.

    # ifconfig -a

    lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv> mtu 8232 index 1
             inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 \
    index 2
             inet 10.250.1.10 netmask ffffff00 broadcast 10.250.1.255
             ether 8:0:20:da:8f:c6
    hme0:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu 
    1500 index 2
             inet 10.250.1.1 netmask ffffff00 broadcast 10.250.1.255
    hme0:101: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> \
    mtu 1500 index 2 
    			inet 192.168.12.39 netmask ffffff00 broadcast 172.36.128.255
    hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
    3
             inet 10.250.2.10 netmask ffffff00 broadcast 10.250.2.255
             ether 8:0:20:da:8f:c7
    hme1:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu 
    1500 index 3
             inet 10.250.2.1 netmask ffffff00 broadcast 10.250.2.255
    cgtp0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
    4
             inet 10.250.3.10 netmask ffffff00 broadcast 10.250.3.255
             ether 0:0:0:0:0:0
    cgtp0:1: flags=1040842<BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4> mtu 
    1500 index 4
             inet 10.250.3.1 netmask ffffff00 broadcast 10.250.3.255

    In this output, the new master node has the hme0:101 interface with the floating external address 192.168.12.39.

  15. From a remote system, ping the master node floating address.

    % ping -s 192.168.12.39

    Where 192.168.12.39 is the floating address assigned to the master node.

Previous Previous     Contents