Update Compute plane node IP address or hostname
Starting PowerVC 2.0.3, you can update Compute plane node IP address or hostname.
--help. For example, powervc-opsmgr config changecomputeplaneip --help.
- Make sure that all services are up and running before performing powervc-opsmgr config changecomputeplaneip.
- Run powervc-opsmgr config changecomputeplaneip command from primary / bootstrap node.
Perform the following steps on primary / bootstrap node to update the Compute plane node IP address or hostname. Make sure that you always use a free IP address.
- Pre-stage: Delete VM with the new IP address. nohup powervc-opsmgr config changecomputeplaneip -o <ORIGINAL_COMPUTE_PLANE_IP> -i <NEW_COMPUTE_PLANE IP> -c <cluster name> -l -p & for pre-stage.
- Manual stage: In this stage, you must manually configure the new IP address on
Compute plane node. Complete these steps.
- For RHEL:
- Log in to the Compute plane node and run vim /etc/sysconfig/network-scripts/ifcfg-<interface name> to update the IP address.
- Run systemctl restart NetworkManager.service to restart network manager.
- Run nmcli con show to fetch the network name.
- Run nmcli con down 'System env2' where
System env2, for example, is the network name. Running this command logs you out.
- By using console, login to the VM and run nmcli con up 'System env2' to activate the IP address.
- For SLES:
- Run vim /etc/sysconfig/network/ifcfg-<interface name> and update the IP address.
- Run systemctl restart network.service to restart network.
- Run wicked ifdown <interface name>, where interface name is where the IP is associated with. Running this command logs you out.
- By using console, login to the VM and run the wicked ifup <interface name> command to activate the IP address.
- Run ip a. Make sure the IP address that you are updating is the primary one.
- Update hostname.
hostnamectl set-hostname <FQDN name of the new IP> update /etc/hosts
You must run this command only on the Compute plane node.
Update /etc/hosts on Compute plane node and the controller node.
<ip> <Full hostname> <Short hostname>
- Remove old compute plane entries from /etc/hosts on Compute plane node and the controller node.
- For RHEL:
- Final stage: Run nohup powervc-opsmgr config changecomputeplaneip -o
<ORIGINAL_COMPUTE_PLANE_IP> -i <NEW_COMPUTE_PLANE IP> -c <cluster name > -l
& to update the Compute plane node IP address or
powervc-servicesafter performing operation by using powervc-services restart command.
- Make sure you lock the new Compute plane node IP to prevent any other VMs from using the IP.
- No other operations can be performed until completion of
- After updating IP address, you can access GUI after 20 minutes.