Sun Cluster 2.2 System Administration Guide

3.5.2 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.