Block Storage (attach, detach, resize, performance notes)

Attach high-performance NVMe volumes to your instances and scale storage independently of compute.

Insert screenshot of Instance β†’ Volumes here

Attach πŸ”—

  1. Create or select a volume

  2. Click Attach and choose the instance

  3. Inside the OS, partition/format and mount

Linux (example)

lsblk
sudo mkfs.ext4 /dev/vdb
sudo mkdir -p /data && sudo mount /dev/vdb /data
echo '/dev/vdb /data ext4 defaults 0 0' | sudo tee -a /etc/fstab

Detach β†˜οΈ

  1. Unmount the filesystem in the OS

  2. Click Detach in the console

  3. Confirm device is no longer in use

Resize πŸ“

  1. Resize the volume in the console

  2. Extend the partition and filesystem in the OS

sudo growpart /dev/vdb 1
sudo resize2fs /dev/vdb1   # or xfs_growfs /mountpoint for XFS

Performance notes βš™οΈ

  • Choose the right tier (Standard/Premium/Pro) for I/O needs

  • Watch IOPS/latency in Volume β†’ Monitoring

  • Separate OS, data, and logs onto different volumes

Last updated

Was this helpful?