4.4.4. ホストエンジンの設定のバックアップ
ホストエンジンのグローバルメンテナンスを有効にします。
Hosted-engine --deployでデプロイしたクラスタ内にあるアクティブなホストの 1 つで以下のコマンドを実行します。# hosted-engine --set-maintenance --mode=global
SSH を使用して Hosted Engine 仮想マシンにログインし、
ovirt-engineサービスを停止します。# systemctl stop ovirt-engine
ホストエンジン仮想マシンで以下のコマンドを実行し、ホストエンジン仮想マシンからエンジンのバックアップを作成します。
# engine-backup --mode=backup --scope=all --file=<backup-file.tar.gz> --log=<logfile> Example: # engine-backup --mode=backup --scope=all --file=engine-backup.tar.gz --log=backup.log Start of engine-backup with mode 'backup' scope: all archive file: engine-backup.tar.gz log file: backup.log Backing up: Notifying engine - Files - Engine database 'engine' - DWH database 'ovirt_engine_history' Packing into file 'engine-backup.tar.gz' Notifying engine Done.
ホストエンジン仮想マシンのバックアップファイルを別のマシン(バックアップホスト)にコピーします。
# scp <backup-file.tar.gz> root@backup-host.example.com:/backup/
- ホストエンジン仮想マシンからpoweroffコマンドを実行して、ホストエンジン仮想マシンをシャットダウンします。