49 lines
7.0 KiB
Markdown
49 lines
7.0 KiB
Markdown
---
|
|
sidebar_label: 'Create an volumes'
|
|
sidebar_position: 1
|
|
---
|
|
|
|
<!-- truncate -->
|
|
import CodeBlock from '@site/src/components/CodeBloack';
|
|
|
|
# Create and manage volumes
|
|
|
|
<div className="text">Volumes are block storage devices that you attach to instances to enable persistent storage. 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.</div><br/>
|
|
|
|
<span className="head">Create a volume</span>
|
|
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project tab</span>, open the <span className="blue"> Volumes tab</span> and click <span className="blue">Volumes </span> category.</li><li>Click <span className="blue">Create Volume</span>.<br/>In the dialog box that opens, enter or select the following values.<br/><span className="blue">Volume Name</span>: Specify a name for the volume.<br/><span className="blue">Description</span>: Optionally, provide a brief description for the volume.<br/><span className="blue"> Volume Source</span>: Select one of the following options:<br/><br/>
|
|
<span style={{ marginLeft:'20px', marginTop:'20px'}}>• No source, empty volume: Creates an empty volume. An empty volume does not contain a file system or a partition table.<br/></span>
|
|
<span style={{ marginLeft:'20px', marginTop:'20px'}}>• Snapshot: If you choose this option, a new field for<span className="blue"> Use snapshot as a source</span> displays. You can select the snapshot from the list.<br/></span>
|
|
<span style={{ marginLeft:'20px', marginTop:'20px'}}>• Image: If you choose this option, a new field for <span className="blue"> Use image as a source</span> displays. You can select the image from the list.<br/></span>
|
|
<span style={{ marginLeft:'20px', marginTop:'20px'}}>• Volume: If you choose this option, a new field for <span className="blue">Use volume as a source</span> displays. You can select the volume from the list. Options to use a snapshot or a volume as the source for a volume are displayed only if there are existing snapshots or volumes.<br/> <br/></span> <span className="blue">Type</span>: Leave this field blank.<br/><span className="blue">Size (GB)</span>: The size of the volume in gibibytes (GiB).<br/><span className="blue">Availability Zone</span>: Select the Availability Zone from the list. By default, this value is set to the availability zone given by the cloud provider (for example, ***us-west or apac-south***). For some cases, it could be nova.</li><li>Click <span className="blue">Create Volume</span>.</li>The dashboard shows the volume on the <span className="blue">Volumes tab</span>.</ol></div>
|
|
|
|
<span className="head">Attach a volume to an instance</span>
|
|
|
|
<div className="text">After you create one or more volumes, you can attach them to instances. You can attach a volume to one instance at a time.</div>
|
|
|
|
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project tab</span>, open the <span className="blue">Volumes tab</span> and click <span className="blue"> Volumes </span>category.</li><li>Select the volume to add to an instance and click <span className="blue">Manage Attachments</span>.</li><li>In the <span className="blue">Manage Volume Attachments</span> dialog box, select an instance.</li><li>Enter the name of the device from which the volume is accessible by the instance.</li><br/><span className="note"><strong>Note</strong>: The actual device name might differ from the volume name because of hypervisor settings.</span><br/> <br/><li>Click <span className="blue">Attach Volume</span> <br/>The dashboard shows the instance to which the volume is now attached and the device name.<br/>
|
|
You can view the status of a volume in the Volumes tab of the dashboard. The volume is either Available or In-Use.<br/>
|
|
Now you can log in to the instance and mount, format, and use the disk.</li></ol></div>
|
|
|
|
<span className="head">Detach a volume from an instance</span>
|
|
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project tab</span>, open the <span className="blue">Volumes tab</span> and click the <span className="blue">Volumes </span>category.</li><li>Select the volume and click <span className="blue">Manage Attachments</span>.</li><li>Click <span className="blue">Detach Volume</span> and confirm your changes.<br/>A message indicates whether the action was successful.</li></ol></div>
|
|
|
|
<span className="head">Create a snapshot from a volume</span>
|
|
|
|
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left</li><li>On the <span className="blue">Project tab</span>, open the <span className="blue">Volumes tab</span> and click <span className="blue">Volumes</span> category.</li><li>Select a volume from which to create a snapshot.</li><li>In the<span className="blue"> Actions</span> column, click <span className="blue"> Create Snapshot</span>.</li><li>In the dialog box that opens, enter a snapshot name and a brief description.</li><li>Confirm your changes.<br/>The dashboard shows the new volume snapshot in Volume Snapshots tab.</li></ol></div>
|
|
|
|
|
|
<span className="head">Edit a volume</span>
|
|
|
|
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left</li><li>On the <span className="blue">Project tab</span>, open the <span className="blue">Volumes tab</span> and click <span className="blue">Volumes </span>category.</li><li>Select the volume that you want to edit.</li><li>In the <span className="blue">Actions</span> column, click <span className="blue">Edit Volume</span>.</li><li>In the <span className="blue">Edit Volume</span> dialog box, update the name and description of the volume.</li><li>Click <span className="blue">Edit Volume</span>.</li></ol></div>
|
|
|
|
<div className="note"><strong>Note</strong>:You can extend a volume by using the Extend Volume option available in the More dropdown list and entering the new value for volume size.</div><br/>
|
|
|
|
<span className="head">Delete a volume</span>
|
|
<div className="text">When you delete an instance, the data in its attached volumes is not deleted.</div>
|
|
|
|
<div className="text"><ol><li>Log in to the dashboar</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project tab</span>, open the <span className="blue">Volumes tab</span> and click <span className="blue">Volumes</span>category.</li><li>Select the check boxes for the volumes that you want to delete.</li><li>Click<span className="blue"> Delete Volumes</span> and confirm your choice.<br/>A message indicates whether the action was successful.</li></ol></div>
|
|
|
|
|
|
|