For the complete documentation index, see llms.txt. This page is also available as Markdown.

Block storage

Provision raw disk storage

Block storage requires a quota to be added to your account. For access, contact your account team via Slack or email support@mithril.ai

Block storage gives you the most control over your storage approach by providing a blank disk that can be attached to your instances. Block storage typically requires a more lengthy setup. If you need shared storage across multiple instances, we recommend using file share storage instead.

Provisioning block storage

To provision block storage, go to Storage, select + Create Storage, and select Block.

  1. Select the region you would like to provision your Block storage in.

  2. Select the size for your disk. Currently, each block storage disk has a maximum size of 32TB.

    NOTE: instances in us-central2-a have 15TB and instances in us-central2-b have 12.5TB of ephemeral storage.

Tip: Give your disks different sizes to make it easier to find the disk you're looking for inside your VM.

Attach storage to reservations and spot bids

Provisioned storage is available for selection while creating a reservations or spot bid. You can attach as many storage options as needed from the same region. If you select a region that does not have provisioned storage, it will not appear as an option.

For existing instances, you can attach/detach storage volumes when the instances are in a Paused state. You will need to manually mount the new volumes.

Using the disk from your instance

Find the disk device name(s) using lsblk

List your block devices with lsblk. Your selected disks will start from vdd and extend to however many you added in order alphabetically.

First time only - format the disks

If this is the first time using this disk, you will need to format and define a filesystem. In the below command:

  • Replace /mount/dir/path with the local directory where you want the disk mounted

  • Replace /dev/name with the disk name selected from the output of lsblk

⚠️ Running this command will erase the disk content if previously mounted ⚠️

Repeat this for all disks you are formatting.

Mount the disks

Finally, mount the disk with the below, replacing /dev/name and /mount/dir/path with the local directory of where the disk will be mounted and the disk name

Repeat this for all disks you are mounting.

Persist mounted disks across reboots
  1. Get the UUID of your disks

  1. Open /etc/fstab in your text editor

  1. Add the disk to your fstab

It looks something like this. We strongly recommend using the nofail option to prevent instance failure in case of disk failure or disk removal.

  1. Save and mount

Quotas

Each project has a total storage capacity quota that accumulates usage across all regions. Contact your account team via Slack or email support@mithril.ai to increase your quota.

Last updated