Update VIP settings by using OpsMgr

You can update virtual IP (VIP) settings by using PowerVC operations manager (OpsMgr).

About this task

This topic details the procedure for updating VIP settings by using OpsMgr. When the IP address of the management system changes, run powervc-opsmgr config changevip 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 changevip --help.
Notes:
  • Make sure that all services are up and running before performing powervc-opsmgr config changevip.
  • Run powervc-opsmgr config changevip command from primary / bootstrap node.

Perform the following steps to update the VIP settings. Make sure that you always use a free IP address.

Procedure

  1. Pre-stage: Run nohup powervc-opsmgr config changevip -r <New IP that you want to configure> -c <cluster name> -l -p & for pre-stage. This command updates the inventory files. To check whether the entries under /opt/ibm/powervc-opsmgr/ansible/inventory are updated, you can run powervc-opsmgr inventory -l.
  2. Manual stage: Run the following command and delete the VIP that is associated with the node.
    ip addr del <VIP>/<NETMASK_CIDR> dev <INTERFACE_NAME>
  3. Final stage: Run nohup powervc-opsmgr config changevip -r <New IP that you want to configure> -c <cluster name> -l &.

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

    If inventory has Firewall config set to true, then run systemctl restart firewalld on all nodes.
    Upon successful execution of the command, the VIP is updated.
    Notes:
    • No other operations can be performed until completion of Final stage.
    • After updating IP address, you can access GUI after 20 minutes.

Update VIP as the hostname

About this task

Perform the following steps to set the VIP as the hostname.

Procedure

  1. Pre-stage: Run the powervc-opsmgr config changevip -r <Hostname that you want to configure> -c <cluster name> -l -p -vhh command.
  2. Final stage: Run the powervc-opsmgr config changevip -r <Hostname that you want to configure> -c <cluster name> -l -vhh command.
  3. To access the GUI and if the firewall is active, run these commands.
    • firewall-cmd --add-rich-rule='rule family="ipv4" destination address="<VIP IPv4>" port port="443" protocol="tcp" accept' --permanent
    • systemctl restart firewalld
    Upon successful execution of the command, the hostname is updated.
  4. For NovaLink, perform these steps.
    1. On each registered remote node, replace the certificate at /etc/pki/tls/certs/powervc.crt with the newly generated certificate.
    2. If you have any registered remote node, make sure to restart powervc-services on all of those nodes. For NovaLink, use powervc-services remote restart --node all command from the PowerVC management server.