A. Configuring for TORQUE Server
Step 1: Download the Torque Software from Adaptive Computing
# wget TORQUE Downloads
Step 2: Configure the Torque Server
./configure \ --prefix=/opt/torque \ --exec-prefix=/opt/torque/x86_64 \ --enable-docs \ --disable-gui \ --with-server-home=/var/spool/torque \ --enable-syslog \ --with-scp \ --disable-rpp \ --disable-spool \ --with-pam
Step 3: Compile Torque
# make # make install
Step 4: Make packages for the clients
# make packages
You should have the following
torque-package-doc-linux-x86_64.sh torque.setup torque-package-clients-linux-x86_64.sh torque-package-mom-linux-x86_64.sh torque_setup.sh torque-package-devel-linux-x86_64.sh torque-package-server-linux-x86_64.sh torque-package-pam-linux-x86_64.sh torque.spec
Step 5: Installing Torque as a service (pbs_mom)
I was unable to use the default “init.d” script found at $TORQUE/contrib/init.d to run as a service. But a workaround it to use the open-source XCAT which has a working pbs_mom /opt/xcat/share/xcat/netboot/add-on/torque/pbs_mom. To install the latest xcat, you may want to read the blog entry Dependency issues when installing xCAT 2.7 on CentOS 6
Assuming you have successful install xCAT, copy the pbs_mom script to /etc/init.d/pbs_mom
# cp /opt/xcat/share/xcat/netboot/add-on/torque/pbs_mom /etc/init.d/pbs_mom
Step 5a: Edit the /etc/init.d/pbs_mom and restart the service
# vim /etc/init.d/pbs_mom
Inside pbs_mom script
BASE_PBS_PREFIX=/opt/torque #ulimit -n 20000 #ulimit -i 20000 ulimit -l unlimited
Save and exit.
At the console, do a start
# service pbs_mom start Starting PBS Mom: [ OK ]
Step 5b: Installing Torque as a service (pbs_server)
# cp /opt/xcat/share/xcat/netboot/add-on/torque/pbs_server /etc/init.d/pbs_server
Inside the pbs_server script, just ensure that the BASE_PBS_PREFIX point to the right directory
BASE_PBS_PREFIX=/opt/torque
Save and Exit.
At the console, start the pbs_server service
# service pbs_server start Starting PBS Server: [ OK ]
Step 5c: Installing Torque as a service (pbs_sched)
# cp /opt/xcat/share/xcat/netboot/add-on/torque/pbs_sched /etc/init.d/pbs_sched
Inside the pbs_sched script, just ensure that the BASE_PBS_PREFIX point to the right directory
BASE_PBS_PREFIX=/opt/torque
Save and Exit.
At the console, start the pbs_sched service
# service pbs_sched start Starting PBS Scheduler: [ OK ]
B. Configuring the TORQUE Clients
Step 1a: Copy the torque package to the nodes using xCAT
# pscp torque-package-mom-linux-x86_64.sh compute:/tmp # pscp torque-package-clients-linux-x86_64 compute:/tmp
Step 1b: Run the scripts
# psh compute "/tmp/torque-package*.x86_64.sh --install"
Step 2a. Copy the /etc/init.d/pbs_mom to compute nodes
# pscp /etc/init.d/pbs_mom compute:/etc/init.d
# psh compute "/sbin/service pbs_mom start"
Further Information:
Resources: