このコンテンツは選択した言語では利用できません。

Chapter 4. Setting deployment variables


  1. Change the directory to:

    # cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
    Copy to Clipboard Toggle word wrap
  2. Make a backup copy of the playbooks directory.

    # cp -r /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment playbook-templates
    Copy to Clipboard Toggle word wrap
  3. Edit the inventory file.

    Make the following updates to the playbooks/gluster_inventory.yml file.

    1. Add host FQDNs to the inventory file

      • On line 4, replace host1 with the FQDN of the first host.

        Lines 3-4 of gluster_inventory.yml

          # Host1
          servera.example.com:
        Copy to Clipboard Toggle word wrap

      • On line 71, replace host2 with the FQDN of the second host.

        Lines 70-71 of gluster_inventory.yml

        #Host2
        serverb.example.com:
        Copy to Clipboard Toggle word wrap

      • On line 138, replace host3 with the FQDN of the third host.

        Lines 137-138 of gluster_inventory.yml

        #Host3
        serverc.example.com:
        Copy to Clipboard Toggle word wrap

      • On line 237 and 238, replace host2 and host3 with the FQDN of the second and third host respectively.

        Lines 235-238 of gluster_inventory.yml

        gluster:
         hosts:
          serverb.example.com:
          serverc.example.com:
        Copy to Clipboard Toggle word wrap

    2. If you want to use VDO for deduplication and compression

      1. Uncomment the Dedupe & Compression config and With Dedupe & Compression sections by removing the # symbol from the beginning of the following lines.

        #gluster_infra_vdo:
           #- { name: 'vdo_sdb1', device: '/dev/sdb1', logicalsize: '3000G', emulate512: 'on', slabsize: '32G',
              #blockmapcachesize:  '128M', readcachesize: '20M', readcache: 'enabled', writepolicy: 'auto' }
           #- { name: 'vdo_sdb2', device: '/dev/sdb2', logicalsize: '3000G', emulate512: 'on', slabsize: '32G',
              #blockmapcachesize:  '128M', readcachesize: '20M', readcache: 'enabled', writepolicy: 'auto' }
        Copy to Clipboard Toggle word wrap
        #gluster_infra_volume_groups:
          #- vgname: vg_sdb1
            #pvname: /dev/mapper/vdo_sdb1
          #- vgname: vg_sdb2
            #pvname: /dev/mapper/vdo_sdb2
        Copy to Clipboard Toggle word wrap
      2. Comment out the Without Dedupe & Compression section by adding a # to the beginning of each line.

        # Without Dedupe & Compression
        gluster_infra_volume_groups:
          - vgname: vg_sdb1
            pvname: /dev/sdb1
          - vgname: vg_sdb2
            pvname: /dev/sdb2
        Copy to Clipboard Toggle word wrap
  4. Edit the hosted engine variables file.

    Update the following values in the playbooks/he_gluster_vars.json file.

    he_appliance_password
    The root password of the host machine.
    he_admin_password
    The password for the root account of the Administration Portal.
    he_domain_type
    glusterfs - There is no need to change this value.
    he_fqdn
    The fully qualified domain name for the Hosted Engine virtual machine.
    he_vm_mac_addr
    A valid MAC address for the Hosted Engine virtual machine.
    he_default_gateway
    The IP address of the default gateway server.
    he_mgmt_network
    The name of the management network. The default value is ovirtmgmt.
    he_host_name
    The short name of this host.
    he_storage_domain_name
    HostedEngine
    he_storage_domain_path
    /engine
    he_storage_domain_addr
    The IP address of this host on the storage network.
    he_mount_options
    backup-volfile-servers=<host2-ip-address>:<host3-ip-address>, with the appropriate IP addresses inserted in place of <host2-ip-address> and <host3-ip-address>.
    he_bridge_if
    The name of the interface to be used as the bridge.
    he_enable_hc_gluster_service
    true
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat