Deploying GlusterFS Storage

Oracle Linux Virtualization Manager has been integrated with GlusterFS, an open source scale-out distributed filesystem, to provide a hyperconverged solution where both compute and storage are provided from the same hosts. Gluster volumes residing on the hosts are used as storage domains in the Manager to store the virtual machine images. In this scenario, the Manager is run as a self-hosted engine within a virtual machine on these hosts.


For more information about using GlusterFS, including prerequisites, see the latest upstream oVirt Documentation.

Deploying GlusterFS Storage Using Cockpit

To deploy GlusterFS storage using the Cockpit web interface), complete the following steps.


Ensure you have installed gdeploy and ansible-host-roles packages on one of the KVM hosts. The gdeploy package is available in the ovirt-4.2-extra yum repository.

  1. On one of the KVM hosts in the data center

  2. Go to Compute, and then click Hosts.

    The Hosts pane opens.

  3. Under the Name column, click the host to be used as the designated server.

  4. Click Host Console.

    The login page for the Cockpit web interface opens.

  5. Enter your login credentials (the user name and password of the root account.).

  6. Go to Virtualization and then click Hosted Engine.

  7. Click Redeploy under Hosted Engine Setup.

  8. Click Start under Hyperconverged.

  9. On the Hosts screen, enter 3 (or more) KVM hosts that are in the data center to be used for GlusterFS, with the main designated KVM host entered first and click Next when finished.

  10. On the FQDNs screen, enter the FQDN (or IP address) for the hosts to be managed by the Hosted Engine and click Next when finished.


    The FQDN of the designated server is input during the Hosted Engine deployment process and is not asked for here.

  11. Click Next on the Packages screen.

  12. On the Volumes screen, create the minimum storage domains that are required: engine, data, export, and iso. Click Next when finished.

    For example:

    • Name: engine

    • Volume Type: Replicate (default)

    • Arbiter: Ensure the check box is selected.

    • Brick Dirs: /gluster_bricks/engine/engine (default)


    • Name: data

    • Volume Type: Replicate (default)

    • Arbiter: Ensure the check box is selected.

    • Brick Dirs: /gluster_bricks/data/data (default)


    • Name: export

    • Volume Type: Replicate (default)

    • Arbiter: Ensure the check box is selected.

    • Brick Dirs: /gluster_bricks/export/export (default)


    • Name: iso

    • Volume Type: Replicate (default)

    • Arbiter: Ensure the check box is selected.

    • Brick Dirs: /gluster_bricks/iso/iso (default)

  13. On the Brick Locations screen, specify the brick locations for your volumes and click Next when finished.

    For this step, you specify the brick locations for your volumes (engine, data, export, and iso).

  14. Review the screen and click Deploy.

    • If you are using an internal disk as the Gluster disk, no edits are required and you can simply click Deploy to continue with the deployment.

    • If you are using an external iSCSI ZFS external drive as the Gluster disk, click Edit to edit the gdeployConfig.conf file and specify the block device on each server that is being used for storage. Click Save and then click Deploy to continue with the deployment.

    This process takes some time to complete, as the gdeploy tool installs required packages and configures Gluster volumes and their underlying storage.

    A message display on the screen when the deployment completes successfully.

Creating a GlusterFS Storage Domain Using the Manager

To add a GlusterFS storage volume as a storage domain:

  1. Go to Storage and then click Domains.

    The Storage Domains pane opens.

  2. On the Storage Domains pane, click the New Domain button.

    The New Domain dialog box opens.

  3. For the Name field, enter a name for the data domain.

  4. From the Data Center drop-down list, select the data center where the GlusterFS volume is deployed. By default, the Default option is selected in the drop-down list.

  5. From the Domain Function drop-down list, select the domain function. By default, the Data option is selected in the drop-down list.

    For this step, leave Data as the domain function because a data domain is being created in this example.

  6. From the Storage Type drop-down list, select GlusterFS.

  7. For the Host to Use drop-down list, select the host for which to attach the data domain.

  8. When GlusterFS is selected for the Storage Type, the New Domain dialog box updates to display additional configuration fields associated with GlusterFS storage domains.

  9. Ensure the Use managed gluster volume check box is not selected.

  10. From the Gluster drop-down list, select the path to which domain function you are creating.

  11. For the Mount Options option, specify additional mount options in a comma-separated list, as you would using the mount -o command.

  12. (Optional) Configure the advanced parameters.

  13. Click OK to mount the volume as a storage domain.

    You can click Tasks to monitor the various processing steps that are completed to add the GlusterFS storage domain to the data center.