|
Sun Grid Engine Information Center
Installing Sun Grid Engine
Index
Removing the Grid Engine Software
How to Remove the Software Interactively
To remove the software interactively, follow the steps below.
 | 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. |
- Ensure that your environment variables are set up properly.
 | Note If no cell name was specified during installation, the value of $SGE_CELL is default. |
- If you are using a C shell, type the following command:
# source $SGE_ROOT/$SGE_CELL/common/settings.csh
- If you are using a Bourne or Korn shell, type the following command:
# . $SGE_ROOT/$SGE_CELL/common/settings.sh
- On the master host, issue the $SGE_ROOT/inst_sge -ux 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. |
- (Optional) If you have any shadow master hosts, uninstall them:
# $SGE_ROOT/inst_sge -usm -host "host4"
- Uninstall the master host.
How to Remove the Software Using the inst_sge Utility and a Configuration Template
Unlike the interactive uninstallation method, the automated uninstallation method suppresses output during the process. Also, the automated method requires a properly formatted configuration file.
To remove the software using the inst_sge utility and a configuration template, follow these steps:
 | 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. |
- Ensure that your environment variables are set up properly.
 | Note If no cell name was specified during installation, the value of $SGE_CELL is default. |
- If you are using a C shell, type the following command:
# source $SGE_ROOT/$SGE_CELL/common/settings.csh
- If you are using a Bourne or Korn shell, type the following command:
# . $SGE_ROOT/$SGE_CELL/common/settings.sh
- 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
- Edit your configuration template.
Every host that is in the EXEC_HOST_LIST_RM list will be removed.
# Remove these execution hosts in automatic mode
EXEC_HOST_LIST_RM="host1 host2 host3 host4"
- On the master host type the $SGE_ROOT/inst_sge -ux -auto 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. |
- (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
- 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
|