From CAC Documentation wiki
Revision as of 19:29, 7 February 2019 by Pzv2 (talk | contribs)
Jump to navigation Jump to search

Create and Attach a Volume

Volume creation is useful or attaching a data volume or a volume with users' home directories to an instance, as it is often good to separate the concerns of an operating system and user data. This makes it relatively easy to switch operating systems and maintain the same data, and to archive the more important parts of the project (the data) if needed.


  1. Go to the "Volumes" tab in the OpenStack Web Interface
  2. Click the "Create Volume" button
  3. Enter a name and size
  4. Click "Create Volume"


  1. Go to the "Volumes" tab in the OpenStack Web Interface
  2. On the Actions dropdown menu for the volume you want to attach, select "Manage Attachments"
  3. Select the instance you wish to attach to and click "Attach Volume"
    • Note that the device name specified is usually not important and not always adhered to

Once You Have Attached The Volume

  • For Linux:
    1. Login to your instance
    2. Run lsblk to see which /dev/vdX is the likely candidate (for some character 'X')
    3. Follow the instructions for initializing and mounting your volume (replace vdb with the vdX discovered in the previous step)
  • For Windows - information coming soon


Snapshots of volumes (and of instances, in which case the volume is implicitly the root volume of the instance) create a state save of the existing volume, so you can easily get back to a certain state in the future. This is most useful for OS volumes to create safe checkpoints of working operating system configuration states. It may be less useful for larger data volumes; a more efficient solution might be to use ZFS snapshots on Linux instances.

Snapshots can be created from the Actions dropdown menu. Note that if you are creating a snapshot of a root volume for an instance, it should not be running. You should first stop the instance, and then take the snapshot.