Partition LVM

manchot

New Member
Aug 7, 2019
2
1
1
43
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

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!