Update Compute plane node IP address or hostname

Starting PowerVC 2.0.3, you can update Compute plane node IP address or hostname.

This topic details the procedure for updating Compute plane node IP address or hostname. When the IP address or hostname of the management system changes, run powervc-opsmgr config changecomputeplaneip command to automatically update these values in PowerVC. For instructions to use the command, open CLI and enter the command name followed by --help. For example, powervc-opsmgr config changecomputeplaneip --help.
Notes:
  • 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.

  1. 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.
  2. Manual stage: In this stage, you must manually configure the new IP address on Compute plane node. Complete these steps.
    1. For RHEL:
      1. Log in to the Compute plane node and run vim /etc/sysconfig/network-scripts/ifcfg-<interface name> to update the IP address.
      2. Run systemctl restart NetworkManager.service to restart network manager.
      3. Run nmcli con show to fetch the network name.
      4. Run nmcli con down 'System env2' where System env2, for example, is the network name. Running this command logs you out.
      5. By using console, login to the VM and run nmcli con up 'System env2' to activate the IP address.
    2. For SLES:
      1. Run vim /etc/sysconfig/network/ifcfg-<interface name> and update the IP address.
      2. Run systemctl restart network.service to restart network.
      3. Run wicked ifdown <interface name>, where interface name is where the IP is associated with. Running this command logs you out.
      4. By using console, login to the VM and run the wicked ifup <interface name> command to activate the IP address.
    3. Run ip a. Make sure the IP address that you are updating is the primary one.
    4. 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.

      Example syntax: <ip> <Full hostname> <Short hostname>

    5. Remove old compute plane entries from /etc/hosts on Compute plane node and the controller node.
  3. 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 hostname.

    Manually restart powervc-services after performing operation by using powervc-services restart command.

Notes:
  • 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 Final stage.
  • After updating IP address, you can access GUI after 20 minutes.