A Unix-like operating system known for its stability, security, and advanced networking capabilities, derived from BSD Unix.
Mounting Vultr Block Storage volume on FreeBSD provides flexible and scalable file storage for Vultr Cloud Compute instances. FreeBSD supports NVMe and VirtIO-based Vultr Block Storage volumes. VirtIO volumes appear as vtbd devices and NVMe volumes appear as nda devices. This guide uses VirtIO device names (vtbd) in all examples. If your instance uses NVMe-based Block Storage, replace all vtbd references with the corresponding nda device names throughout the steps below.
Follow this guide to mount Vultr Block Storage volume on FreeBSD.
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 Vultr Block Storage volume to FreeBSD.
List all VirtIO Block Devices (vtbd) attached to FreeBSD.
Output:
The Vultr Block Storage volume attaches as /vtbd1 based on the above output. The first Vultr Block Storage volume attaches to FreeBSD as /dev/vtbd1 and additional volume disk names increment in numeric order, such as /dev/vtbd2 and /dev/vtbd3.
View all active partitions and verify the root filesystem disk name.
Output:
vtbd0 is the root filesystem disk with two active storage partitions based on the above output.
Create a new GPT partition table for the vtbd1 Vultr Block Storage volume.
Output:
Create a new partition with the UFS2 partition and a label such as vultr_block_storage.
Output:
Initialize the UFS2 filesystem on the new Vultr Block Storage volume partition.
Output:
Create a new mount point directory for the Vultr Block Storage volume partition.
Mount the Vultr Block Storage volume partition.
View all active partitions to verify the new partition is available.
Output:
The vtbd1 Vultr Block Storage volume partition is active on FreeBSD based on the above output.
List the Vultr Block Storage volume partition information and note the rawuuid value in the command output.
Output:
e805ef8b-9618-11ef-bc70-315e9870b088 is the Vultr Block Storage volume partition UUID based on the above output. You can use the UUID value to mount the Vultr Block Storage volume partition when FreeBSD restarts.
Add a new entry to /etc/fstab to automatically mount the Vultr Block Storage volume partition at boot. Replace UUID-VALUE with the actual Vultr Block Storage volume UUID.
View the Vultr Block Storage volume usage.
Output:
0 Comments
Be the first to comment and share your perspective with the community.