Local OS repository

You must create the operating system repository because some of the IBM Storage Scale files, such as rpms have dependencies on all nodes.

  1. Create the repository path:
    mkdir /var/www/html/repos/<rhel_OSlevel>
  2. Synchronize the local directory with the current yum repository:
    cd /var/www/html/repos/<rhel_OSlevel>
    Note: Before going to the next step, ensure that you have registered your system. For instructions to register a system, refer to Get Started with Red Hat® Subscription Manager. Once the server is subscribed, run the following command: subscription-manager repos --enable=<repo_id>
  3. Run the following command:
    reposync --gpgcheck -l --repoid=rhel-7-server-rpms --download_path=/var/www/html/repos/<rhel_OSlevel>
  4. Create a repository for this node:
    createrepo -v /var/www/html/repos/<rhel_OSlevel>
  5. Ensure that all the firewalls are disabled or that you have the httpd service port open, because yum uses http to get the packages from the repository.
  6. On all nodes in the cluster that require the repositories, create a file in /etc/yum.repos.d called local_<rhel_OSlevel>.repo.
  7. Copy this file to all nodes. The contents of this file must look like the following:
    [local_rhel_version]
    name=local_rhel_version
    enabled=1
    baseurl=http://<internal IP that all nodes can reach>/repos/<rhel_OSlevel>
    gpgcheck=0
  8. Run the yum repolist and yum install rpms without external connections.