Product SiteDocumentation Site

6. Configure Storage

After configuring your logical networks, you need to add storage to your data center. This storage resource does not have to be of the same type as the first one you configured during Lab 1 - Install and Configure Basic Setup. It just needs to match the data center type that you specified in Section 2, “Create a New Data Center”.
As before, you will attach two types of storage domains to your data center - an ISO domain for installation media images, and a data domain for virtual machine disk images. When you created your new data center, you have already set the default storage type. 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. Click FinanceDataCenter. On the results list, FinanceDataCenter displays.
  2. On the data center entry, the Storage Type column displays the type you should add.
  3. Now that you have verified the storage type, create the storage domain:

6.1. Create an NFS Data Domain

Because you have selected NFS as your default storage when you created a data center, you will now create an NFS storage domain.

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. On the side pane, select the Tree tab. On System, click the + icon to display the available data centers.
  2. Double click on the FinanceDataCenter data center and click on Storage. The available storage domains display on the results list. Click New Domain.
  3. The New Storage dialog box displays.
    Add NFS Storage
    Figure 67. Add NFS Storage

    Configure the following options:
    1. Name: Enter NFS-share.
    2. Data Center: The FinanceDataCenter data center is already pre-selected.
    3. Domain Function / Storage Type: The Data/ NFS option is already pre-selected because during installation you set NFS as your data center's default storage type. The storage domain types which are not compatible with the Data Center will not be available.
    4. Use Host: Select any of the hosts from the drop down menu. Only hosts which belong in this 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:/Images/NFS-Share or domain.example.com:/Images/NFS-Share.
  4. Click OK. The new NFS-share 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 7, “Configure ISO domain”.