Installing TORQUE

These instructions describe how to install and start TORQUE.

To install TORQUE

  1. Switch the user to root.
  2. [user]$ su -
  3. Download the latest 5.0.3 build from the Adaptive Computing website. It can also be downloaded via command line (github method or the tarball distribution).
    • Clone the source from github:

      If you clone the source from github, the libtool package must be installed.

      # RHEL 6 and Scientific Linux 6:								
      [root]# yum install git libtool
      								
      # SLES:
      [root]# zypper install libtool
      
      [root]# git clone https://github.com/adaptivecomputing/torque.git -b 5.0.3 5.0.3
      [root]# cd 5.0.3
      [root]# ./autogen.sh

      If you are using CentOS 5, 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
      [root]# cd /tmp
      [root]# git clone https://github.com/adaptivecomputing/torque.git -b 5.0.3 5.0.3
      [root]# cd 5.0.3
      [root]# ./autogen.sh
    • Get the tarball source distribution:
      [root]# wget http://www.adaptivecomputing.com/download/torque/torque-5.0.3.tar.gz -O torque-5.0.3.tar.gz
      
      [root]# tar -xzvf torque-5.0.3.tar.gz 
      [root]# cd torque-5.0.3/
  4. Run each of the following commands in order.
  5. [root]# ./configure
    [root]# make
    [root]# make install

    For information on what options are available to customize the ./configure command, see Customizing the Install.

  6. Configure the trqauthd daemon to start automatically at system boot.
  7. * If RHEL distribution, do the following *
    [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
     
    * If SLES distribution, do the following *
    [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
    
  8. 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 Compute Nodes.
  9. You will also want to scp the init.d scripts to the compute nodes and install them there.

  10. Verify that the /var/spool/torque/server_name file exists and contains the correct name of the server.
  11. [root]# echo <pbs_server's_hostname> > /var/spool/torque/server_name
  12. By default, TORQUE installs all binary files to /usr/local/bin and /usr/local/sbin. Make sure the path environment variable includes these directories for both the installation user and the root user.
  13. [root]# export PATH=/usr/local/bin/:/usr/local/sbin/:$PATH
  14. Initialize serverdb by executing the torque.setup script.
  15. [root]# ./torque.setup root
  16. Add nodes to the /var/spool/torque/server_priv/nodes file. For information on syntax and options for specifying compute nodes, see Specifying Compute Nodes.
  17. Configure the MOMs if necessary (see Configuring TORQUE on Compute Nodes in the TORQUE Administrator Guide).
  18. Configure pbs_server and pbs_mom to start automatically at system boot, and then start their daemons.
  19. * If RHEL distribution, do the following *
    [root]# cp contrib/init.d/pbs_server contrib/init.d/pbs_mom /etc/init.d
    [root]# chkconfig --add pbs_server
    [root]# chkconfig --add pbs_mom
    [root]# service pbs_server restart
    [root]# service pbs_mom start
     
    * If SLES distribution, do the following *
    [root]# cp contrib/init.d/suse.pbs_server /etc/init.d/pbs_server
    [root]# cp contrib/init.d/suse.pbs_mom /etc/init.d/pbs_mom
    [root]# chkconfig --add pbs_server
    [root]# chkconfig --add pbs_mom
    [root]# service pbs_server restart
    [root]# service pbs_mom start

© 2015 Adaptive Computing