Bookmark this page

Guided Exercise: Creating and Managing Storage Domains

In this exercise, you will create a data storage domain using iSCSI, and make it available to the data center.

Outcomes

You should be able to create a new data storage domain for the development data center using iSCSI.

This exercise uses the development data center, the clusterone cluster, and the hosta and hostb hosts. The iSCSI traffic uses the storage-net logical network. The host, utility.lab.example.com, has been configured as an iSCSI target.

Log in as the student user on workstation and run the lab storage-domains start command. This command ensures that the users, hosts, clusters, data centers, and networks of the Red Hat Virtualization environment are configured appropriately.

[student@workstation ~]$ lab storage-domains start
  1. Create an iSCSI-based storage domain called iscsi-data to function as the data domain in the development data center. Use a LUN from the iSCSI target on the 172.24.0.8 address of utility. The 172.24.0.8 IP address belongs to the storage network.

    1. Using the https://rhvm.lab.example.com URL, log in to the Administration Portal of the Red Hat Virtualization Manager. The user is admin, the profile is internal. Use redhat as the password.

    2. In the web interface, click Storage on the menu, and then click Domains.

    3. Click New Domain.

    4. In the New Domain window, set the values of the fields according to the following table.

      FieldValue
      Data Centerdevelopment
      Domain FunctionData
      Storage TypeiSCSI
      Hosts to Usehostb.lab.example.com
      Nameiscsi-data
    5. In the Discover Targets section, specify 172.24.0.8 in the Address field. Set the Port field to 3260, if not already set. Click Discover to display the available iSCSI target LUNs.

      The utility system uses the 172.24.0.8 IP address in the storage network.

    6. Verify that the Targets > LUNs section includes the iqn.2019-07.com.example.lab:utility target name. Click the right arrow button for the iqn.2019-07.com.example.lab:utility target name to log in to it.

    7. Click + next to the iqn.2019-07.com.example.lab:utility target name to expand and display the list of available iSCSI target LUNs. Click Add for the displayed iSCSI target LUN. Click OK to create the iscsi-data storage domain.

    8. From the Storage Domains page under Storage, verify that the iscsi-data storage domain exists with an Active status in the Cross Data Center Status column. It may take a couple of minutes for the iscsi-data storage domain status to transition from Locked to Active.

  2. Sign out as admin from the Administration Portal.

Finish

On workstation, run the lab storage-domains finish script to complete this exercise.

[student@workstation ~]$ lab storage-domains finish

This concludes the guided exercise.

Revision: rh318-4.3-c05018e