Show Table of Contents
第 8 章 把自承载引擎数据库迁移到一个远程服务器数据库中
您可以在初始配置 Red Hat Virtualization Manager 之后把自承载引擎的
engine 数据库迁移到一个远程数据库服务器中。使用 engine-backup 来创建数据库备份,并在新数据库服务器上进行恢复。这个过程需要新的数据库服务器安装了 Red Hat Enterprise Linux 7,并正确配置了相关的订阅。请查看安装指南中的 订阅所需的权利部分。
要将 Data Warehouse 迁移到单独的设备上,请查看 Data Warehouse 指南。
过程 8.1. 迁移数据库
- 登录到任何一台自承载引擎主机,把环境设置为
global维护模式。这会禁用高可用性代理,防止在数据库迁移过程中出现 Manager 迁移的情况:# hosted-engine --set-maintenance --mode=global
- 登录到 Red Hat Virtualization Manager 所在的机器,停止
ovirt-engine服务,从而使它不会影响到引擎的备份:# systemctl stop ovirt-engine.service
- 创建
engine数据库备份:# engine-backup --scope=files --scope=db --mode=backup --file=file_name --log=backup_log_name
- 把备份文件复制到新的数据库服务器上:
# scp /tmp/engine.dump root@new.database.server.com:/tmp
- 登录到新的数据库服务器上,然后安装
engine-backup:# yum install ovirt-engine-tools-backup
- 在新的数据库服务器上恢复该数据库。file_name 是从 Manager 复制而来的备份文件。
# engine-backup --mode=restore --scope=files --scope=db --file=file_name --log=restore_log_name --provision-db --no-restore-permissions
- 现在,数据库已完成迁移,启动
ovirt-engine服务:# systemctl start ovirt-engine.service
- 登录到自承载引擎主机,关闭维护模式,启用高可用性代理:
# hosted-engine --set-maintenance --mode=none

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.