Blame SOURCES/README.Fedora

199fe1
This README describes how to get the most basic working
199fe1
torque service on a single host.
199fe1
199fe1
To setup a basic single-node localhost-only batch system, install the
199fe1
torque-server, torque-mom, and torque-scheduler packages, and do something like
199fe1
this:
199fe1
199fe1
0) If torque is built with munge support then this 
199fe1
   must be enabled first on all nodes. The munge
199fe1
   package should allready be installed.
199fe1
199fe1
   Create a munge key with 
199fe1
199fe1
   /usr/sbin/create-munge-key
199fe1
199fe1
   Copy resulting key /etc/munge/munge.key to 
199fe1
   all torque nodes in your cluster including
199fe1
   pbs_server, pbs_mom and client (qstat,qsub) nodes.
199fe1
199fe1
1) Get your full hostname with
199fe1
199fe1
# /bin/hostname --long
199fe1
199fe1
e.g myhost.example.org
199fe1
199fe1
2) Edit /etc/torque/server_name 
199fe1
to contain the single line
199fe1
199fe1
myhost.example.org
199fe1
199fe1
3) Edit /etc/torque/mom/config 
199fe1
to contain the single line
199fe1
199fe1
$pbsserver myhost.example.org
199fe1
199fe1
4) Create a torque serverdb file.
199fe1
# /usr/sbin/pbs_server -D -t create
199fe1
199fe1
Warning this will remove any existing serverdb 
199fe1
file located at /var/lib/torque/server_priv/serverdb
199fe1
199fe1
You will have to Ctrl^C the pbs_server command, it will
199fe1
only take a moment to create this file.
199fe1
199fe1
5) Start the pbs_server and configure it.
199fe1
service pbs_server start
199fe1
# qmgr -c "s s scheduling=true"
199fe1
# qmgr -c "c q batch queue_type=execution"
199fe1
# qmgr -c "s q batch started=true"
199fe1
# qmgr -c "s q batch enabled=true"
199fe1
# qmgr -c "s q batch resources_default.nodes=1"
199fe1
# qmgr -c "s q batch resources_default.walltime=3600"
199fe1
# qmgr -c "s s default_queue=batch"
199fe1
199fe1
6) Add one batch worker to your pbs_server.
199fe1
199fe1
# qmgr -c "c n myhost.example.org"
199fe1
199fe1
7) Start the pbs_mom and pbs_sched deamons.
199fe1
199fe1
# service pbs_mom start
199fe1
# service pbs_sched start
199fe1
199fe1
8) Use chkconfig to start the services at boot time.
199fe1
199fe1
# /sbin/chkconfig pbs_mom on
199fe1
# /sbin/chkconfig pbs_server on
199fe1
# /sbin/chkconfig pbs_sched on
199fe1
# /sbin/chkconfig munge on
199fe1
199fe1
9) Submit a test job.
199fe1
As a user not as root run the following
199fe1
199fe1
$ qsub <
199fe1
hostname 
199fe1
echo "Hi I am a batch job running in torque"
199fe1
EOF
199fe1
199fe1
10 ) Monitor the state of that job with qstat.
199fe1
199fe1
In case of problems first of all look in /var/log/torque
199fe1
199fe1
199fe1