Downloading and staging cluster software

To perform this procedure, you need:
  • An RHEL/CentOS system with internet access and the same operating system release and kernel as the master host nodes.
  • A secure network copy program.
Use this procedure to download packages for Distributed Replicated Block Device (DRBD) and Pacemaker/Corosync, and to bundle them for installation on master host nodes.
  1. Log in to a compatible host that is connected to the internet as root, or as a user with superuser privileges.
    The host must have the same operating system (RHEL or CentOS) and release installed, and the same version of the Linux kernel, as the master host nodes.
  2. Install yum utilities, if necessary.
    1. Determine whether the yum utilities package is installed.
      rpm -qa | grep yum-utils
      • If the command returns a result, the package is installed. Proceed to the next step.
      • If the command does not return a result, the package is not installed. Perform the following substep.
    2. Install the yum-utils package.
      yum install -y yum-utils
  3. Add the Enterprise Linux packages repository (ELRepo), if necessary.
    1. Determine whether the ELRepo repository is available.
      yum repolist | grep elrepo
      • If the command returns a result, the repository is available. Proceed to the next step.
      • If the command does not return a result, the repository is not available. Perform the following substeps.
    2. Import the public key for the repository.
      rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
    3. Add the repository to the download host.
      rpm -Uvh \
        http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
    4. Clean and update the yum caches.
      yum clean all && yum makecache fast
  4. Download the required packages and their dependencies, and then create a tar archive of the package files.
    1. Create a temporary directory for the packages.
      mkdir /tmp/downloads
    2. Download the DRBD packages to the temporary directory.
      repotrack -a x86_64 -r elrepo -p /tmp/downloads kmod-drbd84
    3. Download the Corosync/Pacemaker packages to the temporary directory.
      repotrack -a x86_64 -p /tmp/downloads pcs
    4. Create a tar archive of the temporary directory.
      cd /tmp && tar czf ./downloads.tgz ./downloads
  5. Use a secure copy program to copy the packages archive to the /tmp directory of each master host node.