add identity and compute guide Change-Id: Ib83a43e9f48a672a47ccde2b29cc0700dfc2490a
5.6 KiB
Create and manage volumes (Storage tab)
A volume is a detachable block storage device similar to a USB hard drive. You can attach a volume to a running instance or detach a volume and attach it to another instance at any time. You can also create a snapshot from or delete a volume. Only administrative users can create volume types.
OpenStack Block Storage enables you to add extra block-level storage to your OpenStack Compute instances. For detailed information, refer to the OpenStack Cinder Guide.
Create a volume
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Console
page, open theStorage
tab and clickVolumes
category.Click
Create Volume
.On the
Create Volume
page, specify the following values.Available Zone
: Select a availability zone for the volume.Data Source Type
: Select one of the following options:- Blank Volume: If you choose this option, a new field for
Volume Type
displays. You can select the volume type from the list. You can create an empty volume. An empty volume does not contain a file system or a partition table. - Image: If you choose this option, a new field for
Operating System
displays. You can select the image from the list. - Volume Snapshot: If you choose this option, a new field for
Volume Snapshot
displays. You can select the snapshot from the list.
Volume Type
: Specify a volume type to choose an appropriate storage back end.Capacity (GiB)
: Specify the size of the volume, in gibibytes (GiB).Name
: Specify a name to identify the volume.- Blank Volume: If you choose this option, a new field for
Click
Confirm
.You have successfully created the volume. You can view the volume from the
Volumes
tab.
Attach a volume to an instance
After you create one or more volumes, you can attach them to instances. You can attach a volume to one instance at a time.
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Console
page, open theStorage
tab and clickVolumes
category.Select the volume to add to an instance.
In the
Action
column, selectInstance Related
and clickAttach
.In the
Attach
dialog box, select an instance.Click
OK
.The dashboard shows the instance to which the volume is now attached and the device name.
You can view the status of a volume in the Volumes tab of the dashboard. The volume is either Available or In-Use.
Now you can log in to the instance and mount, format, and use the disk.
Detach a volume from an instance
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Console
page, open theStorage
tab and clickVolumes
category.In the
Action
column of the volume, selectInstance Related
and clickDetach
.In the
Detach
dialog box, select an instance.Click
OK
.A message indicates whether the action was successful.
Create a snapshot from a volume
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Console
page, open theStorage
tab and clickVolumes
category.Select a volume from which to create a snapshot.
In the
Action
column, selectData Protection
and clickCreate Snapshot
.In the
Create Volume Snapshot
dialog box, enter a snapshot name.Click
OK
.The dashboard shows the new volume snapshot in
Volume Snapshots
tab.
Edit a volume
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Console
page, open theStorage
tab and clickVolumes
category.In the
Action
column of the volume, clickEdit
.In the
Edit
dialog box, update the name and description of the volume.Click
OK
.Note
You can extend a volume by using the
Extend Volume
option available in theMore
dropdown list and entering the new value for volume size.
Delete a volume
When you delete an instance, the data in its attached volumes is not deleted.
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Console
page, open theStorage
tab and clickVolumes
category.Select the check boxes for the volumes that you want to delete.
Click
Delete
and confirm your choice.Note
If you select the
cascading deletion
check box, when the volume has snapshots, the associated snapshot will be automatically deleted first, and then the volume will be deleted, thereby improving the success rate of deleting the volume.A message indicates whether the action was successful.