SGE
[upgrade]
The following is a basic outline of how you would upgrade SGE from the minor release updates.
- Download the all platform package from Sun Oracle
- Unpack into a new directory along side the existing (I use automount here so your setup may vary)
- Copy or rsync the old SGE cell to the new SGE location or another location if you symlink the cell as I do
- Save the old SGE configurations with save_sge_config.sh
- Copy over the saved configuration to the new location
- Perform upgrade on new install
1) Download SGE onto the new server. If you’re up for it, fill out the Planning Checklist.
2) Unzip, untar, an set $SGE_ROOT to your untar’ed folder.
OldCentOS# export SGE_ROOT=/directory/to/sge/
Note: You may consider putting SGE root in an NFS directory in case you want to create a “high availability” fail-over environment. NFS may very well slow you down.
3) Find save_sge_config.sh and copy it over to the old host.
4) Create a copy of your configuration using save_sge_config.sh
OldCentOS# mkdir sge_config_folder
OldCentOS# /path/to/save_sge_config.sh sge_config_folder
5) Copy over your config folder
6) Edit save_config_folder/cell/qmaster and change the old hostname (OldCentOS) to the new hostname (NewCentOS). Otherwise you’ll get an error like this:
Upgrade must be started on a qmaster host!
7) Run upgrade
NewCentOS# $SGE_ROOT/inst_sge -upd
Follow prompts. This is when you should reach for that planning checklist from step 1.
9) Be patient. Depending on the size your configuration, certain portions might take a long time.
10) Check your install
NewCentOS# ps -ef | grep sge
NewCentOS# qstat -f
[usage]
Throttling a job array of 20 to limit only 5 running at a time
$ qsub -t 1-20 -tc 5 test.sh