Deploying Red Hat Hyperconverged Infrastructure for Virtualization on a single node

Red Hat Hyperconverged Infrastructure for Virtualization 1.5

Create a hyperconverged configuration with a single server

Laura Bailey

Abstract

Read this for information about deploying a single self-contained Red Hat Hyperconverged Infrastructure for Virtualization server.

Chapter 1. Workflow for deploying a single hyperconverged host

  1. Verify that your planned deployment meets Support Requirements, with exceptions described in Chapter 2, Additional requirements for single node deployments.
  2. Install the virtualization host machine.
  3. Browse to the Cockpit UI and deploy a single hyperconverged node.
  4. Browse to the Red Hat Virtualization Administration Console and configure Red Hat Gluster Storage as a Red Hat Virtualization storage domain.

Chapter 2. Additional requirements for single node deployments

Red Hat Hyperconverged Infrastructure for Virtualization is supported for deployment on a single node provided that all Support Requirements are met, with the following additions and exceptions.

A single node deployment requires a physical machine with:

  • 1 Network Interface Controller
  • at least 12 cores
  • at least 64GB RAM
  • at most 48TB storage

Single node deployments cannot be scaled, and are not highly available.

Chapter 3. Install the virtualization host

Follow the instructions in the Red Hat Virtualization Installation Guide to install either a Red Hat Virtualization host or a Red Hat Enterprise Linux host.

Chapter 4. Configuring a single node RHHI for Virtualization deployment

4.1. Configuring Red Hat Gluster Storage on a single node

Important

Ensure that disks specified as part of this deployment process do not have any partitions or labels.

  1. Log into the Cockpit UI

    Browse to the Cockpit management interface of the first virtualization host, for example, https://node1.example.com:9090/, and log in with the credentials you created in Chapter 3, Install the virtualization host.

  2. Start the deployment wizard

    1. Click VirtualizationHosted Engine and click Start underneath Hyperconverged.

      Hosted Engine Setup screen with Start buttons underneath the Hosted Engine and Hyperconverged options

      The Gluster Configuration window opens.

    2. Click the Run Gluster Wizard button.

      Selecting the type of hyperconverged deployment in Cockpit

      The Gluster Deployment window opens in single node mode.

  3. Specify storage host

    Specify the back-end FQDN on the storage network of the virtualization host and click Next.

    The Hosts tab of the single node deployment wizard
  4. Specify volumes

    Specify the volumes to create.

    The Volumes tab of the single node deployment wizard
    Name
    Specify the name of the volume to be created.
    Volume Type

    Specify a Distribute volume type. Only distributed volumes are supported for single node deployments.

    Important

    This step is affected by a known issue, BZ#1641483. It is not currently possible to select Distribute. Instead, select Replicated. The volume created is a single-brick distributed volume, which is correct for single-node RHHI for Virtualization deployments.

    Brick Dirs
    The directory that contains this volume’s bricks.
  5. Specify bricks

    Specify the bricks to create.

    The Bricks tab of the single node deployment wizard
    RAID
    Specify the RAID configuration to use. This should match the RAID configuration of your host. Supported values are raid5, raid6, and jbod. Setting this option ensures that your storage is correctly tuned for your RAID configuration.
    Stripe Size
    Specify the RAID stripe size in KB. Do not enter units, only the number. This can be ignored for jbod configurations.
    Disk Count
    Specify the number of data disks in a RAID volume. This can be ignored for jbod configurations.
    LV Name
    Specify the name of the logical volume to be created.
    Device
    Specify the raw device you want to use. Red Hat recommends an unpartitioned device.
    Size
    Specify the size of the logical volume to create in GB. Do not enter units, only the number.
    Mount Point
    Specify the mount point for the logical volume. This should be inside the brick directory that you specified on the previous page of the wizard.
    Thinp
    Specify whether to provision the volume thinly or not. Note that thick provisioning is recommended for the engine volume. Do not use Enable Dedupe & Compression at the same time as this option.
    Enable Dedupe & Compression
    Specify whether to provision the volume using VDO for compression and deduplication at deployment time. Do not use Thinp at the same time as this option.
    Logical Size (GB)
    Specify the logical size of the VDO volume. This can be up to 10 times the size of the physical volume, with an absolute maximum logical size of 4 PB.
  6. Review and edit configuration

    Review the contents of the generated configuration file and click Edit to modify the file, and Save to keep your changes.

    Click Deploy when you are satisfied with the configuration file.

    The Review tab of the single node deployment wizard
  7. Wait for deployment to complete

    You can watch the deployment process in the text field as the gdeploy process runs using the generated configuration file.

    The window displays Successfully deployed gluster when complete.

    Click Continue to Hosted Engine Deployment and continue the deployment process with the instructions in Section 4.2, “Deploy the Hosted Engine on a single node using the Cockpit UI”.

