Chapter 10. Volumes
A volume is a block storage device that you can attach to or detach from an instance to manage the storage available to that instance. Volumes are managed through storage managers, which are added automatically to Red Hat CloudForms when the corresponding provider is added.
10.1. Amazon Elastic Block Store Manager Volumes
This section outlines the actions that you can perform on Amazon Elastic Block Store manager volumes.
10.1.1. Creating Volumes
You can create and attach volumes to your storage manager.
To create a volume:
- Navigate to → → .
-
Click
(Configuration), then click
(Add a new Cloud Volume).
- Select the Amazon Elastic Block Store manager from the Storage Manager list.
- Select an availability zone from the Availability Zone list.
- Enter a Volume Name.
Select the type of the volume from the Cloud Volume Type list.
NoteSee Amazon EBS Volume Types for more information on volume types.
- Enter the size of the volume in gigabytes (GB).
- Select whether the volume should be encrypted using the Encryption toggle.
- Click Add.
The volume appears in the list of volumes after it has been provisioned.
10.1.2. Creating a Snapshot of a Volume
You can create a snapshot of a volume to preserve the state of the volume at a specific point in time. The snapshot can be used to create a duplicate of the volume.
To create a snapshot of a volume:
- Navigate to → → .
- Click the volume to snapshot to open the volume’s summary page.
-
Click
(Configuration), then click
(Create a Snapshot of this Cloud Volume).
- Enter a name for the snapshot in Snapshot Name.
- Click Save.
Click Cloud Volume Snapshots on the summary page of a volume to view the snapshots for that volume.
10.1.3. Attaching a Volume to an Instance
To attach a volume to an instance:
- Navigate to → → .
- Select the volume to attach.
-
Click
(Configuration), then click
(Attach selected Cloud Volume to an Instance) to open the Attach Cloud Volume screen.
- Select an instance from the list.
- Optionally, enter a Device Mountpoint.
- Click Attach.
10.1.4. Detaching a Volume from an Instance
To detach a volume from an instance:
- Navigate to → → .
- Select the volume to detach.
-
Click
(Configuration), then click
(Detach selected Cloud Volume from an Instance) to open the Detach Cloud Volume screen.
- Select an instance from the list.
- Click Detach.
10.1.5. Editing a Volume
You can edit several properties of existing volumes.
To edit a volume:
- Navigate to → → .
- Select the volume to edit to open its summary page.
-
Click
(Configuration), then click
(Edit this Cloud Volume).
- Enter a new Volume Name.
Select a new volume type from the Cloud Volume Type list.
NoteSee Amazon EBS Volume Types for more information on each of the volume types.
- Enter a new size in gigabytes.
- Click Save.
10.1.6. Deleting a Volume
To delete a volume from a storage manager:
- Navigate to → → .
- Select the volume to delete.
-
Click
(Configuration), then click
(Delete selected Cloud Volumes).
10.2. OpenStack Block Storage Manager Volumes
This section outlines the actions that you can perform on OpenStack Block Storage manager volumes.
10.2.1. Creating Volumes
You can create and attach volumes to your storage manager.
To create a volume:
After creating a volume, only the volume name can be edited.
- Navigate to → → .
-
Click
(Configuration), then click
(Add a new Cloud Volume).
- Select the OpenStack Block Storage manager from the Storage Manager list.
- Enter a Volume Name.
- Enter the size of the volume in gigabytes (GB).
- Under Placement, select the cloud tenant to attach it to.
- Click Add.
The volume appears in the list of volumes after it has been provisioned.
10.2.2. Creating a Backup of a Volume
You can create a backup of a volume to protect against data loss, and restore it in the future.
For OpenStack Block Storage managers, the openstack-cinder-backup
service must be enabled on the OpenStack Block Storage manager to create a volume backup.
To create a backup of a volume:
- Navigate to → → .
- Click the volume you want to back up to open the volume’s summary page.
-
Click
(Configuration), then click
(Create a Backup of this Cloud Volume).
- Enter a name for the backup in Backup Name.
(Optional) Select Incremental? to take an incremental backup of the volume instead of a full backup.
NoteYou can take an incremental backup of a volume if you have at least one existing full backup of the volume. An incremental volume saves resources by capturing only changes made to the volume since its last backup. See Create an Incremental Volume Backup in the Storage Guide for more information.
(Optional) Select Force? to allow backup of a volume attached to an instance.
NoteSelecting the Force option will back up the volume whether its status is available or in-use. Backing up an in-use volume ensures data is crash-consistent.
- Click Save.
View a volume’s backups by clicking Cloud Volume Backups on the volume’s summary page.
See Back Up and Restore a Volume in the Storage Guide for more information about backups.
10.2.3. Restoring a Volume from a Backup
In case of data loss, you can restore a volume from a backup with the following steps:
- Navigate to → → .
- Click the volume whose backup you want to restore. This will open the volume’s summary page.
-
Click
(Configuration), then click
(Restore from a Backup of this Cloud Volume).
- Select the volume to restore from in the Cloud Volume Backup list.
- Click Save.
10.2.4. Restoring a Cloud Volume from a Backup
In case of data loss, you can restore from a cloud volume backup with the following steps:
- Navigate to → → .
- Select a Cloud Volume Backup to restore.
-
Click
(Configuration), then click
(Restore backup to Cloud Volume).
- Select the Volume to restore from the backup.
- Click Save.
10.2.5. Deleting a Cloud Volume Backup
Delete unnecessary cloud volume backups through the following steps:
- Navigate to → → .
- Select the Cloud Volume Backups to delete.
-
Click
(Configuration), then click
(Delete selected Backups).
- Click OK to confirm your choice.
10.2.6. Creating a Snapshot of a Volume
You can create a snapshot of a volume to preserve the state of the volume at a specific point in time. The snapshot can be used to create a duplicate of the volume.
To create a snapshot of a volume:
- Navigate to → → .
- Click the volume to snapshot to open the volume’s summary page.
-
Click
(Configuration), then click
(Create a Snapshot of this Cloud Volume).
- Enter a name for the snapshot in Snapshot Name.
- Click Save.
Click Cloud Volume Snapshots on the summary page of a volume to view the snapshots for that volume.
See Create, Use, or Delete Volume Snapshots in the Storage Guide for more information about snapshots.
10.2.7. Attaching a Volume to an Instance
To attach a volume to an instance:
- Navigate to → → .
- Select the volume to attach.
-
Click
(Configuration), then click
(Attach selected Cloud Volume to an Instance) to open the Attach Cloud Volume screen.
- Select an instance from the list.
- Optionally, enter a Device Mountpoint.
- Click Attach.
10.2.8. Detaching a Volume from an Instance
To detach a volume from an instance:
- Navigate to → → .
- Select the volume to detach.
-
Click
(Configuration), then click
(Detach selected Cloud Volume from an Instance) to open the Detach Cloud Volume screen.
- Select an instance from the list.
- Click Detach.
10.2.9. Editing a Volume
Only the volume name can be edited on an existing volume.
To edit a volume’s name:
- Navigate to → → .
- Select the volume to edit to open its summary page.
-
Click
(Configuration), then click
(Edit this Cloud Volume).
- Enter the new Volume Name.
- Click Save.
10.2.10. Deleting a Volume
To delete a volume from a storage manager:
- Navigate to → → .
- Select the volume to delete.
-
Click
(Configuration), then click
(Delete selected Cloud Volumes).