6.29 Creating the moab-offline Tarball

The Moab Offline Tarball is only created if you are using the RPM Installation – Offline Method. See 6.28.1 RPM Installation and Upgrade Methods for more information.

This topic contains instructions on how to create a moab-offline tarball on a web-enabled host outside of your Moab HPC Suite environment. This is the tarball that is then copied (using either by scp, DVD, USB or similar) to each host within your Moab HPC Suite environment.

The internet-enabled host must have the exact same OS as the hosts within your Moab HPC Suite environment. As the Moab HPC Suite can have several hosts, and each host may not use the same OS, you may need to repeat this procedure for each OS used.

These instructions assume the user is non-root, but has sudo rights.

On a web-enabled host, do the following:

  1. If the host uses a proxy to connect to the Internet, do the following:

    export http_proxy=http://<proxy_server_id>:<port>
    export https_proxy=http://<proxy_server_id>:<port>
  2. Download the 9.0.3 Moab HPC Suite RPM bundle from the Adaptive Computing Moab HPC Suite Download Center.
  3. Untar the RPM bundle.
    tar zxf <RPM bundle>
  4. Change directories into the untarred directory.

    Consider reviewing the README file for additional details on using the RPM distribution tarball.

  5. Install the suite repositories.
    sudo ./install-rpm-repos.sh -y

    If the installation returns the following warning line:

    Warning: RPMDB altered outside of yum.

    This is normal and can safely be ignored.

    The script installs the createrepo package and its dependencies. You must answer "y" to all the questions in order for the RPM install of the suite to work.

    Additionally, the script installs the EPEL and 10gen repositories.

    Additionally, the script installs the openSUSE Apache:Modules, devel:languages:python, devel:languages:perl, and server:database repositories.

  6. Confirm you own /opt.

    sudo chown <user>:<user> /opt
  7. Create the moab-offline directory in which to store the RPMs.

    mkdir /opt/moab-offline
  8. Download the Moab HPC Suite RPMs into the moab-offline directory.

    Do the following:

    1. Symlink all the Moab HPC Suite RPMs to your moab-offline directory. This enables the repotrack utility to copy them.

      ln -s /opt/adaptive-rpm-repository/rpm/*.rpm /opt/moab-offline/
    2. Use repotrack to download all dependency RPMs.

      repotrack -a x86_64 -p /opt/moab-offline moab-hpc-suite

    Do the following:

    1. Configure zypper to have access to the SLES 12 (service pack 1) DVD1 and SDK1 ISO repositories.

      zypper addrepo --refresh iso:/?iso=/srv/iso/SLE-12-SP1-SDK-DVD-x86_64-GM-DVD1.iso sles12sp1_sdk1
      zypper addrepo --refresh iso:/?iso=/srv/iso/SLE-12-SP1-Server-DVD-x86_64-GM-DVD1.iso sles12sp1_dvd1
    2. Use zypper to download all packagers and dependencies with the ‑‑download‑only option. The files will be downloaded into /var/cache/zypp/packages.

      sudo zypper install --download-only moab-hpc-suite
    3. Copy the downloaded RPMs into the moab-offline directory.

      find /var/cache/zypp/packages/ -type f|xargs -I '{}' cp '{}' /opt/moab-offline/
  9. Download the Java RPM into the moab-offline directory.

    The Java version may vary depending on the Moab HPC Suite components in your configuration. See 6.25 Component Requirements for more information.

    cd /opt/moab-offline
    wget <java_url>
  10. Create a repository file for the moab-offline directory.

    The createrepo package and its dependencies should have been installed when you ran ./install-rpm-repos.sh -y.

    echo "[moab-offline]
    name=moab-offline
    baseurl=file:///opt/moab-offline
    failovermethod=priority
    enabled=1
    gpgcheck=0" > moab-offline.repo
  11. Create the moab-offline tarball. The "h" option ensures the symlinked targets will be copied, instead of just the links.

    tar hczvf moab-offline.tgz moab-offline

This tarball can now be copied (using scp, DVD, USB drive, or similar) to each host within your Moab HPC Suite environment.

© 2017 Adaptive Computing