To display a list of queues within the Rocks cluster, use qconf -sql.
[sysadm1@frontend-0 sysadm1]$ qconf -sql comp-pvfs-0-0.q comp-pvfs-0-1.q comp-pvfs-0-2.q frontend-0.q |
If there is a need to disable a particular queue for some reason, e.g scheduling that node for maintenance, use qmod -d Q where Q is the queue name. You will need to be a SGE manager in order to disable a queue like the root account. You can also use wildcards to select a particular range of queues.
[sysadm1@frontend-0 sysadm1]$ qstat -f queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- comp-pvfs-0-0.q BIP 0/2 0.10 glinux ---------------------------------------------------------------------------- comp-pvfs-0-1.q BIP 0/2 0.58 glinux ---------------------------------------------------------------------------- comp-pvfs-0-2.q BIP 0/2 0.02 glinux ---------------------------------------------------------------------------- frontend-0.q BIP 0/2 0.01 glinux [sysadm1@frontend-0 sysadm1]$ su - Password: [root@frontend-0 root]# qmod -d comp-pvfs-0-0.q Queue "comp-pvfs-0-0.q" has been disabled by [email protected] [root@frontend-0 root]# qstat -f queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- comp-pvfs-0-0.q BIP 0/2 0.10 glinux d ---------------------------------------------------------------------------- comp-pvfs-0-1.q BIP 0/2 0.58 glinux ---------------------------------------------------------------------------- comp-pvfs-0-2.q BIP 0/2 0.02 glinux ---------------------------------------------------------------------------- frontend-0.q BIP 0/2 0.01 glinux |
To enable back the queue, you can use qmod -e Q. Here is an example of Q being specified as range of queues via wildcards.
[root@frontend-0 root]# qmod -e comp-pvfs-* Queue "comp-pvfs-0-0.q" has been enabled by [email protected] root - queue "comp-pvfs-0-1.q" is already enabled root - queue "comp-pvfs-0-2.q" is already enabled [root@frontend-0 root]# qstat -f queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- comp-pvfs-0-0.q BIP 0/2 0.10 glinux ---------------------------------------------------------------------------- comp-pvfs-0-1.q BIP 0/2 0.58 glinux ---------------------------------------------------------------------------- comp-pvfs-0-2.q BIP 0/2 0.02 glinux ---------------------------------------------------------------------------- frontend-0.q BIP 0/2 0.01 glinux |
For more information in using SGE, please refer to the SGE documentation and the man pages.