Shared SAS LVM Storage + LVM Configuration

lmonasterio

New Member
Nov 3, 2021
21
1
3
39
Hi!
Im setting up a SAS Shared Storage with multipath. Im using LVM, but a question arise. i can create the PV directly on "/dev/mapper/multipathX" or i can make a partition using fdisk and the create the PV on "/dev/mapper/multipath-partitionX", so: is there any difference? Wich option is better? I did both and they are working as shared storage, but perhaps i should choose one over the other.
Hope i am clear explaining the situation.
Thanks for your time,
Leandro
 
Your question is really not PVE specific, but more of a general storage management. IMHO either way is fine and has its benefits. Some may feel strongly about a specific choice.
Here is a Redhat take https://www.redhat.com/sysadmin/lvm-vs-partitioning - they think both are acceptable, as do I.
Partition may give you a bit more flexibility, i.e. two PVs on same multipath device. Only you can decide if you need it. I prefer less layers unless I have a good reason otherwise... If you plan to create a single partition that takes entire disk , then why complicate things?


Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: lmonasterio
Your question is really not PVE specific, but more of a general storage management. IMHO either way is fine and has its benefits. Some may feel strongly about a specific choice.
Here is a Redhat take https://www.redhat.com/sysadmin/lvm-vs-partitioning - they think both are acceptable, as do I.
Partition may give you a bit more flexibility, i.e. two PVs on same multipath device. Only you can decide if you need it. I prefer less layers unless I have a good reason otherwise... If you plan to create a single partition that takes entire disk , then why complicate things?


Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thanks @bbgeek17 !!! I just mentioned you on another post, sorry for that...
Yes, im planning to use the entire disk, so probably the best choice is not create a partition with fdisk