6.6. 新しいプライマリーホストのクラスターを更新する

別の FQDN を使用して障害が発生したホストを交換する場合は、代替ホストを使用するようにクラスター内の設定を更新する必要があります。

手順

  1. hc-ansible-deployment ディレクトリーに移動します。

    # cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/
  2. reconfigure_storage_inventory.yml ファイルのコピーを作成します。

    # cp reconfigure_storage_inventory.yml reconfigure_storage_inventory.yml.bk
  3. 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
  4. 更新したインベントリーファイルを使用して reconfigure_he_storage.yml Playbook を実行します。

    # ansible-playbook -i reconfigure_he_storage_inventory.yml tasks/reconfigure_he_storage.yml