Update node IP address or hostname

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

This topic details the procedure for updating node IP address or hostname. When the IP address or hostname of the management system changes, run powervc-opsmgr config changenodeip command to automatically update these values in PowerVC. This command is supported only on single node environment. For instructions to use the command, open CLI and enter the command name followed by --help. For example, powervc-opsmgr config changenodeip --help.
Notes:
  • Make sure that all services are up and running before performing powervc-opsmgr config changenodeip.
  • powervc-opsmgr config changenodeip is supported only on single node.
  • Run powervc-opsmgr config changenodeip command from primary / bootstrap node.

Perform the following steps to update the compute plane node IP address. Make sure that you always use a free IP address.

  1. Pre-stage: Run nohup powervc-opsmgr config changenodeip -n <New IP that you want to configure> -c <cluster name> -l -p & for pre-stage.
  2. Manual stage: In this stage, you must manually configure the new IP address. Complete these steps.
    1. For RHEL:
      1. Run vim /etc/sysconfig/network-scripts/ifcfg-<interface name> and 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 the nmcli con up 'System env2' command 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.

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

  3. Final stage: Run nohup powervc-opsmgr config changenodeip -n <New IP that you want to configure> -c <cluster name> -l & to update the IP address or hostname.

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

Notes:
  • No other operations can be performed until completion of Final stage.
  • After updating IP address, you can access GUI after 20 minutes.