You can check existing settings like this:

[root@ovirt2 ~]# hosted-engine --get-shared-config mnt_options --type=he_shared

mnt_options : backup-volfile-servers=gluster2:ovirt3, type : he_shared

[root@ovirt2 ~]# hosted-engine --get-shared-config storage --type=he_local   
storage : ovirt2:/engine44, type : he_local

[root@ovirt2 ~]# hosted-engine --get-shared-config storage --type=he_shared

storage : ovirt2:/engine44, type : he_shared

You have to use the --set-shared-config to point to the new Gluster host and new backup-volfile-servers in both he_local & he_shared.

Best Regards,
Strahil Nikolov 

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?
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/3HYCWQVKNTPRJVIVTGGPW7WJJJRM5CGN/