Important

If deployment fails, click the Redeploy button. This returns you to the Review and edit configuration tab so that you can correct any issues in the generated configuration file before reattempting deployment.

It may be necessary to clean up previous deployment attempts before you try again. Follow the steps in Appendix A, Cleaning up automated Red Hat Gluster Storage deployment errors to clean up previous deployment attempts.

4.2. Deploy the Hosted Engine on a single node using the Cockpit UI

This section shows you how to deploy the Hosted Engine on a single node using the Cockpit UI. Following this process results in Red Hat Virtualization Manager running in a virtual machine on your node, and managing that virtual machine. It also configures a Default cluster consisting only of that node, and enables Red Hat Gluster Storage functionality and the virtual-host tuned performance profile for the cluster of one.

Prerequisites

  • This procedure assumes you have continued directly from the end of Configure Red Hat Gluster Storage for Hosted Engine using the Cockpit UI
  • Gather the information you need for Hosted Engine deployment

    Have the following information ready before you start the deployment process.

    • IP address for a pingable gateway to the virtualization host
    • IP address of the front-end management network
    • Fully-qualified domain name (FQDN) for the Hosted Engine virtual machine
    • MAC address that resolves to the static FQDN and IP address of the Hosted Engine

Procedure

  1. Specify virtual machine details

    The VM tab of the Hosted Engine Deployment window with example values entered in all fields.
    1. Enter the following details:

      Engine VM FQDN
      The fully qualified domain name to be used for the Hosted Engine virtual machine.
      MAC Address
      The MAC address associated with the FQDN to be used for the Hosted Engine virtual machine.
      Root password
      The root password to be used for the Hosted Engine virtual machine.
    2. Click Next.
  2. Specify virtualization management details

    1. Enter the password to be used by the admin account in Red Hat Virtualization Manager. You can also specify notification behaviour here.

      The Engine tab of the Hosted Engine Deployment window with example values entered in all fields.
    2. Click Next.
  3. Review virtual machine configuration

    1. Ensure that the details listed on this tab are correct. Click Back to correct any incorrect information.

      The Prepare VM tab of the Hosted Engine Deployment window with configuration details displayed for review.
    2. Click Prepare VM.

      The Prepare VM tab of the Hosted Engine Deployment window showing deployment in progress and various log messages.
    3. Wait for virtual machine preparation to complete.

      The Prepare VM tab of the Hosted Engine Deployment window showing, 'Execution completed successfully. Please proceed to the next step.'

      If preparation does not occur successfully, see Viewing Hosted Engine deployment errors.

    4. Click Next.
  4. Specify storage for the Hosted Engine virtual machine

    1. Specify the back-end address and location of the engine volume.

      The Storage tab of the Hosted Engine Deployment window with the engine volume specified as hosted engine virtual machine storage.
    2. Click Next.
  5. Finalize Hosted Engine deployment

    1. Review your deployment details and verify that they are correct.

      Note

      The responses you provided during configuration are saved to an answer file to help you reinstall the hosted engine if necessary. The answer file is created at /etc/ovirt-hosted-engine/answers.conf by default. This file should not be modified manually without assistance from Red Hat Support.

      The Finish tab of the Hosted Engine Deployment window with details of the Hosted Engine's storage displayed.
    2. Click Finish Deployment.
  6. Wait for deployment to complete

    This takes up to 30 minutes.

    The Finish tab of the Hosted Engine Deployment window showing deployment in progress and various log messages.

    The window displays the following when complete.

    The Finish tab of the Hosted Engine Deployment window showing Hosted Engine deployment complete.
    Important

    If deployment does not complete successfully, see Viewing Hosted Engine deployment errors.

    Click Close.

  7. Verify hosted engine deployment

    Browse to the engine user interface (for example, http://engine.example.com/ovirt-engine) and verify that you can log in using the administrative credentials you configured earlier. Click Dashboard and look for your hosts, storage domains, and virtual machines.

    The Red Hat Virtualization Manager Administration Portal dashboard after deployment.

Chapter 5. Configure Red Hat Gluster Storage as a Red Hat Virtualization storage domain

5.1. Create the logical network for gluster traffic

  1. Log in to the engine

    Browse to the engine user interface (for example, http://engine.example.com/ovirt-engine) and log in using the administrative credentials you configured in Section 4.2, “Deploy the Hosted Engine on a single node using the Cockpit UI”.

  2. Create a logical network for gluster traffic

    1. Click the Networks tab and then click New. The New Logical Network wizard appears.
    2. On the General tab of the wizard, provide a Name for the new logical network, and uncheck the VM Network checkbox.
    3. On the Cluster tab of the wizard, uncheck the Required checkbox.
    4. Click OK to create the new logical network.
  3. Enable the new logical network for gluster

    1. Click the Networks tab and select the new logical network.
    2. Click the Clusters subtab and then click Manage Network. The Manage Network dialogue appears.
    3. In the Manage Network dialogue, check the Migration Network and Gluster Network checkboxes.
    4. Click OK to save.
  4. Attach the gluster network to the host

    1. Click the Hosts tab and select the host.
    2. Click the Network Interfaces subtab and then click Setup Host Networks.
    3. Drag and drop the newly created network to the correct interface.
    4. Ensure that the Verify connectivity checkbox is checked.
    5. Ensure that the Save network configuration checkbox is checked.
    6. Click OK to save.
  5. Verify the health of the network

    Click the Hosts tab and select the host. Click the Network Interfaces subtab and check the state of the host’s network.

    If the network interface enters an "Out of sync" state or does not have an IPv4 Address, click the Management tab that corresponds to the host and click Refresh Capabilities.

5.2. Create storage domains

The hosted engine storage domain is imported automatically, but other storage domains must be added to be used.

  1. Click the Storage tab and then click New Domain.
  2. Select GlusterFS as the Storage Type and provide a Name for the domain.
  3. Check the Use managed gluster volume option and select the volume to use.
  4. Click OK to save.

Chapter 6. Verify your deployment

After deployment is complete, verify that your deployment has completed successfully.

  1. Browse to the engine user interface, for example, http://engine.example.com/ovirt-engine.

    Administration Console Login

    Login page for the Administration Console

  2. Log in using the administrative credentials added during hosted engine deployment.

    When login is successful, the Dashboard appears.

    Administration Console Dashboard

    Administration Console Dashboard

  3. Verify that your cluster is available.

    Administration Console Dashboard - Clusters

    The cluster widget with one cluster showing

  4. Verify that one host is available.

    The hosts widget with one host showing

    1. Click ComputeHosts.
    2. Verify that your host is listed with a Status of Up.
  5. Verify that all storage domains are available.

    1. Click StorageDomains.
    2. Verify that the Active icon is shown in the first column.

      Administration Console - Storage Domains

      Administration Console storage domain dashboard

Chapter 7. Managing Red Hat Gluster Storage volumes

Chapter 8. Next steps

Appendix A. Cleaning up automated Red Hat Gluster Storage deployment errors

If the deployment process fails after the physical volumes and volume groups are created, you need to undo that work to start the deployment from scratch. Follow this process to clean up a failed deployment so that you can try again.

Procedure

  1. Create a volume_cleanup.conf file based on the volume_cleanup.conf file in Appendix B, Example cleanup configuration files for gdeploy.
  2. Run gdeploy using the volume_cleanup.conf file.

    # gdeploy -c volume_cleanup.conf
  3. Create a lv_cleanup.conf file based on the lv_cleanup.conf file in Appendix B, Example cleanup configuration files for gdeploy.
  4. Run gdeploy using the lv_cleanup.conf file.

    # gdeploy -c lv_cleanup.conf
  5. Check mount configurations on all hosts

    Check the /etc/fstab file on all hosts, and remove any lines that correspond to XFS mounts of automatically created bricks.

Appendix B. Example cleanup configuration files for gdeploy

In the event that deployment fails, it is necessary to clean up the previous deployment attempts before retrying the deployment. The following two example files can be run with gdeploy to clean up previously failed deployment attempts so that deployment can be reattempted.

volume_cleanup.conf

[hosts]
<Gluster_Network_NodeA>
<Gluster_Network_NodeB>
<Gluster_Network_NodeC>

[volume1]
action=delete
volname=engine

[volume2]
action=delete
volname=vmstore

[volume3]
action=delete
volname=data

[peer]
action=detach

lv_cleanup.conf

[hosts]
<Gluster_Network_NodeA>
<Gluster_Network_NodeB>
<Gluster_Network_NodeC>

[backend-reset]
pvs=sdb,sdc
unmount=yes

Legal Notice

Copyright © 2018 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
All other trademarks are the property of their respective owners.