RestartQueue

From MDWiki
Jump to navigationJump to search

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