Local Storage (Configuring an LVM Volume on Voltage Park On-Demand Bare Metal Servers)
This guide explains how to configure an LVM volume from six unmounted NVMe SSDs and mount it at /localnvme.
We've moved! You're viewing our legacy docs. For the most up-to-date guidance, AI-powered search, and quick access to all of your support tickets, please visit our new documentation site at support.voltagepark.com.
By default, Voltage Park On-Demand bare metal servers have one NVMe SSD mounted at the root partition. Additional NVMe SSDs are unmounted, offering high flexibility for custom HPC workloads.
Step 1: Update and Install LVM2
Before proceeding, ensure that your system is updated and that the LVM2 package is installed.
sudo apt update
sudo apt install -y lvm2Verify that LVM2 is installed correctly by checking for the pvcreate command:
which pvcreateStep 2: Check Available Disks
After deploying your server, verify the presence of all disks:
sudo fdisk -lEnsure that the following disks are available:
/dev/nvme1n1/dev/nvme2n1/dev/nvme3n1/dev/nvme4n1/dev/nvme5n1/dev/nvme6n1
Alternatively, list all block devices:
Step 3: Initialize Physical Volumes
Create physical volumes for all six unmounted NVMe SSDs:
Verify the setup:
Step 4: Create a Volume Group
Create a volume group named nvme_vg using all six physical volumes:
Verify the volume group:
Step 5: Create a Logical Volume
Create a logical volume named nvme_lv spanning the entire volume group:
Verify the logical volume:
Step 6: Format the Logical Volume
Format the logical volume with the ext4 filesystem:
Step 7: Temporarily Mount the Logical Volume
Create the mount point directory:
Mount the logical volume:
Verify the mount:
Ensure that /dev/mapper/nvme_vg-nvme_lv is listed as mounted at /localnvme.
Step 8: Create a Symbolic Link
Create a symbolic link to /home/ubuntu/localnvme:
Verify the symbolic link:
Step 9: Configure Persistent Mounting
Find the UUID of the logical volume:
Copy the UUID from the output and add it to /etc/fstab:
Append the following line at the bottom, replacing [INSERT UUID HERE] with the actual UUID:
Save and exit (Ctrl + X, then Y, then Enter).
Verify the fstab file:
Ensure there are 0 errors before proceeding.
Step 10: Remount and Validate
Remount all partitions:
Verify that the logical volume is correctly mounted:
Confirm that /dev/mapper/nvme_vg-nvme_lv is mounted at /localnvme with the expected size.
List contents of both directories to validate:
Step 11: Reboot (Optional)
Reboot to ensure the configuration persists across system restarts:
After rebooting, verify that /localnvme is mounted correctly:
Experimental Automated setup script
Conclusion
Congratulations! You have successfully created an LVM volume using six unmounted NVMe SSDs and permanently mounted it at /localnvme. You can now use this storage for high-performance workloads.
If you encounter issues, reach out to [email protected] for assistance.
Last updated
