[torqueusers] Torque on Mac OS X Tiger
Eric CIRCLAEYS
eric.c at mac.com
Sun Oct 9 07:48:47 MDT 2005
I had a couple of issues the last months configuring Torque on Mac OS
X Tiger.
Now it rocks perfectly as well as the default scheduler.
I made it work as the following:
#> mkdir -p /usr/local/src
#> tar xzf torque-1.2.0p5.tar.gz -C /usr/local/src
#> cd /usr/local/src/torque-1.2.0p5
#> ./configure --with-scp -set-cflags=”-D__TDARWIN_8” --set-default-
server=g1-n1.example.com
#> make
#> make install
In “/etc/bashrc”, add the following line: “export PATH=$PATH”:/usr/
local/bin:/usr/local/sbin”” and reload it.
Create file “/usr/spool/PBS/mom_priv/config”:
$clienthost 192.168.1.1
$logevent 255
$restricted 192.168.1.1
Run the torque client:
#> pbs_mom
Create file “/usr/spool/PBS/sched_priv/config”:
$restricted 192.168.1.1
Run the torque basic scheduler:
#> pbs_sched -c /usr/spool/PBS/sched_priv/config
Create file “/usr/spool/PBS/server_priv/nodes” and add the compute
nodes:
g1-n1.example.com np=2
g1-n2.example.com
g1-n3.example.com
Now start the resource manager and setup the main queue:
#> pbs_server -t create
#> qmgr
Qmgr: create queue workqueue
Qmgr: set queue workqueue queue_type = execution
Qmgr: set queue workqueue started = true
Qmgr: set queue workqueue enabled = true
Qmgr: set queue workqueue resources_default.walltime = 1:00:00
Qmgr: set queue workqueue resources_default.nodes = 1
Qmgr: set server default_queue = workqueue
Qmgr: set server scheduling = true
Qmgr: print server
Qmgr: quit
On each client nodes:
#> mkdir -p /usr/local/src
#> tar xzf torque-1.2.0p5.tar.gz -C /usr/local/src
#> cd /usr/local/src/torque-1.2.0p5
#> ./configure --with-scp -set-cflags=”-D__TDARWIN_8” --set-default-
server=g1-n1.example.com --enable-clients
#> make
#> make install
In “/etc/bashrc”, add the following line: “export PATH=$PATH”:/usr/
local/bin:/usr/local/sbin”” and reload it
Edit file “/usr/spool/PBS/mom_priv/config”:
$clienthost 192.168.1.1
$logevent 255
$restricted 192.168.1.1
Run the mom (“#> pbs_mom”)
Check on the server the compute nodes availability:
#> qmgr
Qmgr: print node @g1-n1
Qmgr: quit
# pbsnodes -a
echo 'sleep 10' | qsub -l nodes=1
Cheers,
Eric.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20051009/44119a6a/attachment.html
More information about the torqueusers
mailing list