On Mon, Sep 6, 2021 at 2:52 PM Artem Tambovskiy
<artem.tambovskiy(a)gmail.com> wrote:
Hello,
Just had an issue with my cluster with a self-hosted engine (hosted-engine is not coming
up) and decided to redeploy it as I have a backup.
Just tried a hosted-engine --deploy --restore-from-file=engine.backup
But the script is asking questions like DC name, Cluster name which I can't recall
correctly.
What will be the consequence of the wrong answer? Is there any chance to get this info
from the hosts or backup file?
I think we had this issue for years now, but no-one ever complained,
and now you are the second one in just a few days! See the thread
"[ovirt-devel] oVirt 4.3 -> 4.4 upgrade and Self hosted HE storage
migration". Yes, you can get the cluster/dc names from the backup. And
yes, I agree that you shouldn't have to - perhaps you'd like to create
a bug/RFE for this?
If you just want to see all cluster/dc tables data, you can do something like:
mkdir /some/tmp/dir
cd /some/tmp/dir
tar xpf /patch/to/backup
pg_restore -f - db/engine_backup.db | grep -E -i -A100 'copy
public.cluster|copy public.storage_pool' | less
If you have lots of data and that's not enough, and you need to
actually see the specific cluster/dc of your HostedEngine VM, it's
probably easier to just restore it to a DB. And that's probably
easiest to do by manually restoring the backup in some temporary VM
somewhere.
Good luck and best regards,
--
Didi