Created
October 21, 2013 22:42
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.