After reading this section you will be able to:
This section assumes a working knowledge of Linux or Unix based operating systems, including use of commands such as:
Some operating systems use different commands (such as gmake and gtar instead of make and tar). |
Before installing Moab, view the Prerequisites to verify your platform is supported.
By default, the Moab home directory is configured as /opt/moab, the Moab server daemon is installed to /opt/moab/sbin/, and the client commands are installed to /opt/moab/bin/. $MOABHOMEDIR is the location of the etc/, log/, spool/, and stat/ directories and the moab.lic
file. The default location for moab.cfg and moab-private.cfg is /opt/moab/etc/ and is the recommended location for the license and configuration files.
$MOABHOMEDIR is required whenever the Moab binary is started or when client commands are used. Adaptive Computing recommends putting $MOABHOMEDIR in a global location, such as /etc/profile, /etc/bashrc, or /etc/environment.
If you need to export your Moab home directory, run the following: > export MOABHOMEDIR=/opt/moab |
Moab contains a number of architectural parameter settings that you can adjust for non-standard installations. See Appendix D - Adjusting Default Limits and make any needed changes prior to using make install. |
The following installation assumes that you have done a standard TORQUE installation according to the TORQUE 4.0 documentation, that you have prepared TORQUE for a Moab installation, and that you use a RedHat or CentOS operating system.
To install Moab
> tar -xzvf moab-7.0.0.tar.gz
> cd moab-7.0.0
> ./configure
In some cases, you might want to customize the location of the Moab home directory, the server daemon, the client commands, and configure Moab to use a resource manager when using the ./configure command. For a complete list of options, use ./configure --help.
An example of some commonly used options for ./configure is provided below. > ./configure --prefix=/usr/local --with-homedir=/var/moab --with-torque=/var/spool/torque/ In the above example:
|
All Moab executables are placed in $MOABHOMEDIR/bin or $MOABHOMEDIR/sbin
(such as /opt/moab/bin/).
Moab must be installed by root. If you cannot install Moab as root, please contact Customer Support. |
> sudo make install
A default moab.cfg file will be created in the Moab home /etc
directory.
init
script to start Moab automatically when the system boots. To do so, verify that you are in Moab's top-level directory, copy the moab
file from the contrib/init.d
directory to the etc/init.d
directory, and set the permissions.> cp contrib/init.d/moab /etc/init.d/
> chmod 755 /etc/init.d/moab
Add Moab to the services that start automatically at system boot.
> chkconfig --add moab
The chkconfig command is RedHat-specific. If you are using a different operating system, consult its documentation for a similar command. |
> echo '/opt/moab/lib' > /etc/ld.so.conf.d/moab.conf
> ldconfig
If you receive a warning message that says SQLite's shared library is not a symbolic link, you can safely ignore the message. |
moab.cfg
(opt/moab/etc
by default). To allow Moab to send jobs to TORQUE, it must contain the line RMCFG[mgmtnode] SUBMITCMD=/usr/local/bin/qsub
. If it doesn't, add it.################################################################################
#
# Moab Configuration File for moab-6.1.4
#
# Documentation can be found at
# www.adaptivecomputing.com/resources/docs/mwm/7-0/Content/topics/schedBasics/configure.html
#
# For a complete list of all parameters (including those below) please see:
# www.adaptivecomputing.com/resources/docs/mwm/7-0/Content/a.fparameters.html
#
# For more information on the initial configuration, please refer to:
# www.adaptivecomputing.com/resources/docs/mwm/7-0/Content/topics/installation/initialconfig.html
#
# Use 'mdiag -C' to validate config file parameters
#
################################################################################
SCHEDCFG[Moab] SERVER=hostname:42559
ADMINCFG[1] USERS=root
TOOLSDIR /opt/moab/tools
LOGLEVEL 3
################################################################################
#
# Resource Manager configuration
#
# For more information on configuring a Resource Manager, see:
# www.adaptivecomputing.com/resources/docs/mwm/7-0/Content/resourceManagers/rmconfiguration.html
#
################################################################################
RMCFG[hostname] TYPE=PBS
RMCFG[hostname] SUBMITCMD=/usr/local/bin/qsub
################################################################################
#
# Database configuration
#
# For more information on Moab's integrated database see:
# www.adaptivecomputing.com/resources/docs/mwm/7-0/Content/a.fparameters.html#usedatabase
#
################################################################################
USEDATABASE INTERNAL
################################################################################
#
# Statistical profiling
#
# Use the follwing parameters to enable statistical profiling, see 3.5.1.5:
# www.adaptivecomputing.com/resources/docs/mwm/7-0/credoverview.html
#
################################################################################
#USERCFG[DEFAULT] ENABLEPROFILING=TRUE
#CLASSCFG[DEFAULT] ENABLEPROFILING=TRUE
#QOSCFG[DEFAULT] ENABLEPROFILING=TRUE
#GROUPCFG[DEFAULT] ENABLEPROFILING=TRUE
#ACCOUNTCFG[DEFAULT] ENABLEPROFILING=TRUE
$PATH
manually to include the new default folders. One method of adding the Moab commands to the path for all users is shown in the following example:> echo 'export PATH=$PATH:/opt/moab/bin:/opt/moab/sbin' > /etc/profile.d/moab.sh
> source /etc/profile.d/moab.sh
> cp moab.lic $MOABHOMEDIR/etc/moab.lic
To verify the current status of your license, use moab --about.
Moab 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, Moab sends an e-mail to all level 1 administrators informing them of the pending Moab license expiration. A log record is also made of the upcoming expiration event. For the notifications to occur correctly, administrator e-mail notification must be enabled and moab.cfg must contain e-mail addresses for level 1 administrators:
ADMINCFG[1] USERS=u1,u2,u3[,...] USERCFG[u1] [email protected] USERCFG[u2] [email protected] USERCFG[u3] [email protected] MAILPROGRAM DEFAULT
Moab has an internal license that enables some functionality for a limited time for evaluation purposes. If you want to enable adaptive energy management, dynamic multi-OS provisioning, grid management, and other features, or if you want to evaluate Moab for a longer period, contact evaluation support. Use mdiag -S -v to see which features your license supports. |
service moab start
in RedHat, or /etc/init.d/moab start
in another operating system, to verify that Moab will restart on boot.> service moab start
Whenever you start Moab after installation, use moab
or moabd
.
> moab
> moabd is an alternate method of starting Moab that sets the MOABHOMEDIR and LD_LIBRARY_PATH environment variables before calling the Moab binary. It is safe and recommended if things are not installed in their default locations, but can be used in all cases. |
> showq
active jobs------------------------
JOBID USERNAME STATE PROCS REMAINING STARTTIME
0 active jobs 0 of 10 processors in use by local jobs (0.00%)
0 of 6 nodes in use by local jobs (0.00%)
eligible jobs----------------------
JOBID USERNAME STATE PROCS WCLIMIT QUEUETIME
0 eligible jobs
blocked jobs-----------------------
JOBID USERNAME STATE PROCS WCLIMIT QUEUETIME
0 blocked jobs
After installing the Moab server on the head node, Moab can create a "client commands-only" tarball you can use to install just the Moab client commands on a login/client node. The tarball allows you to install the binary Moab client command files, with their man pages, using a single tar command. In addition, the tarball contains a moab.cfg file configured with the Moab host name and port number so you do not have to manually configure this information on the login/client node.
After installing Moab on the head node, enter the following command:
> make client-pkg
A tarball is created with the name "client.tgz". Copy the tarball to the root directory of the client node, log in to the client node as root, and install the client commands using the following command:
> tar xvf client.tgz
The Moab client commands are now available on the login/client node.
Moab clients need to be built for each client system that has different architecture from the server. If you are using secret key security (enabled by default), a common secret key must be specified for the client and server. Verify moab-private.cfg is configured properly. For more information, see Configuring Peer-Specific Secret Keys.
Download the Moab build to the client node and then execute the following command to create the Moab client commands tarball for the architecture and operating system:
> ./configure --prefix=<install directory> --with-serverhost=<head node> --with-serverport=<port number>
If there is no moab.cfg file installed on the system when making the client commands tarball, the make command creates one using the ./configure arguments or other auto-generated defaults. If there is one already installed, it is packaged into the client commands tarball. |
Several steps must be taken before installing Moab with TORQUE to ensure that they will communicate properly.
To prepare TORQUE for a Moab Installation
> vim /var/spool/torque/server_priv/nodes
...
node04
node05
node06
...
pbs_server
to the etc/init.d/
directory. > cp contrib/init.d/pbs_server /etc/init.d
> chkconfig --add pbs_server
The chkconfig command is RedHat-specific. If you are using a different operating system, consult its documentation for a similar command. |
> ./torque.setup root
> qterm
> /etc/init.d/pbs_server start
You can verify that the installation was successful by running the following command:
> pbsnodes
TORQUE returns information about each node. If TORQUE is properly configured, each node should report state = free
to indicate that the server and moms are communicating.
Copyright © 2012 Adaptive Computing Enterprises, Inc.®