How to Use Block Storage Volumes Print

  • 9

Block Storage Volumes are storage devices which can be attached to your RamNode cloud instances (currently NYC only) to increase their available space on-demand. Volume data is stored on NVMe drives and replicated across multiple nodes for high-availability and fault tolerance. Volumes can be attached and detached from Instances at will, and their data persists even if you destroy the associated Instance. You can manage your Volumes through the Cloud Control Panel or by using the OpenStack API.

Create a Volume

  1. Access the Cloud Control Panel and click the Volumes tab



  2. Click the orange + button at the bottom right.



  3. Give your Volume a name, enter the desired Volume size, and select the Volume type.



  4. Choose a Volume Source Type depending on your intended usage.



  5. Click Create Volume. Your new Volume will be displayed with AVAILABLE status once it's ready to use. Click on the Volume to show more details.





Attach a Volume

(NOTE: You may need to reboot your Instance from the cloud control panel to attach a Volume if launched prior to July 2020.)

Select the
Instance to which you want to attach your new Volume under the My Instances tab. Click the Volumes tab on the Instance page.




  1. Click Attach Volume and select the new Volume.



  2. After a few moments, the Volume will be displayed as IN-USE on the Instance Volumes tab.



Mount a Volume

  1. Access your Instance via SSH or console. Your Instance should detect a new drive /dev/vdb by default. You can confirm with commands lsblk or fdisk -l.

  2. Create a mount point for your Volume data:

    mkdir /mnt/volume1

  3. Format the Volume filesystem:

    (Only if you started with New Empty Volume as the Source Type. Only format it once, not each time you attach it.)

    mkfs.ext4 /dev/vdb

  4. Mount the Volume onto the mount point created above:

    mount /dev/vdb /mnt/volume1/

    If you want the Volume to be automatically mounted upon Instance reboot, add this line to /etc/fstab:

    /dev/vdb /mnt/volume1 ext4 defaults,noatime,nofail 0 2


Detach a Volume

From the My Instances tab, select the Instance from which you want to detach a Volume. Select the Volumes tab. Find the Volume and click the Detach Volume button. Click Confirm.


Extend a Volume

NOTE: Volume size can only be increased, not decreased.

  1. Click the Volumes tab and select the Volume you want to extend. Click the Extend button.



  2. Enter the new size for your Volume and click Extend Volume.



  3. Once your Volume is done extending, detach and re-attach it to the Instance.

  4. SSH into your Instance and check for filesystem errors (assuming you are using ext2, ext3, or ext4 for your Volume):

    e2fsck -f /dev/vdb

  5. Resize the filesystem to use the new Volume capacity:

    resize2fs /dev/vdb

  6. Mount the Volume again:

    mount /dev/vdb /mnt/volume1/

 


Was this answer helpful?

« Back