Import datastores into rebuilt Frontend

On my test system I had to rebuild my frontend from scratch. I can add the two running existing hosts back in no problem but is there an easy way to import the existing file and image datastores? The datastores are qcow2 (not vCenter) on a shared filesystem.

Hello @christaylor

What do you mean by import the existing datastores? These datastores can be only imported if they are from vCenter, if not you need to create them and then you can resync the folders with the old content you had. These folders are located in /var/lib/one/datastores directory.

Best,
Álex.

I recreated the datastores under /var/lib/one/datastores and synced the existing images back, is there a procedure to make OpenNebula see them again? I restarted opennebula but they aren’t showing up yet. I had a VM running, is there a way to bring that back? Thanks

Hello @christaylor

If you the database backup, just restore it and OpenNebula will see everything.
If not, you need to create the images and VM again.

Best,
Álex.