On Tue, Oct 29, 2019 at 11:55 AM <wangyu13476969128(a)126.com> wrote:
The current version of ovirt-engine in production environment is 4.3.5.5.
In order to prevent the ovirt-engine machine from being down, the management interface
cannot be used, according to the relevant link:
https://ovirt.org/documentation/admin-guide/chap-Backups_and_Migration.html
I backed it up using the command:
engine-backup --scope=all --mode=backup --file=file_name --log=log_file_name
I have prepared another machine as a spare machine. Once the ovirt-engine is down in the
production environment, the standby machine can be UP and the standby machine can manage
the ovirt-nodes.
According to the relevant links:
https://ovirt.org/documentation/install-guide/chap-Installing_oVirt.html
The ovirt-engine is installed on the standby machine.
After I have executed these three commands:
1. yum install
http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
2. yum update
3. yum install ovirt-engine
I found that the ovirt-engine version of the standby machine is 4.3.6
So my question is:
1. The ovirt-engine version of the standby machine is 4.3.6, and the production
environment ovirt-engine version is 4.3.5.5, which command is used on the production
environment ovirt-engine machine:
engine-backup --scope=all --mode=backup --file=file_name --log=log_file_name
Files obtained after using the backup command on the ovirt-engine in the production
environment are restored using these two files under the standby computer. Will the
information on the ovirt-engine management interface of the standby computer be consistent
with the ovirt-engine of the production environment (eg data center, host, virtual
machine, etc.)?
In principle it should be ok. After you restore with above command,
you should run 'engine-setup', and this will update your restored
database schema to 4.3.6.
This is not routinely tested explicitly, though, but I expect that
people often do this, perhaps even unknowingly, when they restore from
a backup taken with a somewhat-old version.
2. Can the ovirt-engine of the standby machine be installed with version 4.3.5.5? How do
I need to modify the following three commands to get the backup machine to install the
version 4.3.5.5?
1. yum install
http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm
2. yum update
3. yum install ovirt-engine
In theory you can change last one to 'yum install
ovirt-engine-4.3.5.5'. I didn't try that, and you are quite likely to
run into complex dependencies you'll have to satisfy by yourself.
I think the best solution for you, if you care about active and
standby to be identical, is to upgrade your active one as well, and
keep them same version going forward.
I'd also like to note that maintaining a standby engine and using it
the way you intend to, is not in the scope of oVirt. People do similar
things, but have to manually work around this and be careful. One very
important issue is that if for any reason you allow both of them to be
up at the same time, and manage the same hosts, they will not know
about each other, and you'll see lots of confusion and errors.
You might also want to check:
1. Hosted-engine setup with more than one host as hosted-engine host.
There, you only have a single engine vm, but it can run on any of your
hosts. You still have a single VM disk/image, and if that's corrupted,
you have no HA and have to somehow reinstall/restore/etc.
2.
https://www.ovirt.org/documentation/disaster-recovery-guide/
Best regards,
--
Didi