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
Consolepage, open theStoragetab and clickVolumescategory.Click
Create Volume.On the
Create Volumepage, 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 Typedisplays. 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 Systemdisplays. You can select the image from the list. - Volume Snapshot: If you choose this option, a new field for
Volume Snapshotdisplays. 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
Volumestab.
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
Consolepage, open theStoragetab and clickVolumescategory.Select the volume to add to an instance.
In the
Actioncolumn, selectInstance Relatedand clickAttach.In the
Attachdialog 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
Consolepage, open theStoragetab and clickVolumescategory.In the
Actioncolumn of the volume, selectInstance Relatedand clickDetach.In the
Detachdialog 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
Consolepage, open theStoragetab and clickVolumescategory.Select a volume from which to create a snapshot.
In the
Actioncolumn, selectData Protectionand clickCreate Snapshot.In the
Create Volume Snapshotdialog box, enter a snapshot name.Click
OK.The dashboard shows the new volume snapshot in
Volume Snapshotstab.
Edit a volume
Log in to the dashboard.
Select the appropriate project from the Switch Project menu at the top left.
On the
Consolepage, open theStoragetab and clickVolumescategory.In the
Actioncolumn of the volume, clickEdit.In the
Editdialog box, update the name and description of the volume.Click
OK.Note
You can extend a volume by using the
Extend Volumeoption available in theMoredropdown 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
Consolepage, open theStoragetab and clickVolumescategory.Select the check boxes for the volumes that you want to delete.
Click
Deleteand confirm your choice.Note
If you select the
cascading deletioncheck 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.