(Click to open topic with navigation)
This topic contains instructions on how to install and start TORQUE.
In this topic:
Supported Operating Systems
CentOS 5.9, RHEL 5.9 and Scientific Linux 5.9 are supported, largely to continue support for clusters where the compute nodes operating systems cannot be upgraded. We recommend that the TORQUE head node run on the supported operating systems listed above.
Software Requirements
libwloc 1.2 is required for TORQUE 5.1.x or 5.0.x; 1.1 is required for TORQUE 4.2.x.
If you intend to use TORQUE 5.1.1 with Moab Workload Manager, you must run Moab version 8.1.1 or 8.0.x. TORQUE 5.1.1 will not work with versions earlier than Moab 8.0.
If you build TORQUE from source (i.e. clone from github), the following additional software is required:
Version 1.36.0 or newer is supported. Red Hat 5 systems come packaged with an unsupported version. Red Hat 6 systems come packaged with 1.41.0 and Red Hat 7 systems packaged with 1.53.0. If needed, use the --with-boost-path=DIR option to change the packaged boost version. See
Open Necessary Ports
TORQUE requires certain ports to be open for essential communication:
For more information on how to configure the ports that TORQUE uses for communication, see
If you have a firewall enabled, do the following:
[root]# iptables-save > /tmp/iptables.mod
[root]# vi /tmp/iptables.mod
# Add the following lines immediately *before* the line matching
# "-A INPUT -j REJECT --reject-with icmp-host-prohibited"
# Needed on the TORQUE server for client and MOM communication
-A INPUT -p tcp --dport 15001 -j ACCEPT
# Needed on the TORQUE MOM for server and MOM communication
-A INPUT -p tcp --dport 15002 -j ACCEPT
-A INPUT -p tcp --dport 15003 -j ACCEPT
[root]# iptables-restore < /tmp/iptables.mod
[root]# service iptables save
[root]# firewall-cmd --add-port=15001/tcp --permanent
[root]# firewall-cmd --add-port=15002/tcp --permanent
[root]# firewall-cmd --add-port=15003/tcp --permanent
[root]# firewall-cmd --reload
[root]# vi /etc/sysconfig/SuSEfirewall2
# Add the following ports to the FW_SERVICES_EXT_TCP parameter as required
# Needed on the TORQUE server for client and MOM communication
FW_SERVICES_EXT_TCP="15001"
# Needed on the TORQUE MOM for server and MOM communication
FW_SERVICES_EXT_TCP="15002 15003"
[root]# service SuSEfirewall2_setup restart
Verify the hostname
Make sure your host (with the correct IP address) is in your /etc/hosts file. To verify that the hostname resolves correctly, make sure that hostname and hostname -f report the correct name for the host.
2.3.3 Install Dependencies and Packages
[root]# yum install libtool openssl-devel libxml2-devel boost-devel gcc gcc-c++
[root]# zypper install libopenssl-devel libtool libxml2-devel boost-devel gcc gcc-c++ make gmake
[root]# yum install openssl-devel libtool-devel libxml2-devel gcc gcc-c++ wget
Use these instructions for installing libtool:
[root]# cd /tmp [root]# wget http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz [root]# tar -xzvf libtool-2.4.2.tar.gz [root]# cd libtool-2.4.2 [root]# ./configure --prefix=/usr [root]# make [root]# make install
TORQUE requires Boost version 1.36.0 or greater. The boost-devel package provided with Red Hat 5-based systems is older than this requirement. A new option, --with-boost-path has been added to configure (see
Do the following:
[user]$ su -
If git is not installed:
# Red Hat-based systems [root]# yum install git # SUSE-based systems [root]# zypper install git
[root]# git clone https://github.com/adaptivecomputing/torque.git -b 5.1.1 5.1.1 [root]# cd 5.1.1 [root]# ./autogen.sh
Red Hat-based systems
[root]# yum install wget
[root]# wget http://www.adaptivecomputing.com/download/torque/torque-5.1.1.tar.gz -O torque-5.1.1.tar.gz
[root]# tar -xzvf torque-5.1.1.tar.gz
[root]# cd torque-5.1.1/
[root]# zypper install wget
[root]# wget http://www.adaptivecomputing.com/download/torque/torque-5.1.1.tar.gz -O torque-5.1.1.tar.gz
[root]# tar -xzvf torque-5.1.1.tar.gz
[root]# cd torque-5.1.1/
[root]# ./configure [root]# make [root]# make install
For information on what options are available to customize the ./configure command, see
[root]# cp contrib/init.d/trqauthd /etc/init.d/
[root]# chkconfig --add trqauthd
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# service trqauthd start
[root]# cp contrib/init.d/suse.trqauthd /etc/init.d/trqauthd
[root]# chkconfig --add trqauthd
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# service trqauthd start
[root]# cp contrib/systemd/trqauthd.service /usr/lib/systemd/system/
[root]# systemctl enable trqauthd.service
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# systemctl start trqauthd.service
[root]# echo <pbs_server's_hostname> > /var/spool/torque/server_name
[root]# export PATH=/usr/local/bin/:/usr/local/sbin/:$PATH
[root]# ./torque.setup root
The make packages command can be used to create self-extracting packages that can be copied and executed on your nodes. For information on creating packages and deploying them, see
[root]# cp contrib/init.d/pbs_server /etc/init.d [root]# chkconfig --add pbs_server [root]# service pbs_server restart
[root]# cp contrib/init.d/suse.pbs_server /etc/init.d/pbs_server [root]# chkconfig --add pbs_server [root]# service pbs_server restart
[root]# qterm
[root]# cp contrib/systemd/pbs_server.service /usr/lib/systemd/system/
[root]# systemctl enable pbs_server.service
[root]# systemctl start pbs_server.service
There are several methods to get the following inti.d scripts on to each node. The following instructions assume the entire contents of contrib/init.d in the TORQUE git repository or source tarball are copied(scp)/cloned to the compute node.
These options can be added to the self-extracting packages.
On the TORQUE MOM, do the following:
[root]# cp contrib/init.d/pbs_mom /etc/init.d
[root]# chkconfig --add pbs_mom
[root]# service pbs_mom start
[root]# cp contrib/init.d/suse.pbs_mom /etc/init.d/pbs_mom
[root]# chkconfig --add pbs_mom
[root]# service pbs_mom start
[root]# cp contrib/systemd/pbs_mom.service /usr/lib/systemd/system/
[root]# systemctl enable pbs_mom.service
[root]# systemctl start pbs_mom.service