Sun N1 Grid Engine 6.1 Installation Guide

Chapter 7 Removing the Grid Engine Software

This chapter describes the two ways that the grid engine software can be removed:

Removing the Software Interactively


Note –

Remove the software from the execution hosts before removing it from the master host. If you remove the software from the master host first, you cannot automate the removal of the software from the execution hosts.


ProcedureHow to Remove the Software Interactively

  1. Ensure that your environment variables are set up properly.


    Note –

    If no cell name was specified during installation, the value of cell is default.


    • If you are using a C shell, type the following command:


      # source sge-root/cell/common/settings.csh
      
    • If you are using a Bourne shell or Korn shell, type the following command:


      # . sge-root/cell/common/settings.sh
      
  2. On the master host, issue the sge-root/inst_sge command.

    This example uninstalls the execution hosts, host1, host2 and host3.


    # sge-root/inst_sge -ux -host "host1 host2 host3"
    

    Note –

    You are not prompted for any information during this process. However, the output from this process will be displayed to the terminal window where you run the command.


  3. (Optional) If you have any shadow master hosts, uninstall them now by typing:


    # sge-root/inst_sge -usm -host "host4"
    
  4. Uninstall the master host.


    # sge-root/inst_sge -um
    

Removing the Software Using the inst_sge Utility and a Configuration Template

One difference between interactive and automated uninstallation is that the automated method suppresses output during the process. The other difference is that the automate method requires a properly formatted configuration file.


Note –

Remove the software from the execution hosts before removing it from the master host. If you remove the software from the master host first, you cannot automate the removal of the software from the execution hosts.


ProcedureHow to Remove the Software Interactively

  1. Ensure that your environment variables are set up properly.


    Note –

    If no cell name was specified during installation, the value of cell is default.


    • If you are using a C shell, type the following command:


      # source sge-root/cell/common/settings.csh
      
    • If you are using a Bourne-shell or Korn shell, type the following command:


      # . sge-root/cell/common/settings.sh
      
  2. Create a copy of the configuration template, sge-root/util/inst_sge_modules/inst_sge_template.conf.


    # cd sge-root/util/inst_sge_modules/
    # cp inst_sge_template.conf  my_configuration.conf
    
  3. Edit your configuration template.

    Every host that is in the EXEC_HOST_LIST_RM list will be automatically removed.

    # Remove this execution hosts in automatic mode
    EXEC_HOST_LIST_RM="host1 host2 host3 host4"
  4. On the master host type the sge-root/inst_sge command.

    This example uninstalls the execution hosts, host1, host2 and host3.

    Type the following command as one string, with a space between the -auto and the sge-root/util/inst_sge_modules/my_configuration.conf components.


    # sge-root/inst_sge -ux -auto 
    sge-root/util/inst_sge_modules/my_configuration.conf
    

    Note –

    You are not prompted for any information during this process. However, the output from this process will be displayed to the terminal window where you run the command.


  5. (Optional) If you have any shadow master hosts, uninstall them.

    Type the following command as one string, with a space between the -auto and the sge-root/util/inst_sge_modules/my_configuration.conf components.


    # sge-root/inst_sge -usm -auto 
    sge-root/util/inst_sge_modules/my_configuration.conf
    
  6. Uninstall the master host.

    Type the following command as one string, with a space between the -auto and the sge-root/util/inst_sge_modules/my_configuration.conf components.


    # sge-root/inst_sge -um -auto 
    sge-root/util/inst_sge_modules/my_configuration.conf