Globus Toolkit Tutorial The Globus Consortium
 
 

Chapter 2: Deploying Torque (Open PBS)

Configuring and Deploying Torque (PBS)

As root run the following command to begin the initial configuration of the PBS server:

/opt/pbs/sbin/pbs_server -t create

Next run the following command, again as root:

/opt/pbs/bin/qmgr

When qmgr is run it will start a "prompt session" that will want some commands entered. Execute on this with the commands below so your session looks like the following:

Note that the hostname in the first command given to the qmgr should be in all lowercase even if technically the host name has an uppercase letter in it.

Qmgr: set server operators = root@nodeb.ps.univa.com
Qmgr: create queue batch
Qmgr: set queue batch queue_type = Execution
Qmgr: set queue batch started = True
Qmgr: set queue batch enabled = True
Qmgr: set server default_queue = batch
Qmgr: set server resources_default.nodes = 1
Qmgr: set server scheduling = True
Qmgr: quit

Next we need to configure PBS to understand which nodes in the "cluster" are available to be used.

Do this as user root by creating the file /usr/spool/PBS/server_priv/nodes

touch /usr/spool/PBS/server_priv/nodes

Then with vi or a similar editor add the following line:
nodeB.ps.univa.com np=2

The 'np=2' is because the machine used while developing this tutorial has two processors or CPUs. If your computer only has one then leave off the 'np=' option, or set it appropriately.

A cat command on the file should yield a similar resulting output:
[root@nodeB torque-2.0.0p7]# cat /usr/spool/PBS/server_priv/nodes
nodeB.ps.univa.com np=2
Next we need to configure PBS so that it understand which node in the "cluster" is acting as the server.

To do this create the file /usr/spool/PBS/mom_priv/jobs/config and edit it so that it looks similar to this:

[root@nodeB mom_priv]# cat /usr/spool/PBS/mom_priv/jobs/config
$pbsserver    nodeB.ps.univa.com
$logevent    255
 
 
 
FAQ Feedback The Globus Consortium Home Page