Blame SOURCES/README.Fedora

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