Creating a Volume

You create a volume by selecting the Volume entry in the dashboard's Create menu, which displays the Create Volume view.

The Volume item in the 'Create' menu
The Volume item in the 'Create' menu
The Create Volume view
The Create Volume view

In this view you must enter a unique name for the new volume and the desired size (in Gigabytes), then click Create. The volume will be created quickly, after which the view changes to display a list of volumes in the allocation that were created by you (note that a filter was automatically added to the view to cause this).

The Volumes list view
The Volumes list view

There are buttons in the entry for your new instance that allow you to delete it (trash can icon) or attach it to an instance. If you click on the name of the instance you will be taken a view of the instance details, where there are also buttons for deleting or attaching the volume.

An unattached volume's details view
An unattached volume's details view
Attaching a Volume

In addition to the two locations just shown, you can attach a volume to an instance from a third location: the Volumes panel of the instance details view. Clicking any of these Attachbuttons takes you to the Attach a Volume view:

An allocation's Volumes summary with no volumes present
An allocation's Volumes summary with no volumes present
The Attach a Volume view for selecting either the volume or instance
The Attach a Volume view for selecting either the volume or instance

In this view, a selection will already have been made in one of the dropdowns (for the instance or for the volume). You must make a selection in the other dropdown and then click Attach to attach the volume to the instance. When the attaching is complete, you are shown a confirmation view with some information:

The Volume Attached confirmation that states the volume's mount location in the instance
The Volume Attached confirmation that states the volume's mount location in the instance
Using the Attached Volume in Your Instance

In the confirmation information above, take note of the path where the attached volume has been mounted for you. In this example it is mounted at /media/volume/sdb. When working on your instance, use this path to access the volume. Following from the demonstration images above, we have attached a volume to an Ubuntu instance, and when logged on to that instance we issue commands like the following:

A screenshot from a Web Shell highlighting some commands that explore an attached volume
A screenshot from a Web Shell highlighting some commands that explore an attached volume

The command df -H -t ext4, shows a human readable report of all file system disks that are formatted as type ext4, which is the format used by default for Jetstream2 volumes. This instance has two such volumes: /dev/sda1 is the root volume and /dev/sdb is the attached volume. The entry for the attached volume also lists its approximate size (shown here as 11G) and the file system location where it is mounted, which matches what we were told in the confirmation information.

If we list the contents of /media/volume/sdb, we see that it contains a lost+found folder and nothing else. We can now work with our data in this folder for as long as the volume is attached to this instance.

 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement