Logo
OpenScaler

Quick Start

In order to create a block storage volume, you need to have a computer. If you don't have one, you can create one as shown here.

Create Block Storage

  • Navigate to a computer you want to attach the block storage to
  • Click on the "Storage" tab
  • Then hit the Attach Block Storage Volume button

Create or attach existing Block Storage Volume

On the window that appears, you have two options:

  1. Create a new Block Storage Volume
  2. Attach an existing Block Storage Volume

For a new Block Storage Volume, you need to provide basic information about the volume like it's size (in GB), filesystem type (ext4, xfs, etc), and and file system label.

Block Storage Volume Creation

Note

You'll need the "filesystem label" to identify your volume inside your machine as shown here.

Choose a name for your volume or click the Generate Name button to get one generated for you.

Then if all is set, click on the "Create Block Storage Volume" button.

Mount Volume

Once the volume is created, you can mount it to a machine:

  1. Access the console of the your computer where volume is attached
  2. Create a folder to mount the volume to:
sudo mkdir -p /mnt/my-volume
  1. Mount the volume to the folder you created (replace my-volume with the label of your volume):
sudo mount /dev/disk/by-label/my-volume /mnt/my-volume
Volume Label

If you forgot the label of your volume, you can always check it with lsblk command:

lsblk -f

Done !

You can now use your volume, for example by creating a file in it:

echo "Hello, World!" > /mnt/my-volume/hello.txt

If you detach the volume and reattach it to another machine, all your data will be preserved just as you left it !

See Also

On this page