This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:powervc_install [2021/09/23 12:17] manu |
aix:powervc_install [2024/03/13 22:03] (current) manu [Install PowerVC] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Install PowerVC ===== | ===== Install PowerVC ===== | ||
+ | |||
+ | Yum repository for PowerVC install through RHN and make sure that the following repos are enabled. | ||
+ | AppStream | ||
+ | BaseOS | ||
+ | Supplementary | ||
+ | High Availability (HA repo is not available with standard RHEL subscription. For subscription details, see Red Hat® Enterprise Linux® High Availability Add-On ). | ||
+ | Codeready Builder (CRB) (for RHEL 9.x only) with these RPMs, libknet1 and mysql-libs. | ||
+ | |||
+ | |||
I installed PowerVC x86 on VMware | I installed PowerVC x86 on VMware | ||
Line 35: | Line 44: | ||
</cli> | </cli> | ||
- | ==== Install PowerVC ==== | + | ==== Install / Deploy the deployment package ==== |
+ | |||
+ | :-P | ||
Required repositories | Required repositories | ||
Line 41: | Line 52: | ||
* BaseOS | * BaseOS | ||
* ansible-automation-platform-setup-bundle (downloaded from Redhat) | * ansible-automation-platform-setup-bundle (downloaded from Redhat) | ||
+ | * Redhat HA | ||
Extract the package powervc-install-x86-rhel-2.0.0.0.tgz | Extract the package powervc-install-x86-rhel-2.0.0.0.tgz | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 software]# cd powervc-opsmgr | ||
+ | [root@ibmpvc01 powervc-opsmgr]# ./setup_opsmgr.sh | ||
+ | ################################################################################ | ||
+ | Starting the PowerVC:setup_prepnode 2.0.2 installation on: | ||
+ | 2021-09-23T12:23:39+02:00 | ||
+ | ################################################################################ | ||
+ | International Program License Agreement | ||
+ | |||
+ | Part 1 - General Terms | ||
+ | |||
+ | BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, CLICKING ON | ||
+ | AN "ACCEPT" BUTTON, OR OTHERWISE USING THE PROGRAM, | ||
+ | LICENSEE AGREES TO THE TERMS OF THIS AGREEMENT. IF YOU ARE | ||
+ | ACCEPTING THESE TERMS ON BEHALF OF LICENSEE, YOU REPRESENT | ||
+ | AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND LICENSEE | ||
+ | TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS, | ||
+ | |||
+ | * DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, CLICK ON AN | ||
+ | "ACCEPT" BUTTON, OR USE THE PROGRAM; AND | ||
+ | |||
+ | * PROMPTLY RETURN THE UNUSED MEDIA, DOCUMENTATION, AND | ||
+ | |||
+ | Press Enter to continue viewing the license agreement, or | ||
+ | enter "1" to accept the agreement, "2" to decline it, "3" | ||
+ | to print it, "4" to read non-IBM terms, or "99" to go back | ||
+ | to the previous screen. | ||
+ | 1 | ||
+ | 2021-09-23T12:23:43.92+02:00 [INFO]:[] License accepted. | ||
+ | Configuring Yum repository... | ||
+ | 2021-09-23T12:24:25.67+02:00 [INFO]:[VALIDATION] BASE DIRECTORY : /opt/ibm/powervc-opsmgr | ||
+ | 2021-09-23T12:24:25.72+02:00 [INFO]:[VALIDATION] INSTALL SCRIPT : /software/powervc-opsmgr/setup_opsmgr.sh | ||
+ | 2021-09-23T12:24:25.73+02:00 [INFO]:[VALIDATION] LOG FILE : /opt/ibm/powervc-opsmgr/log/prep_node/prep_node_2021-09-23-1223.log | ||
+ | 2021-09-23T12:24:26.09+02:00 [INFO]:[VALIDATION] OPERATING SYSTEM: Red Hat Enterprise Linux. | ||
+ | 2021-09-23T12:24:26.09+02:00 [INFO]:[VALIDATION] RHEL_VERSION : 84 | ||
+ | 2021-09-23T12:24:26.10+02:00 [INFO]:[VALIDATION] User ID : root | ||
+ | 2021-09-23T12:24:33.36+02:00 [INFO]:[INSTALL_ANSIBLE] Ansible available for installation is 2.9 | ||
+ | 2021-09-23T12:24:33.36+02:00 [INFO]:[INSTALL_ANSIBLE] Ansible version 2.9 is not in repo, finding in additional repo of RHEL8 | ||
+ | 2021-09-23T12:24:34.58+02:00 [INFO]:[INSTALL_ANSIBLE] Ansible 2.9 installation started ..... | ||
+ | 2021-09-23T12:24:43.48+02:00 [INFO]:[INSTALL_ANSIBLE] Ansible packages installed successfully. | ||
+ | 2021-09-23T12:24:45.05+02:00 [INFO]:[INSTALL_ANSIBLE] Ansible 2.9 installation completed ..... | ||
+ | 2021-09-23T12:24:45.05+02:00 [INFO]:[INSTALL_ANSIBLE] Installing PowerVC Ops. Manager... | ||
+ | 2021-09-23T12:24:45.06+02:00 [INFO]:[INSTALL_POWERVC_OPSMGR] POWERVC OPSMGR PACKAGES : sshpass python3-netaddr rsync python3-oslo-i18n python3-powervc-opsmgr | ||
+ | 2021-09-23T12:24:49.08+02:00 [INFO]:[INSTALL_POWERVC_OPSMGR] PowerVC Opsmgr packages installed successfully. | ||
+ | ################################################################################ | ||
+ | PowerVC:setup_prepnode installation completed at 2021-09-23T12:24:49+02:00. | ||
+ | Refer to | ||
+ | /opt/ibm/powervc-opsmgr/log/prep_node/prep_node_2021-09-23-1223.log | ||
+ | for more details. | ||
+ | ################################################################################ | ||
+ | </cli> | ||
+ | |||
+ | ==== Prepare for ansible deployment ==== | ||
+ | |||
+ | Check if configuration exists | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 ~]# powervc-opsmgr inventory -l | ||
+ | Error: No cluster/inventory found | ||
+ | </cli> | ||
+ | |||
+ | IBM documentation tell to use **install** it the bad command | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 powervc]# powervc-opsmgr install -c PowerVC | ||
+ | Error: Cluster/Inventory does not exist for PowerVC | ||
+ | </cli> | ||
+ | |||
+ | Use instaed inventory to populate info, and create a cluster | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 powervc]# powervc-opsmgr inventory -c PowerVC | ||
+ | ********************************************************* | ||
+ | Install Private cloud edition(y/n): n | ||
+ | Enable Monitoring (y/n): y | ||
+ | Configure Firewall (y/n): y | ||
+ | ********************************************************* | ||
+ | Enter the number of nodes: 1 | ||
+ | ********************************************************* | ||
+ | INFO: First node specified will be considered as primary host/node | ||
+ | ******************************************************* | ||
+ | Enter IP/Hostname for Node 1: ibmpvc01 | ||
+ | Enter Username for Node 1: root | ||
+ | Enter Password for Node 1: xxxxx | ||
+ | ********************************************************* | ||
+ | Enter Virtual IP/Hostname: ibmpvc01-vip | ||
+ | Establishing passwordless connection | ||
+ | |||
+ | PLAY [Configure SSH Keys] ****************************************************** | ||
+ | |||
+ | TASK [Gathering Facts] ********************************************************* | ||
+ | Friday 24 September 2021 09:01:46 +0200 (0:00:00.027) 0:00:00.027 ****** | ||
+ | ok: [ibmpvc01] | ||
+ | ... | ||
+ | Inventory file generated successfully at /opt/ibm/powervc-opsmgr/ansible/inventory/PowerVC | ||
+ | </cli> | ||
+ | |||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 usr]# powervc-opsmgr inventory -l | ||
+ | Cluster name: PowerVC | ||
+ | Hosts: ['ibmpvc01'] | ||
+ | Edition: powervc | ||
+ | Firewall Config: True | ||
+ | Monitoring: True | ||
+ | Primary host: ibmpvc01 | ||
+ | Virtual IP: 10.1.38.60 | ||
+ | ---End of cluster PowerVC--- | ||
+ | </cli> | ||
+ | ==== Install PowerVC ==== | ||
+ | |||
+ | Once all repositories are available you can start the installation | ||
+ | logs are located in /opt/ibm/powervc-opsmgr/ansible/artifacts/ | ||
+ | |||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 usr]# powervc-opsmgr install -c PowerVC | ||
+ | |||
+ | PLAY [Precheck] **************************************************************** | ||
+ | Friday 24 September 2021 09:05:33 +0200 (0:00:00.061) 0:00:00.061 ****** | ||
+ | ok: [ibmpvc01] | ||
+ | |||
+ | TASK [Gathering Facts] ********************************************************* | ||
+ | ok: [ibmpvc01] | ||
+ | Friday 24 September 2021 09:05:34 +0200 (0:00:01.578) 0:00:01.639 ****** | ||
+ | changed: [ibmpvc01] | ||
+ | </cli> | ||
+ | |||
+ | If need to restart the installation use the option **-f** | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 ~]# powervc-opsmgr install -c PowerVC -f | ||
+ | Powervc Install exists skipping precheck to rerun | ||
+ | </cli> | ||
+ | |||
+ | === Log management === | ||
+ | Do not forget to rotate logs ! | ||
+ | https://www.ibm.com/docs/en/powervc-cloud/2.2.0?topic=problems-powervc-log-management |