Adding missing RPMs to Sentinel 8.2 CAF HA Appliance

  • 7023543
  • 28-Nov-2018
  • 28-Nov-2018

Environment

Sentinel 8.2 CAF HA Appliance Sentinel Server

Situation

Missing RPMs after running the post-migration utility 

Resolution

Create file and script that will be needed for the subsequent steps below. 

1. missingrpms.txt   -- list of rpms that are to be installed

add the following text and save the file.

cluster-md-kmp-default
dlm-kmp-default
fence-agents
hawk-templates
ipvsadm
ldirectord
libdlm-
libdlm3
libexpat1-32bit
lighttpd
ocfs2-kmp-default
patterns-ha-ha_sles
pssh
python-pexpect
python-pssh
python-requests
python-setuptools
python-suds
release-notes-ha
sbd
sle-ha-release
sle-ha-release-POOL
spawn-fcgi
sqlite2
yast2-cluster
yast2-drbd
yast2-iplb
 

2. getmissingrpms.sh   -- script for installing the rpms mentioned in missingrpms.txt file

Add the following text to the script and save

#!/bin/bash

zypper ar -c -t yast2 "iso:/?iso=/tmp/SLE-12-SP3-HA-DVD-x86_64-GM-CD1.iso" "Sentinel HA Missing RPMS"
zypper ar -c -t yast2 "iso:/?iso=/tmp/SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso" "Sentinel CAF Missing RPMS"

for eachfile in $(cat missingrpms.txt)
do
  echo $eachfile
  rpm -qa | grep $eachfile
  if [ $? -ne 0 ]
  then
        echo $eachfile is not installed and hence installing
        zypper in $eachfile
  fi
done
zypper rr "Sentinel HA Missing RPMS"
zypper rr "Sentinel CAF Missing RPMS"



Do the following steps on all the HA nodes one by one:



1. Login as 'root' user 


2. Download SLE-12-SP3-HA-DVD-x86_64-GM-CD1.iso and SLE-12-SP3-Server-DVD-x86_64-GM-DVD1.iso to /tmp folder.


3. Put the maintenance mode on HA nodes to true by using:

# crm configure property maintenance-mode=true


4. Using the script and text file previously created run the script getmissingrpms.sh as root user by using the command:

   
#  ./getmissingrpms.sh | tee  postmig_sentinel_82_ha_app_rpm_recovery.log 


5. Reboot the machine to reflect the changes.

6. Repeat steps 1 through 5 on the other nodes. 

7. After running the above for all HA nodes, put the maintenance mode on HA nodes to false using the following command:

# crm configure property maintenance-mode=false