Installation > Installing Moab Workload Manager

Installing Moab Workload Manager

These instructions describe how to install and start Moab Workload Manager (MWM).

To build a custom RPM

  1. Install rpm-build.
  2. [root]# yum install rpm-build
  3. Download the latest MWM build (moab-<version>-<OS>-linux-x86_64-<type>.tar.gz) from the Adaptive Computing website.

    The variable marked <version> is the desired version of the suite; for example, 7.5.0. The variable marked <OS> indicates whether you are using a RHEL/CentOS 5 operating system (EL5), a RHEL/CentOS 6 operating system (EL6), or a SUSE 11 operating system (SUSE11). The variable marked <type> is one of libtorque (TORQUE), generic (generic), libtorque-libodbc (TORQUE ODBC), or generic-libodbc (generic ODBC).

  4. Untar the downloaded package.
  5. Change directories into the untarred directory.
  6. Edit the ./moab.spec file for RPM customization.
  7. Run ./rpm-build.
  8. Locate the custom RPM in rpm/RPMS/x86_64.

To install Moab Workload Manager

If you have not met the hardware and host operating system software requirements listed above, you will likely encounter errors when trying to install Moab Workload Manager.

  1. Download the latest MWM build (moab-<version>-<OS>-linux-x86_64-<type>.tar.gz) from the Adaptive Computing website.
  2. The variable marked <version> is the desired version of the suite; for example, 7.5.0. The variable marked <OS> indicates whether you are using a RHEL/CentOS 5 operating system (EL5), a RHEL/CentOS 6 operating system (EL6), or a SUSE 11 operating system (SUSE11). The variable marked <type> is one of libtorque (TORQUE), generic (generic), libtorque-libodbc (TORQUE ODBC), or generic-libodbc (generic ODBC).

  3. As the root user, run each of the following commands in order.
  4. [root]# tar xzvf moab-7.5.0-xxxx.tar.gz (where xxxx can be one of: generic, generic-odbc, torque, torque-odbc)
    [root]# cd moab-7.5.0
  5. Configure Moab. The ./configure command allows you to specify some options. In some cases, you might want to customize the location of the MWM home directory, the server daemon, and the client commands. You can make these configurations by using the ./configure options (For a complete list of ./configure options, use ./configure --help or refer to Moab Workload Manager configuration options for a list of commonly used options.

    It is strongly recommended that you configure Moab with the --with-init, --with-profile, and --with-flexlm options. If you are using TORQUE as your resource manager, use the --with-torque option. If you are installing Moab Accounting Manager, configure Moab with the --with-am option.

    [root]# ./configure <options>
  6. (Only if you are using green computing, or if you are using a resource manager other than TORQUE) Run the make perldeps command to install the necessary perl modules using CPAN. When first running CPAN, you will be asked for configuration information. It is recommended that you choose an automatic configuration. You will be prompted to provide input during module installation; running the make perldeps command with a script is not recommended.
  7. [root]# make perldeps
  8. Install Moab.
  9. [root]# make install
  10. Modify the MWM configuration file.
  11. [root]# nano /opt/moab/etc/moab.cfg

    Do the following:

    1. Verify that SUBMITCMD is set up for your TORQUE resource manager (Change RMCFG[hostname] to RMCFG[torque]) and that it points to a valid qsub executable. For example:
    2. RMCFG[torque] SUBMITCMD=/usr/local/bin/qsub

      If you use a SLURM resource manager, see Moab-SLURM Integration Guide for configuration information. If you use a NATIVE resource manager, see Managing Resources Directly with the Native Interface for configuration information.

    3. ONLY if you are using Moab Web Services or Moab Viewpoint, add tomcat to the list of administrator USERS. For example:
    4. ADMINCFG[1] USERS=root,tomcat

      Also, make sure that you set ENABLEPROXY to TRUE:

      ADMINCFG[1] ENABLEPROXY=TRUE

      Without this configuration, all jobs submitted in Viewpoint will be submitted as "root," regardless of the user who actually submitted the job.

  12. If you ran the ./configure --with-profile option, source the following file to add the MWM executable directories to your current shell $PATH environment.
  13. [root]# . /etc/profile.d/moab.sh
  14. Copy your license file into the same directory as moab.cfg (/opt/moab/etc/ by default). For example:
  15. [root]# cp moab.lic $MOABHOMEDIR/etc/moab.lic

    To verify the current status of your license, use moab --about.

    MWM checks the status of the license every day just after midnight. At 60 and 45 days before, and daily from 30 days before license expiration to and including the license expiration date, MWM sends an e-mail to all level 1 administrators informing them of the pending MWM license expiration. A log record is also made of the upcoming expiration event. For the notifications to occur correctly, you must enable administrator email notification (see "Notifying Administrators of Failures" in the Moab Workload Manager Administrator Guide) and moab.cfg must contain email addresses for level 1 administrators. For example:

    ADMINCFG[1] USERS=u1,u2,u3[,...]
    
    USERCFG[u1] [email protected]
    USERCFG[u2] [email protected]
    USERCFG[u3] [email protected]
    
    MAILPROGRAM DEFAULT

    Moab will not run without a license. For information about obtaining a trial license, please contact Adaptive Computing.

  16. Start MWM.
  17. [root]# service moab start

    If Moab fails to start because libodbc.so.1 cannot be found, you must create a symbolic link from libodbc.so.1 to libodbc.2.

    [root]# ln -s /usr/lib64/libodbc.so.2 /usr/lib64/libodbc.so.1

    For more information, see the Unix ODBC documentation.

  18. Submit a sleep job as a non-root user and verify the job is running.
  19. [root]# su - user
    [user]$ echo sleep 150 | msub
    [user]$ showq
    [user]$ exit

Related topics