Create VIP and node IP from different subnet
Starting PowerVC version 2.1.0, you can create PowerVC Ops Mgr inventory file using the
advanced
option. This allows you to create node IP and a VIP from a different
subnet.
Creating PowerVC Ops Mgr inventory using advanced option
Run powervc-opsmgr inventory -c <clustername_advance> -a to create Ops Mgr inventory file.
Example:
Inventory creation for PowerVC on
a multinode with advanced option enabled
[[root@controller]# powervc-opsmgr inventory -c <clustername_advance> -a
+--------------------------------------------------------------------------------+
| PowerVC Inventory |
+--------------------------------------------------------------------------------+
PowerVC Install options
Install Private cloud edition(y/n) : y
Configure Firewall (y/n) : y
Legacy Installation (y/n) : n
+--------------------------------------------------------------------------------+
PowerVC Nodes
Enter the number of nodes : 3
+--------------------------------------------------------------------------------+
INFO:
VirtualIP advance option
* VirtualIP Advance Option is Selected.
* Network interface name need to be same on all nodes.
Primary/Bootstrap Node
* First node specified will be considered as primary or bootstrap node.
Sudo User
* Sudo user with same username and password across all nodes is required.
+--------------------------------------------------------------------------------+
PowerVC Node(s) Information
Node 1
Enter IP/Hostname for Node 1 : <IP or Hostname>
Enter Username for Node 1 : root
Enter Password for Node 1 :
Node 2
Enter IP/Hostname for Node 2 : <IP or Hostname>
Enter Username for Node 2 : root
Enter Password for Node 2 :
Node 3
Enter IP/Hostname for Node 3 : <IP or Hostname>
Enter Username for Node 3 : root
Enter Password for Node 3 :
+--------------------------------------------------------------------------------+
INFO:
VirtualIP advance option
* VirtualIP Advanced option is enabled.
* Primary/bootstrap node interface name will be used for binding VirtualIP.
* CIDR notation mask is used for VirtualIP cidr_netmask.
+--------------------------------------------------------------------------------+
VirtualIP
Enter Virtual IP : <IP or Hostname>
Enter Virtual IP CIDR [1-32] : 20
+--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+
| PowerVC Inventory - <clustername_advance> |
+--------------------------------------------------------------------------------+
Cluster Name : <clustername_advance>
Cluster ID : 51332088-7678-406f-80a4-1c9cb3ea5164
Install Method : cluster
Edition : private_cloud
Firewall Config : True
Monitoring : False
Login User : root
Virtual IP Advanced : True
Virtual IP CIDR : 20
Virtual IP Interface Name : ens192
Virtual IP : <IP>
Primary/Bootstrap Host : <IP or Hostname>
Hosts : <IP or Hostname>
: <IP or Hostname>
: <IP or Hostname>
+--------------------------------------------------------------------------------+
| *** End of PowerVC Inventory - <clustername_advance> *** |
+--------------------------------------------------------------------------------+
Establishing passwordless connection
PLAY [Configure SSH Keys] ******************************************************
.
.
.
.
SSH Key exchange successfully completed at, 2022-09-27 05:49:28.,
Refer to
/opt/ibm/powervc-opsmgr/ansible/artifacts/powervc-opsmgr_<clustername_advance>_ssh_key_xchg_20220927_054912/stdout
for more details.
Inventory file generated successfully at /opt/ibm/powervc-opsmgr/ansible/inventory/<clustername_advance>
+--------------------------------------------------------------------------------+
| PowerVC Inventory - <clustername_advance> |
+--------------------------------------------------------------------------------+
Cluster Name : <clustername_advance>
Cluster ID : 51332088-7678-406f-80a4-1c9cb3ea5164
Install Method : cluster
Edition : private_cloud
Firewall Config : True
Monitoring : False
Login User : root
Virtual IP Advanced : True
Virtual IP CIDR : 20
Virtual IP Interface Name : ens192
Virtual IP : <IP>
Primary/Bootstrap Host : <IP or Hostname>
Hosts : <IP or Hostname>
: <IP or Hostname>
: <IP or Hostname>
Inventory Directory : /opt/ibm/powervc-opsmgr/ansible/inventory/<clustername_advance>
+--------------------------------------------------------------------------------+
| *** End of PowerVC Inventory - <clustername_advance> *** |
+--------------------------------------------------------------------------------+
After generation of inventory file, you can validate by running powervc-opsmgr inventory -l command.
Example:
[root@controller ~]# powervc-opsmgr inventory -l
+--------------------------------------------------------------------------------+
| PowerVC Inventory - <clustername_advance> |
+--------------------------------------------------------------------------------+
Cluster Name : <clustername_advance>
Cluster ID : 51332088-7678-406f-80a4-1c9cb3ea5164
Install Method : cluster
Edition : private_cloud
Firewall Config : True
Monitoring : False
Login User : root
Virtual IP Advanced : True
Virtual IP CIDR : 20
Virtual IP Interface Name : ens192
Virtual IP : <IP>
Primary/Bootstrap Host : <IP or Hostname>
Hosts : <IP or Hostname>
: <IP or Hostname>
: <IP or Hostname>
+--------------------------------------------------------------------------------+
| *** End of PowerVC Inventory - <clustername_advance> *** |
+--------------------------------------------------------------------------------+
In the above example, you can see that the Virtual IP Advanced
is mentioned as
True
.