Manage storage pools

A storage pool is used to store storage volume files. You can configure multiple storage pools for a host.

After a host is added to CVM, it has two local file directories named defaultpool and isopool by default. Storage pool defaultpool stores disk image files of VMs. Storage pool isopool stores castools.iso and Virtio driver files of OSs. Operators can add storage pools of other types as needed.

Storage pool type

A host supports the following types of storage pools:

Storage pool access modes

VMs access storage pools through the following objects:

For LVM logical storage volume, iSCSI network storage, FC network storage, and RBD, VMs use their storage resources as block devices.

For local file directory, shared file system, and network file system, VMs use their storage resources as files.

For Windows system shared directory, VMs can perform only read operations. As a best practice, use storage pools of this type to store OS installation images. VMs can mount the ISO installation files in the storage pools to install an OS instead of copying the files to the local storage.

Restrictions and guidelines

iSCSI network storage and an iSCSI shared file system cannot share the LUN of an iSCSI storage device.

To ensure the availability of the storage pools, make sure user mapping mode configured on the NFS server is no_root_squash and the system has the root access.

The FC storage devices of some vendors do not support automatic LUN scanning. If you cannot find any LUNs for an FC SAN shared file system after adding it on a host, you must reboot the host.

After you suspend a storage pool of the FC network storage or local file directory type, VMs using the storage pool can still start correctly.

When you add a storage pool on a host, for the storage pool to support automatic VM migration, make sure the following requirements are met:

Hosts or clusters in the security zone cannot use the same shared storage as hosts or clusters not in the security zone.

The I/O throughput, IOPS, and disk I/O delay areas on the path details page display information about only active paths.

Only shared file system storage pools can be used as storage media.

If a data pool has been specified as an RBD storage pool, storage volumes in the data pool cannot be configured as iSCSI LUNs.

The available capacity of a formatted shared file system is 5 to 6 GB less than the capacity of the corresponding block device, because the shared file system occupies some space.

Add a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click Add.

  5. Configure the parameters as described in "Parameters."

  6. Click OK.

Edit the alias of a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for a storage pool, and then select Edit Alias.

  5. Enter an alias, and then click OK.

Start a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click Start in the Actions column for the target storage pool.

  5. In the dialog box that opens, click OK.

Suspend a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click Suspend in the Actions column for the target shared storage pool.

  5. In the dialog box that opens, click OK.

Configure a storage pool as a storage medium

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for a storage pool, and then select Set as Storage Medium.

  5. In the dialog box that opens, click OK.

Remove the storage medium role of a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for a storage pool, and then select Remove Storage Medium Role.

  5. In the dialog box that opens, click OK.

Refresh a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click Refresh in the Actions column for a storage pool.

Display detailed information about a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for a storage pool, and then select View Storage Pool Details.

Delete a storage pool

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for the target shared storage pool, and then select Delete.

  5. In the dialog box that opens, click OK.

Display path details

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for a shared file system storage pool, and then select Path Details.

Add multipath IPs for a storage pool

To enhance the redundancy and load balancing capacity of an iSCSI shared storage system, perform this task to add multipath IP addresses for that system. When the system fails or load balancing is not even, the system can still operate correctly.

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the Storage tab.

  4. Click More in the Actions column for the target storage pool, and then select Add IP Address.

  5. In the dialog box that opens, select storage IPs as needed.

Parameters

Add a logical storage volume:

Add iSCSI network storage:

Add FC network storage:

Add a local file directory:

Add an NFS:

Add a shared file system:

Add a Windows shared directory:

Display storage pools and storage pool details:

Display path details

Add multipath IPs for a storage pool