異なるサブネットからの VIP およびノード IP の作成
PowerVC バージョン 2.1.0以降では、 advanced オプションを使用して PowerVC Ops Mgr インベントリー・ファイルを作成できます。 これにより、別のサブネットからノード IP と VIP を作成できます。
advanced オプションを使用した PowerVC Ops Mgr インベントリーの作成
powervc-opsmgr inventory -c <clustername_advance> -a を実行して、Ops Mgr インベントリー・ファイルを作成します。
例:
advanced オプションが有効になっているマルチノードでの PowerVC のインベントリー作成
[[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> *** |
+--------------------------------------------------------------------------------+
インベントリー・ファイルの生成後、 powervc-opsmgr inventory -l コマンドを実行して検証できます。
例:
[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> *** |
+--------------------------------------------------------------------------------+
上記の例では、 Virtual IP Advanced が Trueとして言及されていることがわかります。