Skip to content

Instantly share code, notes, and snippets.

@nkrumm
Created October 21, 2013 22:42
Show Gist options
  • Save nkrumm/7092165 to your computer and use it in GitHub Desktop.
Save nkrumm/7092165 to your computer and use it in GitHub Desktop.
Removing SGE hosts from a queue (why is this so hard?) credit: http://resbook.wordpress.com/2011/03/21/remove-execution-host-from-gridengine/
# first, you need to disable the host from queue to avoid any jobs to be allocated to this host
qmod -d all.q@thishost.com
# wait for jobs to be finished execution on this host, then kill the execution script
qconf -ke thishost.com
# remove it from the cluster, this opens an editor, just remove the lines referring to this host
qconf -mq all.q
# remove it from allhosts group, this also opens an editor, remove lines referring to this host
qconf -mhgrp @allhosts
# remove it from execution host list
qconf -de thishost
# I normally go to the host and delete the sge scripts as well
@mdiehn
Copy link

mdiehn commented Oct 7, 2019

This is way old, so maybe this won't matter, but, I found that using inst_sge -ux -host hostname worked a treat. It's the only way I was able to get everything removed. I think one could discover how to do it by hand from observing the output from that script - it does more than I expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment