I have two disks which are arranged into a striped logical volume, but when I create a VM and select that volume group as storage, the VM is stored as a new linear logical volume within that volume group instead of being stored on the already existing striped logical volume.
The setup is two disk drives attached together in a volume group that's set up as LVM storage in Proxmox. These are meant for storing temporary VMs that need fast read/write abilities for various data processing jobs. Backups and the Proxmos OS are on separate disks (ie. if there's total data loss because of a RAID0 setup, then that's an acceptable risk).
Here are the steps I took to create it:
I then add the storage via the GUI as an LVM on Datacenter for holding VMs and containers.
I've also tried this with a thin pool with the same issues
The NVMe drives are 4TB each. That is, the 3.49TB I allocated to the striped logical volume is just 50% of the total storage available within the volume group, so the new VMs are correctly added to the volume group, but not the logical volume.
Output
How do I set this up properly to have striped VM storage?
lvs -o+lv_layout,stripes
Code:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Layout #Str
striped_storage_lv storage_vg -wi-a----- 3.49t striped 2
vm-203-disk-0 storage_vg -wi-a----- 32.00g linear 1
The setup is two disk drives attached together in a volume group that's set up as LVM storage in Proxmox. These are meant for storing temporary VMs that need fast read/write abilities for various data processing jobs. Backups and the Proxmos OS are on separate disks (ie. if there's total data loss because of a RAID0 setup, then that's an acceptable risk).
Here are the steps I took to create it:
wipefs --all /dev/nvme0n1
wipefs --all /dev/nvme1n1
pvcreate /dev/nvme0n1 /dev/nvme1n1
vgcreate storage_vg /dev/nvme0n1 /dev/nvme1n1
lvcreate -i 2 -I 64 -L 3.49T -n striped_storage_lv storage_vg
I then add the storage via the GUI as an LVM on Datacenter for holding VMs and containers.
I've also tried this with a thin pool with the same issues
lvcreate -i 2 -I 64 -L 3.49T -c 128K --thinpool striped_storage_lv storage_vg
The NVMe drives are 4TB each. That is, the 3.49TB I allocated to the striped logical volume is just 50% of the total storage available within the volume group, so the new VMs are correctly added to the volume group, but not the logical volume.
ls /dev/storage_vg/
Output
striped_storage_lv vm-203-disk-0
How do I set this up properly to have striped VM storage?
Last edited: