You can change the domain name on an appliance with the Hosted Engine (OVIRT engine) and the CommServe VM.
Procedure
-
Edit the hosts file on the CommServe VM, Hosted Engine and the nodes and add the new IP for the respective entity.
-
Login to the Hosted Engine using a terminal emulator like PuTTy, and backup the hosted engine using the following command:
# engine-backup --mode=backup --scope=all --file=engine_backup.dat --log=engine_backup.log
-
Set the MediaAgents associated with the nodes in the Maintenance mode. For more information about setting the MediaAgents in the Maintenance mode, see Setting the MediaAgent on Maintenance Mode.
-
Login to one of the nodes and set the hosted engine in the maintenance mode using the following command:
hosted-engine --set-maintenance --mode=global
-
Run the following command on each of the nodes, substituting the new IP address, gateway and netmask:
# echo '{"networks": {"ovirtmgmt": {"bonding": "bond0", "bridged": true, "ipaddr": "", "netmask": "", "gateway": "", "defaultRoute": true}}, "bondings": {}, "options": {"connectivityCheck": false}}' | vdsm-client -f - Host setupNetworks
-
Commit the changes in nodes 1 to 3 (which hosts the hosted engine) using the following command:
# vdsm-client Host setSafeNetworkConfig
-
On nodes that do not host the hosted engine, locate and edit the following file (using Nano) to reflect the new IP address, gateway and netmask.
/etc/sysconfig/network-scripts/ifcfg-eno3
Use the following to commit the changes.
systemctl restart network
-
Login to one of the nodes and remove the maintenance mode on the hosted engine.
hosted- engine --set-maintenance --mode=none
-
Access the hosted engine using the following command:
# hosted-engine --console
-
Updated the ip address, gateway and netmask for both the
ifcfg-eth0
files.Use Vi to edit the files. (Nano is not available in the hosted engine.)
-
Restart network using the following command:
systemctl restart network
-
Login to the hosted engine and download the virt viewer.
-
Open the virt viewer and perform the following steps:
-
From the Virtual Machines tab, use the Console option log in to the CommServe VM.
-
In the CommServe VM, navigate to Control Panel> Network Connections.
-
Right-click Ethernet Connection and select Properties.
-
Select Internet Protocol Version 4 (TCP/IPv4) and then click the Properties button.
-
Set the new static IP and DNS server addresses.
-
Click OK twice to close the windows.
-
-
Start the Command Center and confirm that all entities are accessible using the Check Readiness operation. For more information about checking readiness, see Checking Readiness.