6.6. 新しいプライマリーホストのクラスターを更新する
別の FQDN を使用して障害が発生したホストを交換する場合は、代替ホストを使用するようにクラスター内の設定を更新する必要があります。
手順
hc-ansible-deploymentディレクトリーに移動します。# cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/
reconfigure_storage_inventory.ymlファイルのコピーを作成します。# cp reconfigure_storage_inventory.yml reconfigure_storage_inventory.yml.bk
reconfigure_storage_inventory.ymlファイルを編集して、以下を特定します。- hosts
- Hosted Engine 仮想マシンをホストするように設定された、クラスター内の 2 つのアクティブなホスト。
- gluster_maintenance_old_node
- 障害が発生したノードのバックエンドネットワーク FQDN。
- gluster_maintenance_new_node
- 交換ノードのバックエンドネットワーク FQDN。
- ovirt_engine_hostname
- Hosted Engine 仮想マシンの FQDN。
以下に例を示します。
all: hosts: host2-backend.example.com: host3-backend.example.com: vars: gluster_maintenance_old_node: host1-backend.example.com gluster_maintenance_new_node: host4-backend.example.com ovirt_engine_hostname: engine.example.com更新したインベントリーファイルを使用して
reconfigure_he_storage.ymlPlaybook を実行します。# ansible-playbook -i reconfigure_he_storage_inventory.yml tasks/reconfigure_he_storage.yml