分类: LINUX
2009-07-24 07:47:09
#This file contains a list of all of the compute nodes hostnames node01 node02 - - nodeXX
#This file contains the head node hostname node00
Security note: Make sure you are on a private network, or that your firewall is properly configured so as to deny access from all untrusted IP addresses.
This disables the GUI and sets the installation directory to /var/spool/PBS instead of /usr/spool/PBS. This also sets the default PBS server to node00, which should be the hostname of the head node. The source is then compiled and the binaries are then installed.
After the head node is successfully installed, the configuration script is run again in a separate directory for the compute nodes. This disables the GUI and sets the installation directory to /var/spool/PBS instead of /usr/spool/PBS. This also sets the default PBS server to node00, which should be the hostname of the head node. It also disables the server and scheduling processes of PBS on the compute nodes, since they are not necessary. The source is then compiled and installed using rsh.
#This file contains a list of all of the compute nodes hostnames
node01 np=1
node02 np=1
-
-
nodeXX np=1
where nodeXX corresponds to the hostname of the compute node and np corresponds to the number of processsors on the node.
#/var/spool/PBS/mom_priv/config $logevent 0x0ff $clienthost node00 $restricted node00This causes all messages except for debugging messages to be logged and sets the primary server to node00. It also allows node00 to monitor OpenPBS.
On the head node and on each compute node, start PBS mom with
# /usr/local/sbin/pbs_mom
>c q workq >s q workq queue_type=execution >s q workq enabled=true >s q workq started=true >s s default_queue=workq >s s scheduling=true >s s query_other_jobs=true >s s node_pack=false >s s log_events=511 >s s scheduler_iteration=600 >s s resources_default.neednodes=1 >s s resources_default.nodect=1 >s s resources_default.nodes=1 >quitThis creates an execution queue called workq that is enabled and started. It is then declared the default queue for the server. Logging and scheduling are enabled on the server and node_pack is set to false. The default number of nodes is set to 1.
It is useful to backup the PBS server configuration file with
# qmgr -c "print server" > /var/spool/PBS/qmgr.conf
so that the PBS server could be restored with
# qmgr < /var/spool/PBS/qmgr.conf
#!/bin/sh #testpbs echo This is a test echo Today is `date` echo This is `hostname` echo The current working directory is `pwd` ls -alF /home uptimeand then submitted to PBS using the qsub command as a non-root user.
$ qsub testpbs
After the job is executed, the output is stored in the directory from which the job was submitted. If errors occur or output is not received, check the log files for messages about the job (especially the precise name used by PBS for the headnode in the server_logs).
# more /var/spool/PBS/*_logs/*