CADES → User Documentation → CADES Cloud User Guide → Manage Your VM Instances → Add a Volume to a VM Instance
Add a Volume to an Existing VM Instance
- Navigate to your Volumes List at https://cloud.cades.ornl.gov/dashboard/project/volumes/.
- At the top right click on
- Fill in the following fields:
- Name :
- Description :
optional and can be left blank
- Source :
No source, empty volume (this is default)
- Type :
Netapp (this is default)
- Size :
Size you need up to your quota, which is displayed on the right
- Availability Zone:
nova (this is default)
- Once created use the drop down ( ▾ ) on the right of the volume you just created and choose
- Select the instance from the drop down to which you would like to attach your new volume.
- Next, the volume will have to be partitioned, formatted, and mounted. To begin, SSH into your VM.
- Check that the volume was assigned by listing the available disks: type
lsblk. You should see a new disk with the allotted storage amount in the listed output. Example output is shown below.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 8G 0 disk
└─vda1 253:1 0 8G 0 part /
vdb 253:16 0 8G 0 disk
- In this case, the disk
vda is the original disk that has a partition named
vda1. You may want to create a partition in
- Optional: To create partition of the new disk, type
sudo fdisk /dev/vdb. This command expects you to enter additional information.
- Next, the new volume/partition must be formatted. Type
sudo mkfs.ext4 /dev/vdb1.
📝 Note: OpenStack and/or
fdisk may impart a default filesystem type on the new volume. In this case, you will be asked if you would like to proceed with the formatting although an existing partition table exists. If you choose to proceed by typing
y, you will rewrite the partition. ⚠ DO NOT PROCEED if this partition contains data that you need to keep!
- To check the formatting, type
lsblk -f. You should see that the
vdb1 entry has the
ext4 filesystem type.
- To mount the volume for use, you need to create the mountpoint. For example:
- Then, to mount the volume to the newly-created mountpoint, type
sudo mount /dev/vdb1/ ./volume.
- Lastly, to check the mountpoint. type
lsblk -f and you should see
vdb is mounted at the location you chose:
- To avoid having to mount the volume every time you boot your VM Instance, you may set up automounting by viewing the contents of
- The new storage volume is ready to use.