Difference between revisions of "Adding/removing nodes to PBS"

From PDP/Grid Wiki
Jump to navigationJump to search
 
(3 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
To delete a node, run the script (as root on the PBS server) with the following syntax:
 
To delete a node, run the script (as root on the PBS server) with the following syntax:
 
  root@tbn20# ~davidg/bin/mk_pbsnode -d <hostname> | qmgr
 
  root@tbn20# ~davidg/bin/mk_pbsnode -d <hostname> | qmgr
 +
 +
 +
'''NOTE: '''
 +
Deleting a node with the above commands kills pbs_server in torque 2.0.0.
 +
Taking a node offline can be done with
 +
pbsnodes -o <hostname>
 +
and bringing it back online via
 +
pbsnodes -c <hostname>

Latest revision as of 10:31, 21 February 2006

To add a node to PBS, run as root the script ~davidg/bin/mk_pbsnode on the PBS server and pipe its output to qmgr.

Syntax of this script:

mk_pbsnode -np <number_of_processors> -p <node-type> -p <OS> -p xps<speed> <hostname>

For example:

root@tbn20# ~davidg/bin/mk_pbsnode -np 2 -p amdncf -p rhel3 -p xps2000 node16-66.farmnet.nikhef.nl
# creating node node16-66.farmnet.nikhef.nl
create node node16-66.farmnet.nikhef.nl
set node node16-66.farmnet.nikhef.nl properties += farm
set node node16-66.farmnet.nikhef.nl properties += amdncf
set node node16-66.farmnet.nikhef.nl properties += rhel3
set node node16-66.farmnet.nikhef.nl properties += xps2000
set node node16-66.farmnet.nikhef.nl ntype = cluster
set node node16-66.farmnet.nikhef.nl np = 2

To delete a node, run the script (as root on the PBS server) with the following syntax:

root@tbn20# ~davidg/bin/mk_pbsnode -d <hostname> | qmgr


NOTE: Deleting a node with the above commands kills pbs_server in torque 2.0.0. Taking a node offline can be done with

pbsnodes -o <hostname>

and bringing it back online via

pbsnodes -c <hostname>