Sun Cluster 3.0 U1 System Administration Guide

5.2.1 How to Create a NAFO Group

You can also accomplish this procedure by using the SunPlex Manager GUI. See the SunPlex Manager online help for more information.

  1. Note the following requirements for creating a NAFO group:

    • All public network adapters must be configured to belong to a NAFO group.

    • For any given node, there can be at most one NAFO group on a given subnet.

    • All adapters in a given NAFO group must be connected to the same subnet.

    • Only one adapter in a given NAFO group can have a hostname association, that is, an /etc/hostname.adapter file.

    • A public network adapter can belong to only one NAFO group.

  2. Become superuser on the node being configured for a NAFO group.

  3. For this node, find out the public network adapters that are physically connected to the same subnet.

    These adapters form the backup adapters for the NAFO group.

  4. Create the /etc/hostname.adapter file for one of the public network adapters, if the file does not already exist.

    The adapter specified in this file will be the default active adapter for the NAFO group.


    # vi /etc/hostname.<adapter>
    phys-schost-1

  5. Edit the /etc/inet/hosts file to add the IP address and corresponding hostname assigned to the public network adapter.

    For example, the following shows the IP address 192.29.75.101 and hostname phys-schost-1 added to the /etc/inet/hosts file.


    # vi /etc/inet/hosts
    192.29.75.101   phys-schost-1


    Note -

    If a naming service is used, this information should also exist in the naming service database.


  6. Create the NAFO group.


    # pnmset -c nafo-group -o create adapter [adapter ...]

    -c nafo-group

    Performs a configuration subcommand for the specified NAFO group. NAFO groups must be named nafoN, where N is a nonnegative integer identifier for the group. Group names are local to each node. Thus, the same NAFO group name can be used on multiple nodes.

    -o create

    Creates the new NAFO group.

    adapter [ adapter ... ]

    Specifies the public network adapter(s) that serves as the backup adapter. See Step 3.


    Note -

    If an adapter is already configured, it will be chosen as the active adapter and the pnmset command does not alter its state. Otherwise, one of the backup adapters will be configured and assigned the IP address found in the /etc/hostname.adapter file for the NAFO group.


  7. Verify the status of the NAFO group.


    # pnmstat -l
    

5.2.1.1 Example--Creating a NAFO Group

The following example shows the creation of a NAFO group (nafo0) configured with two network adapters (qfe0 and qfe1).


# pnmstat -l
# vi /etc/hostname.qfe0
phys-schost-1
# vi /etc/inet/hosts
192.29.75.101   phys-schost-1
# pnmset -c nafo0 -o create qfe0 qfe1
# pnmstat -l
group   adapters       status   fo_time   act_adp
nafo0   qfe0:qfe1       OK      NEVER     qfe0