Initiate installation through PowerVC operations manager
The PowerVC Operations Manager (OpsMgr) is a collection of utilities and services that are designed to facilitate end-user operation of PowerVC clusters like install, upgrade, backup, and restore.
This topic explains the procedure for installing opsmgr
utility and the
procedure of installing PowerVC on
single node and multinode. You must install Ansible RPM or enable Ansible repo before starting
OpsMgr installation.
- For SLES, ensure that all SELinux components are installed by using YaST.
Refer to corresponding SELinux configuration documentation for SLES 15 SP2 and SLES 15 SP3.Make sure that SELinux is configured as mentioned here.
SELinux status: enabled Loaded policy name: targeted Current mode: permissive
After installing the SELinux packages and enabling the SELinux GRUB 2 boot parameters, reboot virtual machine to activate the configuration.
To enable openSUSE repositories during OpsMgr installation, run -o option.
- If the installation is interrupted at any point for various reasons, you can always re-trigger the install procedure for successful installation.
- Pacemaker configuration for virtual IP is done using IP address and not hostname even if the hostname is provided.
- In a multinode environment, PowerVC installation must be initiated from the primary / bootstrap node only.
- In multinode setup of PowerVC, at
any given time more than n/2 nodes need to be active for the cluster to maintain quorum. Here
n
is the number of PowerVC nodes. - Ansible 2.9 is the supported version.
- Make sure you disable IPv6 before proceeding with install procedure. For details, see Disable IPv6 topic.
Installing opsmgr
utility
- After extracting the
powervc-opsmgr-<OS-architecture-release>.tgz
file, go to powervc-opsmgr/ directory. - Run
setup_opsmgr.sh
script to accept the license. Alternatively, you can run<path>/setup_opsmgr.sh -s
to perform silent installation.
PowerVC
OpsMgr
operations and commands
After installing OpsMgr, you can perform several operations. For instructions to use the OpsMgr
utility, open a command line and enter the command name followed by --help
. For
example, powervc-opsmgr --help
.
Operation | Description |
---|---|
Inventory |
To create inventory, run powervc-opsmgr inventory -c <cluster_name> command. For help related to inventory sub-commands, run |
Install |
To start installation, run powervc-opsmgr install -c <cluster_name> command. For help related to install sub-commands, run |
Monitoring | Manages PowerVC monitoring components. |
Upgrade to Private Cloud | Upgrades IBM PowerVC to IBM PowerVC for Private Cloud. |
Apply iFix | To apply iFixes to the PowerVC single or multinode cluster installed. |
Backup / Restore |
|
Replace node |
|
Uninstall |
|
Add nodes | Use this operation to move from single node to multinode. |
Resync node | Use this operation to resync conf files post recovery of a node. |
Update | To update PowerVC management plane. |
Configuration settings | To manage PowerVC OpsMgr configuration settings such as IP address, users, and so on. |
Virtual IP (VIP) considerations
- A virtual IP (VIP) must be a free IP from the same subnet as PowerVC nodes.
- All nodes must have same status of
firewalld
service. - Validate VIP during sudden failure of a node that holds the VIP.
Installing PowerVC on single node or multinode
Using OpsMgr, you can create a single node or multinode (3 nodes) PowerVC cluster. The cluster can be extended up to 5 nodes.
Examples:
[root@powervc_host ~]# powervc-opsmgr inventory -c <cluster_name>
*********************************************************
Install Private cloud edition(y/n): Select y
to proceed with installation of PowerVC for Private Cloud.
Configure Firewall (y/n): Select y
to configure firewall.
*********************************************************
Enter the number of nodes: Specify number of nodes, which can be 1.
*********************************************************
INFO: First node that is specified will be considered as primary / bootstrap host or primary / bootstrap node
INFO: A sudo user with same username and password across all nodes is required.
*********************************************************
Enter IP/Hostname for Node 1: <IP or hostname>
Enter Username for Node 1: root
Enter Password for Node 1:
*********************************************************
Enter Virtual IP/Hostname: <IP or hostname>
*********************************************************
Establishing passwordless connection
…..
….….
Passwordless connection established
Inventory file generated successfully at /opt/ibm/powervc-opsmgr/ansible/inventory/<cluster_name>.
*********************************************************
[root@powervc_host ~]# powervc-opsmgr inventory -c <cluster_name>
*********************************************************
Install Private cloud edition(y/n): Select y
to proceed with installation of PowerVC for Private Cloud.
Configure Firewall (y/n): Select y
to configure firewall.
*********************************************************
Enter the number of nodes: Specify number of nodes, which can be a maximum of 3.
*********************************************************
INFO: First node that is specified will be considered as primary / bootstrap host or primary / bootstrap node.
INFO: A sudo user with same username and password across all nodes is required.
*********************************************************
Enter IP/Hostname for Node 1: <IP or hostname>
Enter Username for Node 1: root
Enter Password for Node 1:
Enter IP/Hostname for Node 2: <IP or hostname>
Enter Username for Node 2: root
Enter Password for Node 2:
...
...
*********************************************************
Enter Virtual IP/Hostname: <IP or hostname>
*********************************************************
Establishing passwordless connection
…..
….….
Passwordless connection established
Inventory file generated successfully at /opt/ibm/powervc-opsmgr/ansible/inventory/<cluster_name>.
*********************************************************
After generation of inventory file, you can validate by running powervc-opsmgr inventory -l command.
[root@vm-1783 ~]# powervc-opsmgr inventory -l
Cluster name: test
Hosts: ['9.x.x.x', '9.x.x.x', '9.x.x.x']
Edition: private_cloud
Firewall Config: True
Monitoring: True
Primary or Bootstrap host: 9.x.x.x
Virtual IP: 9.x.x.x
---End of cluster test---
[root@vm-1783 ~]#
- To verify that your environment meets all of the prerequisites, run
powervc-opsmgr install -c <clustername> -p
before starting the actual install. - Run
powervc-opsmgr install -c <clustername>
to start installation.To use your RHSM subscription and enable repos on all nodes, you can use -s option. However, you can also choose to manually add repos by using your RHEL subscription.
You can use the below command to run the install CLI as a backgroundnohup powervc-opsmgr install -c <cluster_name> &
The installation log file can be found in the following location:
/opt/ibm/powervc-opsmgr/ansible/artifacts/powervc-opsmgr_<cluster_name>_install_<time_stamp>/stdout
.
After installation is complete, run powervc-opsmgr install -c <cluster_name> --validate-install to check the complete health status of all services.
nohup powervc-opsmgr install -c <cluster-name> &
Monitoring scenario
- Install monitoring after PowerVC is installed
- Run powervc-opsmgr inventory --list to check the variable value. If it is set
to
False
you must update the inventory set the variable value toTrue
. This can be done by manually editing the inventory file at /opt/ibm/powervc-opsmgr/ansible/inventory/<cluster_name>/group_vars/all/cluster.yml. Here<cluster_name>
is the name passed to the -c option when creating the inventory. Set the inventory variablemonitoring
toTrue
and then run powervc-opsmgr monitoring --install -c <cluster_name> command. Alternatively, you can bypass the value of the inventory monitoring variable with the --force option.. For example, powervc-opsmgr monitoring --install -c <cluster_name> --force.
For details about monitoring, see Planning for PowerVC monitoring.