此内容没有您所选择的语言版本。

Chapter 12. Configure the logical network for gluster traffic


For creating a separate gluster logical network, in Red Hat Hyperconverged Infrastructure for Virtualization (RHHI for Virtualization) 1.7 users had to perform the steps manually via the Red Hat Virtualization Administration portal. From RHHI for Virtualization 1.8 this process can be automated using the ansible playbook as follows:

Prerequisites

  • Red Hat Hyperconverged Infrastructure for Virtualization deployment is complete with hosts in up state.

Procedure

  1. Log in to the first hyperconverged host.
  2. Change into the hc-ansible-deployment directory:

    # cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
  3. Make a copy of the gluster_network_inventory.yml file for future reference.

    # cp gluster_network_inventory.yml gluster_network_inventory.yml.backup
  4. Define your configuration in the gluster_network_inventory.yml file.

    Use the example gluster_network_inventory.yml file to define the details on each host. A complete outline of this file is available in Understanding the gluster_network_inventory.yml file.

  5. Encrypt the gluster_network_inventory.yml file and specify a password using ansible-vault.

    The required variables in gluster_network_inventory.yml include password values, so it is important to encrypt the file to protect the password values.

    # ansible-vault encrypt gluster_network_inventory.yml

    Enter and confirm a new vault password when prompted.

12.2. Executing the gluster network playbook

Prerequisites

Procedure

  1. Log in to the first hyperconverged host.
  2. Change into the hc-ansible-deployment directory.

    # cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
  3. Run the following command as the root user to start the configuration process.

    # ansible-playbook -i gluster_network_inventory.yml  tasks/gluster_network_setup.yml --ask-vault-pass

    Enter the vault password for this file when prompted to start network configuration.

12.3. Verifying the logical network for gluster traffic

Check the following to verify if the logical network for gluster traffic is successfully created and attached to the host.

  1. Validate the availability of gluster logical network.

    1. Log in to the Administration Portal.
    2. Click Network Networks. This should list the newly created gluster_net network.
    3. Click on gluster_net click on Clusters tab, hovering the mouse over Network Role column should display Migration Gluster.
  2. Validate gluster_net is attached to the storage network interface of all the hosts.

    1. Click on Compute Hosts click on any host.
    2. Select Network Interfaces tab click on the drop down button near the label Logical Networks corresponding to storage or backend network, you should see the gluster_net as the network name.

If you have Jumbo frames (MTU 9000) enabled, you need to edit the default network configuration to ensure jumbo frames are used for storage traffic. The network components (switch) must support Jumbo frames.

The following is the procedure to edit the logical network for Jumbo frames on the storage network, gluster_net here:

Prerequisites

  • Logical network for gluster traffic is successfully created and is attached to the host.

Procedure

  1. Login in to the Administration Portal.
  2. Click Networks Network.
  3. Click on gluster_net Edit.
  4. Select custom MTU and make it as 9000.
  5. Click OK.
Note

Make sure all the network components are enabled with the same MTU.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部