Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS

Testing Public Network Redundancy

This section provides the procedure for testing public network redundancy.

ProcedureHow to Test Public Network Redundancy

If you perform this test, you can verify that IP addresses failover from one adapter to another adapter within the same IPMP group.

Before You Begin

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Geographic Edition Object-Oriented Commands.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Geographic Edition Object-Oriented Commands.

To perform this procedure, become superuser or assume a role that provides solaris.cluster.read RBAC authorization.

  1. Create a logical hostname resource group which is the failover hostname to use the IPMP groups on the system.

    • If you are using Sun Cluster 3.2, use the following command:


      # clresourcegroup create lhtestgroup
      # clreslogicalhostname create -g lhtestgroup logicalhostname
      # clresourcegroup online lhtestgroup
      
      logicalhostname

      The IP address that is hosted on the device on which an IPMP group is configured.

    • If you are using Sun Cluster 3.1, use the following commands:


      # scrgadm -a lhtestgroup
      # scrgadm -aLg lhtestgroup -l logicalhostname
      # scswitch -Z -g lhtestgroup
      
      logicalhostname

      The IP address that is hosted on the device on which an IPMP group is configured.

  2. Determine the adapter on which the logicalhostname exists.


    # ifconfig -a
  3. Disconnect one public network cable from the adapter you identified in Step 2.

  4. If there are no more adapters in the group, skip to Step 7.

  5. If there is another adapter in the group, verify that the logical hostname failed over to that adapter.


    # ifconfig -a
  6. Continue to disconnect adapters in the group, until you have disconnected the last adapter.

    The resource group (lhtestgroup) should fail over to the secondary node.

  7. Verify that the resource group failed over to the secondary node.

    • If you are using Sun Cluster 3.2, use the following command:


      # clnode status lhtestgroup
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scstat -g
      
  8. Reconnect all adapters in the group.

  9. From the initial primary node, return ownership of the resource group to the initial primary node.

    • If you are using Sun Cluster 3.2, use the following command:


      # clresourcegroup switch -n nodename lhtestgroup
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scswitch -z -g lhtestgroup -h nodename
      

    In these commands, nodename is the name of the original primary node.

  10. Verify that the resource group is running on the original primary node.

    • If you are using Sun Cluster 3.2, use the following command:


      # clnode status lhtestgroup
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scstat -g