RAID 10 with LVM

May 1, 2022
60
8
13
Stockholm, Sweden
Hi

I have four NVME disks that I want to run in LVM raid 10.
Unfortunatly when i add the disks via LVM in Proxmox it's created as a RAID 0.
When I create the LVM (with raid 10) in cli it shows up as full in Proxmox.

What could I be doing wrong?

I created the lvm like this:
lvcreate --type raid10 -m 1 -n lv-nvme1 -l 100%FREE vg-local_nvme1
 
Proxmox needs a volume group from which it will create logical volumes as needed. You, creating an LV that takes up 100% of VG, left PVE no space to do anything else.
You should probably look at mdadm


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
So we se a vg instead? a bit further up the chain, what is the main advantage there?
 
So we se a vg instead? a bit further up the chain, what is the main advantage there?
So that each VM has its own volume. If you want to go down your road, you need to mount the one volume and add it as a directory to PVE, then you can create qcow2 disks on it and have additional features like snapshots.
 
@LnxBil is correct. I'd go a bit further and say its not about "advantage", its how the implementation is done. The LVM storage plugin for Proxmox expects an empty Volume Group and will create Logical Volumes as needed.
From reading about lvmraid - it is using DM plumbing under the covers by creating hidden devices/groups/etc.
You can either go the route suggested by @LnxBil or simply use mdadm and place lvm on top of it.

Lively discussion here on merits of one vs the other, but probably a bit outdated https://unix.stackexchange.com/questions/150644/raiding-with-lvm-vs-mdraid-pros-and-cons


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!