Persistent storage (volumes)

If you need to store your dataset after the end of your instance, you need to add a volume to your Pod. There are two ways to create a volume on Sesterce Cloud:

  • From "Storage" tab

  • Directly from the instance creation path

If you don't have volume created yet, we suggest the second option. All you need to do is to make sure that the offers displayed are supporting volumes by ticking the appropriate box.

To create a volume, select your volume name and the size you need (in GB).

How to create a persistent volume from Storage page?

First, click on "Create volume" or "New volume" button (see below)

Volume name and region

Then, choose Volume name via the corresponding text field and Region where the volume will be hosted.

Availability Zone

According to the Region selected, several AZ will be available or note. Please note that you'll be able to link your Volume only to Compute instances that are launched in the same Regions and Availability Zone.

To simplify the process to its maximum, we implemented the following path: once your Volume is created, you can launch an instance via a dedicated CTA from volume page directly.

Click on Volume Card

Click "Attach GPU Instance"

You will be redirected to the Compute page, displaying all instances offers that match with your Persistent Volume location.

Select the Volume

In the instance creation page, you'll find your Volume displayed in the dedicated section. Select it to link your instance to this persistent storage.

How to verify the Volume on the instance?

Once the instance is active, connect into it through SSH command. Then, run the following command:

# List all block devices attached to the instance
lsblk

You should have an output similar to this:

NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0     7:0    0  63.9M  1 loop /snap/core20/2318
loop1     7:1    0    87M  1 loop /snap/lxd/28373
loop2     7:2    0  38.8M  1 loop /snap/snapd/21759
loop3     7:3    0  44.3M  1 loop /snap/snapd/23258
loop4     7:4    0  63.7M  1 loop /snap/core20/2434
vda     252:0    0   128G  0 disk 
├─vda1  252:1    0 127.9G  0 part /
├─vda14 252:14   0     4M  0 part 
└─vda15 252:15   0   106M  0 part /boot/efi
vdb     252:16   0    50G  0 disk # this is the volume I mounted
nvme0n1 259:0    0 894.3G  0 disk

This command will display all block devices attached to the instance. You should see your volume listed as a new device, such as vdb, sbd, or similar.

How to mount the Volume to a filesystem?

To make the storage space accessible and usable by your operating system and applications, you need to mount the volume to a filesystem using the following command.

sudo mkdir /mnt/vdb
sudo mkfs.ext4 /dev/vdb
sudo mount -t ext4 /dev/vdb /mnt/vdb/
sudo chown -R sesterce:sesterce /mnt/vdb/

Now, the /mnt/vdb directory should be connected to your volume and fully accessible for you to write and read from.

Last updated

Was this helpful?