Partition LVM

manchot

New Member
Aug 7, 2019
2
1
1
44
Hi all,

I'm newbie on the proxmox and i read some documentations for the host partition.
I found this on the documentation https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM) and https://pve.proxmox.com/wiki/LVM2 and i found some post on this forum but i need help to understand the better way.

I install a debian buster on my server with these partitions (2 TB hard disk) :
- 500 Mb ext4 for the boot
- 10 Gb ext4 for the root
- 12 Gb for the swap
- 1.8 Tb in the lvm

Actually I only created the pv and vg on the lvm partition (describe on the LVM wiki).
But I have some questions for the configuration for the proxmox 6 and lxc containers usage :
- On the installation documentation, I see that it necessary to keep 16 Go free space on the lvm partition https://pve.proxmox.com/wiki/Installation, for my case is it necessary
- if yes, the best way is it to create a lvm-thin data to 1.6 Tb and keep the rest free
- Do you have any other suggestion for the lvm partition

Thanks you
 
After read again the documentation i do this

Code:
pvcreate --metadatasize 250k -y -ff /dev/sdaX
vgcreate vmdata /dev/sdaX
lvcreate -l 100%FREE -T -n data vmdata
lvcreate -n vz -V 10G vmdata/data
mkfs.ext4 /dev/vmdata/vz
echo '/dev/vmdata/vz /var/lib/vz ext4 defaults 0 2' >> /etc/fstab
mount -a

maybe it can help other user
 
  • Like
Reactions: jieiku