Uninstalling

This topic describes how to uninstall PowerVC from your management server.

About this task

To uninstall PowerVC, you must uninstall PowerVC operations manager.

Uninstalling PowerVC does not remove or change anything in the environment that you created while you were using PowerVC. Any Red Hat® Enterprise Linux® prerequisite packages that are installed during the PowerVC installation remain.

Procedure

Run the following command to uninstall PowerVC operations manager.
powervc-opsmgr uninstall -c <cluster_name>
-h
The optional -h parameter displays this help message and exits.
-c
The mandatory-c parameter displays the cluster details. You can specify the cluster name to uninstall.
-f
The optional -f parameter forcefully removes PowerVC OpsMgr. It runs the uninstall even if the initial PowerVC OpsMgr install check fails.
-v
The optional -v parameter is the standard verbose argument. Use this option to specify verbosity while uninstalling PowerVC multinode.
A log file can be found in the following location: /var/log/powervc-uninstall.log.

Results

After uninstalling PowerVC, OpsMgr remains on the node on which uninstallation was triggered. To remove OpsMgr, navigate to powervc-opsmgr/ directory where the powervc-opsmgr-<OS-architecture-release>.tgz file was extracted. Run uninstall-opsmgr.sh script.

For PowerVC management server running on SLES, remove the following packages manually after uninstall.
apache2 
memcached 
python3-oslo-context 
python3-prettytable
Notes:
  • Make sure to take a backup of the certificates before uninstalling PowerVC because the uninstallation process deletes the certificates.
  • After uninstalling PowerVC, you must restart the system.
  • If uninstall fails due to timeout issue, reboot the system and retry.
  • To use the same set of virtual machines when you uninstall one version of the PowerVC and reinstall the same or higher version of PowerVC, run the following commands:
    1. rpm -e --nodeps ansible-core
    2. rpm -e --nodeps python3-jinja2
    3. yum clean all
    4. yum install python3-jinja2

Uninstall a failed node

In a case when a failed node in a cluster is replaced by another node and the original node is up after sometime, you must not run the powervc-opsmgr uninstall command to uninstall the original node. Instead, use the following command on the failed node to uninstall the same.
./opt/ibm/powervc-opsmgr/scripts/powervc-failed-node-uninstall