Block Storage Volumes provide reliable, high-performance, and scalable storage for your Compute Instances. Unlike ephemeral local storage, Block Volumes are persistent and can be detached from one instance and attached to another.
Types of Volumes
When creating a volume, you can customize its performance characteristics to fit your specific needs:
- You can select different volume types and precisely configure their IOPS (Input/Output Operations Per Second) and Read/Write bandwidth.
- This ensures you get the exact performance required for your workload, whether it's a high-throughput database or a large, infrequently accessed archive.
Creating a Block Volume
- Navigate to Storage > Volumes in the LYNIO Console.
- Click Create Volume.
- Name: Enter a descriptive name.
- Size: Specify the size in GB (up to 16 TB per volume).
- Tier: Select the performance tier.
- Click Provision Volume.
Attaching a Volume to an Instance
Once the volume is available, you need to attach it to a running or stopped instance:
- From the Volumes list, click the Options menu (three dots) next to your volume.
- Select Attach to Instance.
- Choose the target Compute Instance.
- Note the device path provided by the console (e.g.,
/dev/sdb).
Mounting the Volume (Linux)
After attaching the volume, you must format and mount it within your operating system. Connect to your instance via SSH and follow these steps:
1. Verify the device is attached:
lsblk
You should see your new disk listed (e.g., sdb).
2. Format the volume (Ext4):
Warning: Formatting will erase all data on the disk. Only do this for new, empty volumes.
sudo mkfs.ext4 /dev/sdb
3. Create a mount point and mount the disk:
sudo mkdir -p /mnt/data
sudo mount /dev/sdb /mnt/data
4. Make the mount persistent:
To ensure the volume automatically mounts after a reboot, add it to your /etc/fstab file:
echo '/dev/sdb /mnt/data ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstab
Your persistent Block Volume is now ready to use!