Create VIP and node IP from different subnet
You can create PowerVC Ops Mgr inventory file by using the
advanced
option. This option allows you to create node IP and a VIP from a
different subnet.
Creating PowerVC Ops Mgr inventory by 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
-
powervc-opsmgr inventory -c clustername_advanced -a +--------------------------------------------------------------------------------+ | PowerVC Inventory | +--------------------------------------------------------------------------------+ Configure Firewall (y/n) (Default: y): +--------------------------------------------------------------------------------+ PowerVC Nodes Enter the number of nodes : 1 +--------------------------------------------------------------------------------+ INFO: Virtual IP advanced option * Virtual IP Advanced 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/hostname> Enter Username for all nodes : root Enter Password for all nodes : +--------------------------------------------------------------------------------+ INFO: Virtual IP advanced option * Virtual IP Advanced option is enabled. * Primary/bootstrap node interface name will be used for binding Virtual IP. * CIDR notation mask is used for Virtual IP cidr_netmask. +--------------------------------------------------------------------------------+ Virtual IP Enter Virtual IP : <IP> Enter Virtual IP CIDR [1-32] : 22 +--------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------+ | PowerVC Inventory - clustername_advanced | +--------------------------------------------------------------------------------+ Cluster Name : clustername_advanced Cluster ID : c939ec12-2e6e-4785-8cef-d0a5acf57f6c Install Method : cluster Firewall Config : True Login User : root Virtual IP Advanced : True Virtual IP CIDR : 22 Virtual IP Interface Name : env32 Virtual IP : <IP> Primary/Bootstrap Host : <IP/Hostname> Hosts : <IP/Hostname> Edition : private_cloud +--------------------------------------------------------------------------------+ | *** End of PowerVC Inventory - clustername_advanced *** | +--------------------------------------------------------------------------------+ Establishing passwordless connection . . . PLAY [{{ playbook_task_names.configure_ssh_keys }}] **************************** Friday 06 December 2024 08:30:41 -0500 (0:00:00.943) 0:00:07.245 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 2.33s command ----------------------------------------------------------------- 1.24s pvc_sshkeys : Make all Hosts known to each other - update known_hosts files --- 0.94s pvc_sshkeys : Copy the keys to the authorized_keys file ----------------- 0.48s {{ pvc_sshkeys_task_names.get_home_directory_for_ansible_user }} -------- 0.45s pvc_sshkeys : Generate ssh key pair ------------------------------------- 0.38s pvc_sshkeys : Get the stat for ssh directory ---------------------------- 0.36s pvc_sshkeys : Creates ssh directory /root/.ssh -------------------------- 0.35s pvc_sshkeys : Fetch public key ------------------------------------------ 0.34s include_vars ------------------------------------------------------------ 0.03s include_vars ------------------------------------------------------------ 0.03s include_vars ------------------------------------------------------------ 0.03s {{ pvc_utils_task_names.store_locale_variable }} ------------------------ 0.03s {{ pvc_sshkeys_task_names.set_home_directory_for_ansible_user }} -------- 0.03s pvc_sshkeys : include_vars ---------------------------------------------- 0.03s include_vars ------------------------------------------------------------ 0.03s pvc_sshkeys : copy SSH Key files if specified --------------------------- 0.02s pvc_sshkeys : Delete ssh is file or link -------------------------------- 0.02s pvc_sshkeys : copy SSH Key files if specified --------------------------- 0.02s include_vars ------------------------------------------------------------ 0.02s SSH Key exchange successfully completed at, 2024-12-06 08:30:41., Refer to /opt/ibm/powervc-opsmgr/ansible/artifacts/powervc-opsmgr_clustername_advanced_ssh_key_xchg_20241206_083032/stdout for more details. Inventory file generated successfully at /opt/ibm/powervc-opsmgr/ansible/inventory/clustername_advanced
After generation of inventory file, to validate the creation of the inventory file, enter the following command:
powervc-opsmgr inventory -l +--------------------------------------------------------------------------------+ | PowerVC Inventory - clustername_advanced | +--------------------------------------------------------------------------------+ Cluster Name : clustername_advanced Cluster ID : c939ec12-2e6e-4785-8cef-d0a5acf57f6c Install Method : cluster Firewall Config : True Login User : root Virtual IP Advanced : True Virtual IP CIDR : 22 Virtual IP Interface Name : env32 Virtual IP : <IP> Primary/Bootstrap Host : <IP/Hostname> Hosts : <IP/Hostname> Edition : private_cloud Inventory Directory : /opt/ibm/powervc-opsmgr/ansible/inventory/clustername_advanced +--------------------------------------------------------------------------------+ | *** End of PowerVC Inventory - clustername_advanced *** | +--------------------------------------------------------------------------------+
In t example, you can see that the
Virtual IP Advanced
is mentioned asTrue
.