4.2. Configuring Virtual Machines on Red Hat Gluster Storage volumes using the Red Hat Virtualization Manager The following procedure describes how to add a Red Hat Gluster Storage server for virtualization using Red Hat Virtualization Manager. Note It is recommended that you use a separate data center for Red Hat Gluster Storage nodes. Procedure 4.2. To Add a Red Hat Gluster Storage Server for Virtualization Using Red Hat Virtualization Manager Create a data center: Select the Data Centers resource tab to list all data centers. Click New to open the New Data Center window. Figure 4.1. New Data Center Window Enter the Name and Description of the data center. Select the storage Type as Shared from the drop-down menu. Select the Quota Mode as Disabled . Click OK . The new data center is Uninitialized until you configure the cluster, host, and storage settings. Create a cluster: Select the Clusters resource tab to list all clusters. Click New to open the New Cluster window. Figure 4.2. New Cluster Window Select a Data Center for the cluster from the drop-down menu. Enter a Name and Description for the cluster. Select the CPU Name and Compatibility Version from the drop-down menus. Check Enable Virt Service . Click OK . Add hosts: Select the Hosts resource tab to view a list of all hosts in the system. Click New to open the New Host window. Figure 4.3. New Host Window Important A Red Hat Enterprise Linux hypervisor and Red Hat Virtualization hypervisor on a single VDSM cluster accessing the same virtual machine image store is not supported. Select the Data Center and Host Cluster for the new host from the drop-down menus. Enter the Name , Address , and Root Password of the new hypervisor host. Check Automatically configure host firewall if required. Click OK . The new host appears in the list of hypervisor hosts with the status Installing . After the host is activated, the status changes to Up automatically. Create and configure volumes on the Red Hat Gluster Storage cluster using the command line interface. For information on creating and configuring volumes, see Section 4.1, "Configuring Volumes Using the Command Line Interface" and Red Hat Gluster Storage Volumes in the Red Hat Gluster Storage Administration Guide : https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.5/html/administration_guide/chap-red_hat_storage_volumes . Add a storage domain using Red Hat Virtualization Manager: Select the Storage resource tab to list existing storage domains. Click New Domain to open the New Domain window. Figure 4.4. New Domain Window Enter a Name for the storage domain. Select a shared Data Center to associate with the storage domain. Set the Domain Function to Data and the Storage Type to GlusterFS . Select a host from the Host to Use drop-down menu. Check the Use managed gluster volume checkbox and select the appropriate volume from the Gluster dropdown menu. Note This dropdown menu is only populated with volumes whose nodes are managed by Red Hat Virtualization Manager. See Chapter 5, Managing Red Hat Gluster Storage Servers and Volumes using Red Hat Virtualization Manager for instructions on how to set up management of your Red Hat Gluster Storage nodes by Red Hat Virtualization Manager. Enter the applicable Red Hat Gluster Storage native client Mount Options . Enter multiple mount options separated by commas. For more information on native client mount options, see Creating Access to Volumes in the Red Hat Gluster Storage Administration Guide : https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.5/html/administration_guide/chap-accessing_data_-_setting_up_clients . Note that only the native client is supported when integrating Red Hat Gluster Storage and Red Hat Virtualization. Click OK . You can now create virtual machines using Red Hat Gluster Storage as a storage domain. For more information on creating virtual machines, see the Red Hat Virtualization Virtual Machine Management Guide : https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/virtual_machine_management_guide/ . Note To prevent the risk of split brain incidents on Red Hat Gluster Storage domains, the use of shareable disks on Red Hat Gluster Storage domains is disabled. Attempting to create a shareable disk brings up a warning in the administration portal which recommends the use of Quorum on the Red Hat Gluster Storage server to ensure data integrity. This policy is not enforced on Red Hat Gluster Storage domains created on a POSIX domain with GlusterFS specified as the virtual file system type.

Commands: