lvm-thin, lvm or dir?

JohannJ

New Member
Feb 12, 2023
4
0
1
Hello,
I have a Proxmox server with a 64GB SSD for the Proxmox system and a 30TB HDD hardware RAID for all virtual machines, containers, ISO images, etc.

What should I use for this 30TB RAID? LVM-Thin, LVM, or Directory?
 
What should I use for this 30TB RAID? LVM-Thin, LVM, or Directory?
You can use all 3 if you want to, 10TB each and see which one you like best.
For ISO you need file based storage. LVM/Thin is block based in its default state. You need to perform some extra steps (carve out some space) for the ISOs.
In most cases you wouldnt want to use LVM as that wont give you thin provisioning or snapshots.
If you want an advice - use LVM Thin with a slice for Directory storage usage on a side.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: JohannJ
use LVM Thin with a slice for Directory storage usage on a side.
Thank you for this answer!

One question I still have out of curiosity: Is there anything against using the entire 30TB RAID as a directory for both?
 
Is there anything against using the entire 30TB RAID as a directory for both?
can you rephrase this ^? What is both? And what exactly do you mean by "directory"?

My advice is to follow this document https://pve.proxmox.com/wiki/Storage:_LVM_Thin to create Thin LVM layer on top of your 30TB device.
Then using "lvcreate" manually allocate a slice, format it with your favorite filesystem and setup a mountpoint to which you can point Proxmox for ISO,snippet,etc storage.



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
  • Like
Reactions: Dunuin and JohannJ
Personally i have lost quite a bit of data using lvm-thin. Unexpected power cuts and unexpected reboots completely destroy lvm-thin pools.

So far lvm has not let me down. I replicated the process and it seems lvm can handle unexpected power cuts and still be able to function as if nothin actually happened.

How did i notice this? I have a test proxmox server which i had this lvm-thin failure on
 
  • Like
Reactions: JohannJ
Hello,
I have a Proxmox server with a 64GB SSD for the Proxmox system and a 30TB HDD hardware RAID for all virtual machines, containers, ISO images, etc.

What should I use for this 30TB RAID? LVM-Thin, LVM, or Directory?

What is the use case for the 30TB Raid Drive ?

This all comes down to what is the system going to be used for.
 
  • Like
Reactions: JohannJ
What is the use case for the 30TB Raid Drive ?
I would like to use these 30TB for just about everything. Since the 64GB SSD and the 30TB raid remain pretty much the only disks on the server, I would use them for ISO images, VMs, containers and maybe even more.
 
I would like to use these 30TB for just about everything. Since the 64GB SSD and the 30TB raid remain pretty much the only disks on the server, I would use them for ISO images, VMs, containers and maybe even more.
Understandable but what i actually mean is what is going to use most of the storage. For example. This is how i would set it up for me. You situation might be different.

15TB - VMs, CT's
15TB - Backup Drive for VM's & CT's

What I mean; Is this a home server ? Are you a developer ? Is this going to store legally acquired movies and series?

Since you have 30TB you have over enough to split it in half and use 15 TB for VM's and CT's and leave the other 15TB for backups so for whatever reason something happens you have a backup of everything. This would also depend on how you have the raid setup.If this is all in 2 drives the backup would fall away. If one drive dies all the data is gone.

How is your raid setup?
 
  • Like
Reactions: JohannJ
15TB - VMs, CT's
15TB - Backup Drive for VM's & CT's
Don't store your backups on the same disks you store the data you want to backup.

Unexpected power cuts and unexpected reboots completely destroy lvm-thin pools.
Thats always problematic. But for that reason you got redundant PSU, HW raid with BBU or in case of a homeserver with consumer hardware at least a UPS.

Since the 64GB SSD and the 30TB raid remain pretty much the only disks on the server, I would use them for ISO images, VMs, containers and maybe even more.
Directory storage adds overhead because of the additional filesystem you don't need to store virtual disks when a block storage like LVM-Thin is an option. A directory storage also won't allow you to use snapshots unless you switch from raw to qcow2 and with that you get additional overhead again because of the Copy-on-Write of that qcow2.

I would do it like bbgeek17 suggested:
Use the whole 30TB for LVM-Thin. You can then directly store your virtual disks as block devices (thin volumes), you get thin-provisioning and snapshot support for those. And if you also want to store files on that thin pool you could manually create an additional thin volume via CLI on top of that thin pool, format it with the filesystem of your choice, mount it via fstab and then add an directory storage pointing to that mountpoint.
That way you get both, a 30TB block storage for storing your VMs/LXCs as well as a 30TB directory storage for your files.

Or alternatively, if you want it thick, you could create a thin pool next to a thick LV using the same VG. But then you would need to create both manually via CLI and you would have to decide how much space you want for files and for virtual disks. For example 10TB for files and 20TB for virtual disks and this couldn't be easily changed later, in case you realize you need more space for files, as you can't shrink a thin pool.
 
Last edited:
  • Like
Reactions: JohannJ
Use the whole 30TB for LVM-Thin. You can then directly store your virtual disks as block devices (thin volumes), you get thin-provisioning and snapshot support for those. And if you also want to store files on that thin pool you could manually create an additional thin volume via CLI on top of that thin pool, format it with the filesystem of your choicem mount it via fstab and then add an directory storage pointing to that mountpoint.
That way you get both, a 30TB block storage for storing your VMs/LXCs as well as a 30TB directory storage for your files.
Thank you for this detailed response! I think I'll go with that. Although it's a home server, I have a redundant power supply system, a hardware RAID with a BBU, and a UPS, which is why LVM-Thin would be suitable for me.
 

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!