Sun Cluster 2.2 System Administration Guide

Adding and Removing Logical Hosts

Logical hosts are the objects that fail over if a node fails. Each logical host is composed of a disk group or groups, a relocatable IP address, and a logical host name. Logical hosts are only used in configurations with HA data services. There are no logical hosts in a parallel database configuration.

You add or remove logical hosts by updating the logical host configuration information stored by the cluster, and then reconfiguring the cluster. When you configure the cluster originally, you provide scinstall(1M) with information about your logical host configuration. Once the cluster is up, there are two ways to change this information:

How to Add a Logical Host to the Cluster

As part of the process of adding a logical host, you will be asked to provide the following information:

Gather the answers to these questions before starting the procedure. Note that you must have already set up your disk group to be used by the new logical host. Refer to the appropriate appendix in the Sun Cluster 2.2 Software Installation Guide for your volume manager for details.

Use the following procedure to add a logical host to a cluster.

  1. Run the scinstall(1M) command and select the Change option from the main menu.


    # scinstall
    Assuming a default cluster name of planets
    Note: Cluster planets is currently running.
          Install/Uninstall actions are disabled during
          cluster operation.
    
            <<Press return to continue>>
    
            Checking on installed package state
    ........................
    
    ============ Main Menu =================
    
    1) Change  - Modify cluster or data service configuration.
    2) Verify  - Verify installed package sets.
    3) List    - List installed package sets.
    
    4) Quit    - Quit this program.
    5) Help    - The help screen for this menu.
    
    Please choose one of the menu items: [5]:  1
    

  2. From the Change menu, choose the Logical Hosts option.


    =========== Changes Menu ================
    
    Choices from this menu:
    
    1) Logical Hosts       - Change the logical hosts configuration.
    2) NAFO                - Re-initialize the NAFO configuration.
    
    3) Close  - Close this menu to return to the Main Menu.
    4) Quit   - Exit this program.
    5) Help   - Show the Help screen.
    
    Please choose a displayed option: [5] 1
    

    This will display the Logical Hosts Configuration menu.

  3. From the Logical Hosts Configuration menu, select the Add option.


    ====== Logical Hosts Configuration ======
    
    1) Add     - Add a logical host to the cluster.
    2) Remove  - Remove a logical host from the cluster.
    3) List    - List the logical hosts in the cluster.
    
    4) Close   - Return to the previous menu.
    5) Quit    - Exit.
    
    
    Please choose an option:  1
    

    You will be asked a series of questions regarding the new logical host.

  4. Respond to the prompts with the required information.

    Once the scinstall(1M) portion of this procedure is complete, you will be returned to the Logical Hosts Configuration menu.


    What is the primary public network controller for "phys-hahost1"? 
    What is the primary public network controller for "phys-hahost2"? 
    Does the cluster serve any secondary public subnets (yes/no) [no]?
    Re-initialize NAFO on "phys-hahost1" with one ctlr per group 
    
    (yes/no)? 
    What is the name of the new logical host?  hahost1
    What is the name of the default master for "hahost1"? phys-hahost1
    Enable automatic failback for "hahost1" (yes/no) [no]? 
    Disk group name for logical host "hahost1" [hahost1]? 
    Is it okay to add logical host "hahost1" now (yes/no) [yes]?
    /etc/opt/SUNWcluster/conf/ha.cdb
    Checking node status...
  5. Create a new HA administrative file system and update the /etc/opt/SUNWcluster/conf/hanfs/vfstab.logicalhost file.

    When you add a new logical host, you must set up a file system on a disk group within the logical host to store administrative information. The steps for setting up the HA administrative file system differ depending on your volume manager. These steps are described in the volume manager appendixes of the Sun Cluster 2.2 Software Installation Guide.


    Note -

    Do not use host name aliases for the logical hosts. NFS clients mounting Sun Cluster file systems using logical host name aliases might experience statd lock recovery problems.


How to Remove a Logical Host From the Cluster

To remove a logical host from the cluster configuration, the cluster must be up and there must be no data services registered for the logical host.

  1. Stop all data service applications running on the logical host to be removed.


    # hareg -n dataservice
    

  2. Unregister the data service.


    # hareg -u dataservice
    

  3. Remove the logical host from the cluster.

    Run the scinstall(1M) command as described in the Sun Cluster 2.2 Software Installation Guide and select the Change option from the main menu.


    # scinstall
    Assuming a default cluster name of planets
    Note: Cluster planets is currently running.
          Install/Uninstall actions are disabled during
          cluster operation.
    
            <<Press return to continue>>
    
            Checking on installed package state
    ........................
    
    ============ Main Menu =================
    
    1) Change  - Modify cluster or data service configuration.
    2) Verify  - Verify installed package sets.
    3) List    - List installed package sets.
    
    4) Quit    - Quit this program.
    5) Help    - The help screen for this menu.
    
    Please choose one of the menu items: [5]:  1
    

  4. From the Change menu, select the Logical Hosts option.


    =========== Changes Menu ================
    
    Choices from this menu:
    
    1) Logical Hosts       - Change the logical hosts configuration.
    2) NAFO                - Re-initialize the NAFO configuration.
    
    3) Close  - Close this menu to return to the Main Menu.
    4) Quit   - Exit this program.
    5) Help   - Show the Help screen.
    
    Please choose a displayed option: [5] 1
    

    This will display the Logical Hosts Configuration menu.

  5. From the Logical Hosts Configuration menu, select the Remove option.


    ====== Logical Hosts Configuration ======
    
    1) Add     - Add a logical host to the cluster.
    2) Remove  - Remove a logical host from the cluster.
    3) List    - List the logical hosts in the cluster.
    
    4) Close   - Return to the previous menu.
    5) Quit    - Exit.
    
    Please choose an option:  2
    

    This displays a list of configured logical hosts.

  6. Enter the name of the logical host to be removed from the list of configured logical hosts.


    The list of logical hosts is:
    
            hahost1
            hahost2
    
    Which one do you want to remove?  hahost1
    

    The procedure is now complete and you are returned to the Logical Hosts Configuration menu.

  7. As root, delete the /etc/opt/SUNWcluster/conf/hanfs/vfstab.logicalhost file that was created when the logical host was added to the cluster configuration.