25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5<br />

Working with Queues<br />

Adding and Removing Queues<br />

Adding a queue<br />

1 Log in as the <strong>LSF</strong> administrator on any host in the cluster.<br />

2 Edit lsb.queues to add the new queue definition.<br />

You can copy another queue definition from this file as a starting point;<br />

remember to change the QUEUE_NAME of the copied queue.<br />

Removing a queue<br />

3 Save the changes to lsb.queues.<br />

4 Run badmin reconfig to reconfigure mbatchd.<br />

Adding a queue does not affect pending or running jobs.<br />

IMPORTANT<br />

Before removing a queue, make sure there are no jobs in that queue.<br />

If there are jobs in the queue, move pending and running jobs to another<br />

queue, then remove the queue. If you remove a queue that has jobs in it, the<br />

jobs are temporarily moved to a queue named lost_and_found. Jobs in the<br />

lost_and_found queue remain pending until the user or the <strong>LSF</strong><br />

administrator uses the bswitch command to switch the jobs into regular<br />

queues. Jobs in other queues are not affected.<br />

Steps 1 Log in as the <strong>LSF</strong> administrator on any host in the cluster.<br />

2 Close the queue to prevent any new jobs from being submitted. For<br />

example:<br />

% badmin qclose night<br />

Queue is closed<br />

3 Move all pending and running jobs into another queue. Below, the<br />

bswitch -q night argument chooses jobs from the night queue, and<br />

the job ID number 0 specifies that all jobs should be switched:<br />

% bjobs -u all -q night<br />

JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME<br />

SUBMIT_TIME<br />

5308 user5 RUN night hostA hostD job5 N<br />

ov 21 18:16<br />

5310 user5 PEND night hostA hostC job10 N<br />

ov 21 18:17<br />

% bswitch -q night idle 0<br />

Job is switched to queue <br />

Job is switched to queue <br />

4 Edit lsb.queues and remove or comment out the definition for the queue<br />

being removed.<br />

5 Save the changes to lsb.queues.<br />

6 Run badmin reconfig to reconfigure mbatchd.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!