太不讲理了吧!新版本稳定性如何都不知道,就强制升级,不然不让恢复,还不知道新版本是否支持旧的备份
[root@engine bak]# engine-setup
[ INFO ] Stage: Initializing
[ INFO ] Stage: Environment setup
Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20160106155958-f0m6ff.log
Version: otopi-1.4.0 (otopi-1.4.0-1.el7.centos)
[ INFO ] Stage: Environment packages setup
[ INFO ] Yum Downloading: ovirt-3.6/7 1.1 k(37%)
[ INFO ] Yum Downloading: ovirt-3.6-patternfly1-noarch-epel/x86_64 (0%)
[ INFO ] Yum Status: Downloading Packages
[ INFO ] Yum Download/Verify: iproute-3.10.0-54.el7.x86_64
[ INFO ] Yum Status: Check Package Signatures
[ INFO ] Yum Status: Running Test Transaction
[ INFO ] Yum Status: Running Transaction
[ INFO ] Yum update: 1/2: iproute-3.10.0-54.el7.x86_64
[ INFO ] Yum updated: 2/2: iproute
[ INFO ] Yum Verify: 1/2: iproute.x86_64 0:3.10.0-54.el7 - u
[ INFO ] Yum Verify: 2/2: iproute.x86_64 0:3.10.0-21.el7 - ud
[ INFO ] Stage: Programs detection
[ INFO ] Stage: Environment setup
[ INFO ] Stage: Environment customization
--== PRODUCT OPTIONS ==--
Configure Engine on this host (Yes, No) [Yes]:
Configure VM Console Proxy on this host (Yes, No) [Yes]:
Configure WebSocket Proxy on this host (Yes, No) [Yes]:
--== PACKAGES ==--
[ INFO ] Checking for product updates...
Setup has found updates for some packages:
PACKAGE: [updated] ovirt-engine-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-backend-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-backend-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-dbscripts-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-dbscripts-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-extensions-api-impl-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-extensions-api-impl-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-lib-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-lib-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-restapi-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-restapi-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-setup-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-setup-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-setup-base-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-setup-base-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-setup-plugin-ovirt-engine-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-setup-plugin-ovirt-engine-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-setup-plugin-ovirt-engine-common-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-setup-plugin-ovirt-engine-common-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-setup-plugin-vmconsole-proxy-helper-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-setup-plugin-vmconsole-proxy-helper-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-setup-plugin-websocket-proxy-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-setup-plugin-websocket-proxy-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-tools-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-tools-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-userportal-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-userportal-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-vmconsole-proxy-helper-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-vmconsole-proxy-helper-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-webadmin-portal-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-webadmin-portal-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-websocket-proxy-3.6.0.3-1.el7.centos.noarch
PACKAGE: [update] ovirt-engine-websocket-proxy-3.6.1.3-1.el7.centos.noarch
PACKAGE: [updated] ovirt-engine-wildfly-8.2.0-1.el7.x86_64
PACKAGE: [update] ovirt-engine-wildfly-8.2.1-1.el7.x86_64
PACKAGE: [updated] ovirt-engine-wildfly-overlay-001-2.el7.noarch
PACKAGE: [update] ovirt-engine-wildfly-overlay-8.0.4-1.el7.noarch
do you wish to update them now? (Yes, No) [Yes]: no
[ ERROR ] Failed to execute stage 'Environment customization': Aborted, packages must be updated
[ INFO ] Stage: Clean up
Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20160106155958-f0m6ff.log
[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20160106160422-setup.conf'
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ ERROR ] Execution of setup failed
无奈,只得先升级看一下
还不能直接升级,那就只能通过以下命令升级了
# yum update "ovirt-engine-setup*"
更新完成,重新engine-setup
之后会升级软件包
setup完成
接下来按照之前的方法还原
[root@engine bak]# ls
1212.bak bak1212.log
[root@engine bak]# engine-backup --mode=restore --file=1212.bak --log=rs0106.log --change-db-credentials --db-host=localhost --db-user=engine --db-name=engine --db-password=P5Zzva2iPgSDOvuPPCpaqJ
Preparing to restore:
- Setting credentials for Engine database 'engine'
- Unpacking file '1212.bak'
Restoring:
- Files
- Engine database 'engine'
- Cleaning up temporary tables in engine database 'engine'
Rewriting /etc/ovirt-engine/engine.conf.d/10-setup-database.conf
Rewriting /etc/ovirt-engine-dwh/ovirt-engine-dwhd.conf.d/10-setup-database.conf
You should now run engine-setup.
Done.
还原成功,根据提示再次setup
成功完成,试试登陆web
可以看到版本已更新,当然最主要是原来的东西还在吗