Data on another disk/VG

MRJG

New Member
Mar 13, 2021
1
0
1
51
Hello,

I am setting up a small proxmox server for testing/smal production.

I would like to separate system disk/vg and data disk/vg (using LVM thin)
I would start with 2 disks: 1 for system and 1 for data (VMs). In the future I could add the new disk/PV to the Data VG...

Is there any way to do this in a not too unorthodox way...

My goal is to seperate system and datas...

Thanks for your help/ideas/links/experience share
 
Hi,

The Proxmox VE installer automatically partitions the disk and sets up a logical volume with a root and data partition. To achieve what you're asking for, you could install Proxmox VE following the default LVM setup, then remove the "data" LV following the installation:
Code:
# remove LV 'data'
lvremove /dev/pve/data
# Expand LV "root" to use the remaining free space
lvextend -l +100%FREE /dev/pve/root
# Resize the filesystem to use all the available space
resize2fs /dev/pve/root

Following this, you could simply add the second disk to Proxmox VE with the content types "Disk image" and "Container"