Product SiteDocumentation Site

3.5. Configure Storage

Configure Storage
Figure 3.11. Configure Storage

After configuring your logical networks, you need to add storage to your data center.
Red Hat Enterprise Virtualization uses a centralized shared storage system for virtual machine disk images and snapshots. Storage can be implemented using Network File System (NFS), Internet Small Computer System Interface (iSCSI) or Fibre Channel Protocol (FCP). Storage definition, type and function, are encapsulated in a logical entity called a Storage Domain. Multiple storage domains are supported. For more information on storage types refer to the Red Hat Enterprise Linux Storage Administration Guide.
For this guide you will use two types of storage domains. The first is an NFS share for ISO images of installation media. You have already created this ISO domain during the Red Hat Enterprise Virtualization Manager installation.
The second storage domain will be used to hold virtual machine disk images. For this domain, you need at least one of the supported storage types. You have already set a default storage type during installation as described in Section 2.1, “Install Red Hat Enterprise Virtualization Manager”. Ensure that you use the same type when creating your data domain.
Select your next step by checking the storage type you should use:
  1. Navigate to the Tree pane and click the Expand All button. Under System, click Default. On the results list, the Default data center displays.
  2. On the results list, the Storage Type column displays the type you should add.
  3. Now that you have verified the storage type, create the storage domain:

Note

This document provides instructions to create a single storage domain, which is automatically attached and activated in the selected data center. If you wish to create additional storage domains within one data center, see the Red Hat Enterprise Virtualization Administration Guide for instructions on activating storage domains.

3.5.1. Create an NFS Data Domain

Because you have selected NFS as your default storage type during the Manager installation, you will now create an NFS storage domain. An NFS type storage domain is a mounted NFS share that is attached to a data center and used to provide storage for virtual machine disk images.

Important

If you are using NFS storage, you must first create and export the directories to be used as storage domains from the NFS server. These directories must have their numerical user and group ownership set to 36:36 on the NFS server, to correspond to the vdsm user and kvm group respectively on the Red Hat Enterprise Virtualization Manager server. In addition, these directories must be exported with the read write options (rw). For more information see the Red Hat Enterprise Virtualization Installation Guide.
To add NFS storage:
  1. Navigate to the Tree pane and click the Expand All button. Under System, select the Default data center and click on Storage. The available storage domains display on the results list. Click New Domain.
  2. The New Storage dialog box displays.
    Add New Storage
    Figure 3.12. Add New Storage

    Configure the following options:
    1. Name: Enter a suitably descriptive name.
    2. Data Center: The Default data center is already pre-selected.
    3. Domain Function / Storage Type: In the drop down menu, select DataNFS. The storage domain types not compatible with the Default data center are grayed out. After you select your domain type, the Export Path field appears.
    4. Use Host: Select any of the hosts from the drop down menu. Only hosts which belong in the pre-selected data center will display in this list.
    5. Export path: Enter the IP address or a resolvable hostname of the chosen host. The export path should be in the format of 192.168.0.10:/data or domain.example.com:/data
  3. Click OK. The new NFS data domain displays on the Storage tab. It will remain with a Locked status while it is being prepared for use. When ready, it is automatically attached to the data center.
You have created an NFS storage domain. Now, you need to attach an ISO domain to the data center and upload installation images so you can use them to create virtual machines. Proceed to Section 3.5.4, “Attach and Populate ISO domain”.