From Documentation
Revision as of 10:24, 27 June 2017 by Edward (Talk | contribs) (Attach a volume to an instance)

Jump to: navigation, search

About

This page introduces and provides details about the 'OpenStack' cloud computing platform.

Sources

See https://docs.openstack.org/

Instances

Instances are virtual machines that run inside the cloud.

Volumes

A volume is a detachable block storage device, similar to a USB hard drive. You can attach a volume to only one instance. On the volumes page, you can click on a volume name to see more information on that volume. You can have up to 10 volumes with a total size of up to 400GB.

Create a volume

  1. Log in to the dashboard (https://cloud.sharcnet.ca/dashboard).
  2. Oopen the Project tab, then open the Compute tab, and click Volumes category.
  3. Click Create Volume.
  4. In the dialog box that opens, enter or select the following values.
  5. Volume Name: Specify a name for the volume.
  6. Description: Optionally, provide a brief description for the volume.
  7. Volume Source: Select one of the following options:
    1. No source, empty volume: Creates an empty volume. An empty volume does not contain a file system or a partition table.
    2. Snapshot: If you choose this option, a new field for Use snapshot as a source displays. You can select the snapshot from the list.
    3. Image: If you choose this option, a new field for Use image as a source displays. You can select the image from the list.
    4. Volume: If you choose this option, a new field for Use volume as a source 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.
    5. Type: Leave this field blank.
  8. Size (GB): The size of the volume in gibibytes (GiB).
  9. Availability Zone: The only option available is Nova.
  10. Click Create Volume.

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.

  1. Log in to the dashboard (https://cloud.sharcnet.ca/dashboard).
  2. Open the Project tab, then open the Compute tab, and click Volumes category (show me where).
  3. Select the volume to add to an instance and click Manage Attachments from the right hand menu (show me where).
  4. In the Manage Volume Attachments dialog box, select an instance.
  5. Enter the name of the device from which the volume is accessible by the instance. The actual device name might differ from the volume name because of hypervisor settings.
  6. Click Attach Volume. The dashboard shows the instance to which the volume is now attached and the device name.

Now you can log in to the instance and mount, format, and use the disk.

Detach a volume from an instance

  1. Log in to the dashboard.
  2. Select the appropriate project from the drop down menu at the top left.
  3. On the Project tab, open the Compute tab and click the Volumes category.
  4. Select the volume and click Manage Attachments.
  5. Click Detach Volume and confirm your changes.
  6. 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 drop down menu at the top left. On the Project tab, open the Compute tab and click Volumes category. Select a volume from which to create a snapshot. In the Actions column, click Create Snapshot. In the dialog box that opens, enter a snapshot name and a brief description. Confirm your changes. 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 drop down menu at the top left. On the Project tab, open the Compute tab and click Volumes category. Select the volume that you want to edit. In the Actions column, click Edit Volume. In the Edit Volume dialog box, update the name and description of the volume. Click Edit Volume.

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.

Delete a volume

  1. When you delete an instance, the data in its attached volumes is not deleted.
  2. Log in to the dashboard.
  3. Select the appropriate project from the drop down menu at the top left.
  4. On the Project tab, open the Compute tab and click Volumes category.
  5. Select the check boxes for the volumes that you want to delete.
  6. Click Delete Volumes and confirm your choice.
  7. A message indicates whether the action was successful.

Images

A virtual machine image is a single file containing a virtual disk that has a bootable operating system installed on it. Images are used to create virtual machine instances within the cloud.

Access & Security

This tab on the dashboard allows you to add ssh key-pairs, and setup firewall rules.