Adding/removing nodes to PBS
From PDP/Grid Wiki
Jump to navigationJump to searchTo 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>