A family of open-source operating systems based on the Linux kernel, offering stability, security, and flexibility for various server environments.
Mounting Vultr Block Storage volume on Linux provides flexible and scalable file storage for Vultr Cloud Compute instances. Linux distributions including Debian, Ubuntu, CentOS, Rocky Linux, Alma Linux, Arch Linux, and Alpine Linux support NVMe and HDD-based Vultr Block Storage volumes.
Follow this guide to mount a Vultr Block Storage volume on Linux.
The following commands may destroy data on existing volumes. Use a new Vultr Block Storage volume to avoid data loss due to file system changes and partitioning.
Attach a Vultr Block Storage volume to the Linux instance.
Use the lsblk utility to list all storage disks attached to the Vultr Cloud Compute instance and verify the Vultr Block Storage volume disk name.
Output:
The Vultr Block Storage volume is attached to the instance as /vdb based on the above output. The first Vultr Block storage volume attaches to Linux as /dev/vdb and additional volume disk names increment in alphabetical order such as /dev/vdc and /dev/vdd.
Create a new disk label using the parted utility.
Create a primary partition to fill the entire disk space.
Create an EXT4 file system on the primary partition and format it.
Output:
Create a new mount point directory for the Vultr Block Storage volume partition.
View detailed information about the Vultr Block Storage volume partition and note its UUID value.
Output:
Add a new entry to the /etc/fstab file to automatically mount the Vultr Block Storage volume at boot. Replace UUID-VALUE with the actual Vultr Block Storage volume partition UUID.
Reload systemd to apply the /etc/fstab changes.
Mount the Vultr Block Storage volume partition.
View all active storage volumes on the Vultr Cloud Compute instance and verify that the new Vultr Block Storage volume is available.
Output:
0 Comments
Be the first to comment and share your perspective with the community.