Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

How to Configure and Activate Network Resources

To perform this procedure, you need the following information about your configuration.


Note -

Perform this procedure on any cluster member.


  1. Become superuser on a cluster member.

  2. Verify that all network addresses that you use have been added to your name-service database.

    You should have performed this verification during the Sun Cluster installation. See the planning chapter in the Sun Cluster 3.0 U1 Installation Guide for details.


    Note -

    To avoid any failures because of name-service lookup, ensure that all logical hostnames and shared addresses are present in the /etc/hosts file on all cluster nodes. Configure name-service mapping in the /etc/nsswitch.conf file on the servers to first check the local files before trying to access NIS, NIS+, or DNS.


  3. Create a failover resource group to hold the network and application resources.


    # scrgadm -a -g resource-group [-h nodelist]
    -g resource-group

    Specifies the name of the resource group. This name can be your choice.

    -h nodelist

    Specifies an optional comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the nodes are considered as primary during failover.


    Note -

    Use the -h option to specify the order of the node list. If all the nodes in the cluster are potential masters, you need not use the -h option.


  4. Add logical-hostname resources to the resource group.


    # scrgadm -a -L -g resource-group -l hostname, ...[-n netiflist]
    -L

    Specifies that a logical-hostname resource is being added.

    -g resource-group

    Specifies the name of the resource group.

    -l hostname, ...

    Specifies a comma-separated list of logical hostnames.

    -n netiflist

    Specifies an optional comma-separated list that identifies the NAFO groups on each node. All the nodes in nodelist of the resource group must be represented in netiflist. If you do not specify this option, scrgadm(1M) attempts to discover a net adapter on the subnet that the hostname list identifies for each node in nodelist.

  5. Verify that all logical hostnames that you use have been added to your name-service database.

    You should have performed this verification during the Sun Cluster installation. See the planning chapter in the Sun Cluster 3.0 U1 Installation Guide for details.

  6. Run the scswitch command to enable the resource group and bring the resource group online.


    # scswitch -Z -g resource-group
    
    -Z

    Moves the resource group to the managed state, and brings the resource group online.

    -g resource-group

    Specifies the name of the resource group.