RestartQueue: Difference between revisions
From MDWiki
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
== Restarting grape's queue == | == Restarting grape's queue == | ||
If you see this error: | If you see this error: | ||
< | <code> | ||
<pre> | |||
[root@grape ~]# showq | [root@grape ~]# showq | ||
ERROR: cannot send request to server grape:42559 (server may not be running) | ERROR: cannot send request to server grape:42559 (server may not be running) | ||
ERROR: cannot request service (status) | ERROR: cannot request service (status) | ||
</ | </pre> | ||
</code> | |||
it means the queue server is down. The queue can be restarted by running as root just two commands: | it means the queue server is down. The queue can be restarted by running as root just two commands: | ||
< | <code> | ||
<pre> | |||
[root@grape ~]# /etc/init.d/pbs restart | [root@grape ~]# /etc/init.d/pbs restart | ||
Password:Restarting PBS | Password:Restarting PBS | ||
Line 23: | Line 25: | ||
Starting maui scheduler: [ OK ] | Starting maui scheduler: [ OK ] | ||
done. | done. | ||
</ | </pre> | ||
</code> | |||
This will restart the queue. Then to release the hold on jobs that were Blocked (Deferred because the queue was unavailable), run as root: | This will restart the queue. Then to release the hold on jobs that were Blocked (Deferred because the queue was unavailable), run as root: | ||
< | <code> | ||
<pre> | |||
[root@grape ~]# showq | grep Deferred | awk '{print $1}' | xargs -n 1 releasehold | [root@grape ~]# showq | grep Deferred | awk '{print $1}' | xargs -n 1 releasehold | ||
</ | </pre> | ||
</code> |
Latest revision as of 00:42, 8 January 2008
Restarting grape's queue
If you see this error:
[root@grape ~]# showq
ERROR: cannot send request to server grape:42559 (server may not be running)
ERROR: cannot request service (status)
it means the queue server is down. The queue can be restarted by running as root just two commands:
[root@grape ~]# /etc/init.d/pbs restart
Password:Restarting PBS
Shutting down PBS:
Stopping pbs_server: [ OK ]
Stopping maui: [FAILED]
Starting PBS daemons:
Starting pbs_server: [ OK ]
Starting maui scheduler: [ OK ]
done.
This will restart the queue. Then to release the hold on jobs that were Blocked (Deferred because the queue was unavailable), run as root:
[root@grape ~]# showq | grep Deferred | awk '{print $1}' | xargs -n 1 releasehold