Set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 8

RedHat Enterprise Linux 8 changes the way packages are delivered by splitting the main repository that was available on RedHat 7 systems to the below two (link with more information is attached at the bottom of the article)

  • BaseOS
  • AppStream

As a result when you locally mount a DVD to be used as a repository for packages one should create now two repositories instead of one.

Attach dvd to virtual server, mount directory and create repositories on /etc/yum.repos.d

Create repository files

Change permissions to repository files to 0644

AppStream

BaseOS

Validate that both repos are enabled

repositories enabled

Find below the procedure documented from RedHat for Linux 7

https://access.redhat.com/solutions/1355683

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index

Build a Highly Available cluster for Centos/Redhat with pacemaker

With the latest version of pcs package there are some changes regarding the implementation of a highly available cluster which is based on centos/redhat operating system. Currently the latest package available for pcs is the 0.10.4 as shown below on which cluster with pacemaker 2.x and corosync 3.x are supported.

pcs package version

Firstly authenticate the nodes of the cluster (changed from previous versions)

Create and enable cluster on both nodes

Check cluster status after the creation and the online nodes.

Enable cluster on all nodes

Reboot one node to verify cluster functionality and check active nodes. When a node of cluster goes down, cluster is still online because of the second node.

Create a cluster resource of type IPaddr2 in order to support an application/service.

Ping the IP to verify that it is online

Shutdown the node on which cluster resource IPaddr2 is running and verify that IP is still accessible. You can verify during the shutdown and the resource migration from one node to another that icmp package respond is a bit slower. (3ms instead of <1ms)

Verify that cluster resource cluster-ip is online on the second node.

Centos cluster IP resource in stopped state – pacemaker

When a two nodes pcs cluster is created without a stonith device the below error may appear when creating an IPaddr2 cluster resource. After the creation the resource cannot be brought online.

In order to resolve the issue stonith-enabled setting should be disabled. Afterwards the resource would become online as shown on the below screenshot.

Corosync Cluster Engine exiting with status 8 – Failed to start

The below error can occur when one tries to create a new HA cluster with pcs package. Corosync fails to start with the below description.

Corosync error

The error can be resolved by editing /etc/hosts file and by commenting the first two lines for localhost. At the end I appended a new line that maps localhost with a specific IPv4 IP but this could be unnecessary.

After that when one tries to create and enable the cluster the result would be successful.