You are here: RPM Installation > Upgrading > Upgrading Torque Resource Manager (RPM)

3.25 Upgrading Torque Resource Manager (RPM)

This topic provides instructions to upgrade Torque Resource Manager to the latest release version using the RPM upgrade method. It includes instructions for migrating your database schema to a new version if necessary.

Because many system-level files and directories are accessed during the installation, the instructions in this guide should be executed with root privileges.

You will see that the instructions execute commands as the root user. Please note that the same commands will work for a non-root user with the sudo command.

3.25.1 Upgrade Steps

Do the following:

  1. If you installed Torque Server on its own host or if Torque Server is the first component being upgraded on a host with other RPM installations, complete the steps to prepare the host.

    Do the same as needed for each Torque MOM Host (compute node).

    See 3.20 Preparing for RPM Upgrades for more information.

  2. Stop all Torque Server, Torque MOM, and Torque Client Services. See 3.25.2 Stop Torque Services.
  3. Upgrade Torque Server, Torque MOMs, and Torque Clients. See 3.25.2.A Upgrade Torque Server, MOMs, and Clients.
  4. Start all Torque Server, Torque MOM, and Torque Client Services. See 3.25.3 Start Torque Services.

3.25.2 Stop Torque Services

Do the following:

  1. On the Torque Server Host, shut down the Torque server.
    [root]# service pbs_server stop
  2. On each host where the Torque MOM Host resides (regardless of whether it resides on the Torque Server Host), shut down the Torque MOM service.

    Confirm all jobs have completed before stopping pbs_mom. You can do this by typing "momctl -d3". If there are no jobs running, you will see the message "NOTE: no local jobs detected" towards the bottom of the output. If jobs are still running and the MOM is shutdown, you will only be able to track when the job completes and you will not be able to get completion codes or statistics.

    [root]# service pbs_mom stop
  3. On each host where the Torque Client Host resides (regardless of whether it resides on the Moab Server Host, the Torque Server Host, the Torque MOM Hosts), shut down the trqauthd service.
    [root]# service trqauthd stop

3.25.2.A Upgrade Torque Server, MOMs, and Clients

You must complete all the previous upgrade steps in this topic before upgrading Torque Server, MOMs, and Clients. See the list of steps at the beginning of this topic.

Do the following:

  1. Upgrade Torque Server.

    On the Torque Server Host, install the upgrade.

    [root]# yum update hwloc* moab-torque*
  2. Upgrade Torque MOMs.

    Repeat these instructions for each Torque MOM Host that does not reside on the Torque Server Host.

    Do the following:

    1. On the Torque Server Host, locate the directory where the rpm distro tarball was upacked and copy the hwloc, moab-torque-common and moab-torque-mom RPM files to the Torque MOM Hosts.

      [root]# scp <dir>/RPMs/hwloc*.rpm <torque-mom-host>:
      [root]# scp <dir>/RPMs/moab-torque-common-*.rpm <torque-mom-host>:
      [root]# scp <dir>/RPMs/moab-torque-mom-*.rpm <torque-mom-host>:
      [root]# scp <dir>/RPMs/moab-torque-client-*.rpm <torque-mom-host>:
    2. On each Torque MOM Host, use the uploaded RPMs to update the host.
      [root]# yum update hwloc* moab-torque-*
    3. On each Torque MOM Host, confirm that cgroups have been mounted; if not, mount them.
      1. Run lssubsys -am.
      2. If the command is not found, or you do not see something similar to the following, then cgroups are not mounted, continue with these instructions.

        ns
        perf_event
        net_prio
        cpuset /cgroup/cpuset
        cpu /cgroup/cpu
        cpuacct /cgroup/cpuacct
        memory /cgroup/memory
        devices /cgroup/devices
        freezer /cgroup/freezer
        net_cls /cgroup/net_cls
        blkio /cgroup/blkio
      3. Install the cgroup library package and mount cgroups.
        [root]# yum install libcgroup
        [root]# service cgconfig start
      4. Run lssubsys -am again and confirm cgroups are mounted.
  3. Upgrade Torque Clients.

    Repeat these instructions for any Torque Client Host that does not reside on the Torque Server Host or the Torque MOM Hosts (such as login nodes or when the Moab Server Host is different from the Torque Server Host).

    1. On the Torque Server Host, locate the directory where the rpm distro tarball was upacked and copy the hwloc, moab-torque-common and moab-torque-mom RPM files to the Torque MOM Hosts.

      [root]# scp <dir>/RPMs/hwloc*.rpm <torque-mom-host>:
      [root]# scp <dir>/RPMs/moab-torque-common-*.rpm <torque-mom-host>:
      [root]# scp <dir>/RPMs/moab-torque-mom-*.rpm <torque-mom-host>:
      [root]# scp <dir>/RPMs/moab-torque-client-*.rpm <torque-mom-host>:
    2. On the Torque MOM Host, use the uploaded RPMs to update the host.
      [root]# yum update hwloc* moab-torque-*

3.25.3 Start Torque Services

Do the following:

  1. On the Torque Server Host, start up the Torque server.
    [root]# service pbs_server start
  2. On each Torque MOM Host, start up the Torque MOM service.
    [root]# service pbs_mom start
  3. On each Torque Client Host (including the Moab Server Host, Torque Server Host and Torque MOM Hosts, if applicable), start up the trqauthd service.
    [root]# service trqauthd start

© 2016 Adaptive Computing