Hello
I installed oVirt on 3 servers(hv1,hv2,hv3) with Self Hosted Engine couple years ago.
Gluster is used as storage for VMs. The engine has its own storage volume.
Then I added 3 more servers(hv4,hv5,hv6).
Now I would like to replace the first 3 servers. I added 3 more servers(hv7,hv8,hv9). I
created new gluster volumes on hv7-hv9, moved disks from old volumes.
Now the question is how to migrate engine storage? I decided to do it on Gluster level by
replacing each of the brick from the old servers(hv1-hv3) with new ones (hv7-hv9). I
successfully replaced bricks from hv1 and hv2 to hv7 and hv8. InoVirt engine storage
Domain is created with the path hv3:/engine. I am afraid to replace hv3 brick with hv9, to
not break the HostedEngine VM. To change storage Domain path I need to move it to
Maintenance, but it will unmount it from all the hosts and HostedEngine will stop working.
Is there any otherway to change a storage Domain path?
I already changed storage value in /etc/ovirt-hosted-engine/hosted-engine.conf. I did
something like this:
# on hv7
hosted-engine --vm-shutdown
# on all hosts
systemctl stop ovirt-ha-agent
systemctl stop ovirt-ha-broker
hosted-engine --disconnect-storage
sed -i 's/hv3/hv7/g' /etc/ovirt-hosted-engine/hosted-engine.conf
hosted-engine --connect-storage
systemctl restart ovirt-ha-broker
systemctl status ovirt-ha-broker
systemctl restart ovirt-ha-agent
# on hv7
hosted-engine --vm-start
and now the Hosted Engine is up and running and Gluster engine volume is mounted like
hv7:/engine
So the main question remains - how to change the engine storage Domain path?