LVM best practice suggestions !!

csm310599

New Member
Jun 29, 2022
11
1
3
Hi, I have a hp proliant dl380p gen8 server with following disks:

  • 2 SSD ( 1 TB each one ) -> RAID 1
  • 15 SAS ( 900 GB each one) -> RAID 50
Raid configuration has been done through hardware controller that is already been integrated on the server.

https://imgur.com/a/ulqIU2D

We have proxmox on RAID 1 and I want to use RAID 50 for sotrage but I'm unsure of the best way to set this up and rearrange the storage.

Code:
root@px1-server:~# lsblk -l

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 931.5G 0 disk

sda1 8:1 0 1007K 0 part

sda2 8:2 0 512M 0 part

sda3 8:3 0 931G 0 part

sdb 8:16 0 9.8T 0 disk

pve-swap 253:0 0 8G 0 lvm [SWAP]

pve-root 253:1 0 96G 0 lvm /

pve-data_tmeta 253:2 0 8.1G 0 lvm

pve-data_tdata 253:3 0 794.8G 0 lvm

pve-data-tpool 253:4 0 794.8G 0 lvm

pve-data 253:5 0 794.8G 1 lvm



root@px1-server:~# pvdisplay

--- Physical volume ---

PV Name /dev/sda3

VG Name pve

PV Size 930.98 GiB / not usable 4.69 MiB

Allocatable yes

PE Size 4.00 MiB

Total PE 238330

Free PE 4094

Allocated PE 234236

PV UUID k71pZ2-x0De-mUdG-dkCb-0MVC-zbLE-2hcrXO

--- Physical volume ---

PV Name /dev/sdb

VG Name pve

PV Size 9.82 TiB / not usable 1.02 MiB

Allocatable yes

PE Size 4.00 MiB

Total PE 2575355

Free PE 2575355

Allocated PE 0

PV UUID LC31rN-zVVv-jDEQ-rJwC-e1Vq-GFDK-UnMVBQ

root@px1-server:~# pvs

PV VG Fmt Attr PSize PFree

/dev/sda3 pve lvm2 a-- <930.98g 15.99g

/dev/sdb pve lvm2 a-- 9.82t 9.82t


I mean, How much space should I set aside for root? and same for backups and ISO storage

Anyway, with this post I simply want to ask for advice/help to follow good practices when distributing storage and configuring logical volumes correctly.

Any tips or suggestion would be greatly appreciated :)
 
32GB should be enough for root and a few ISOs or LXC templates (aktual PVE needs here around 10-14GB). And don't store you backups on the system disk or VM/LXC storage disks as you want your backups to be available in case the system disk and/or the VM/LXC storage disks are failing, as these contain the VM7LXC configs (usually stored on the system disk) and the virtual disks (stored on your VM/LXC storage).
You also might want to tell the PVE installer to keep some GBs unallocated so you later can manually add a swap partition which shouldn't be using ZFS.
 
Last edited:
I can recomment splitting the OS from everything else, e.g. for isos and lxc templates I recommend using NOT the root LVM, but a specially created one so that you don't accidentally brick your machine by using all of the space of your root filesystem. There is documentation available for this.
 

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!