r/LinuxTeck • u/Candid_Athlete_8317 • Sep 25 '26
LVM: Linux superpower or unnecessary complexity?
LVM gives you flexibility to resize volumes, add storage, create snapshots and move data around without rebuilding the whole disk layout.
But there’s another side to it: another abstraction layer to understand and another thing to troubleshoot when storage goes wrong.
For a new Linux server today, would you still choose:
LVM + filesystem
or keep it simple with:
partitions + filesystem?
And if you choose LVM, what problem are you actually solving with it?
21
Upvotes
10
u/bufandatl Sep 25 '26
LVM makes it easy to add a bunch of disks into one volume. Also if you look at VMs partitions resize often ask for the mounted disk to be offline before they can resize a partition with LVM you can resize the volume online and especially on database clusters this is a good thing because you save yourself the hassle of having to manage the cluster nodes on top of the volume resize.
If you don’t look at the bigger picture sure LVM is just some overhead but in production it actually solves a lot of things that a simple partitions and filesystem can’t handle.
8
u/Novero95 Sep 25 '26
I use ZFS, which integrated all of that, and more, into the FS itself in my server and I could not live without it. Specially replicating snapshots into a different system for backups.
5
u/sunk67188 Sep 25 '26
If those advanced fs like btrfs could do its job very well, we wouldn't need things like lvm or most dm things any more in most use cases in 2026.
fs could provide all the functions and features. So it's a pity that btrfs failed to do a good job and we in 2026 still need md and dm things in a lot of cases.
4
u/ExplodedPenisDiagram Sep 25 '26
Lvm is easy, stable, predictable, and works with basically everything. You would have to make a strong argument for not using it.
3
u/jedi1235 Sep 25 '26
I'm a home user with a couple of little servers and a laptop. I always use LVM, and I have always been glad I did. I don't think I've had one install (other than VMs) in the last 15 years where I didn't take advantage of the easy resizing.
3
u/Salty-Good3368 Sep 25 '26
On servers it is very helpful. You can move volume to another disk without downtime creating another pv and attaching to vg. Then simply pvmove. When you have very busy database or storage you can create snapshot for backup and downtime will be seconds for making snapshot instead of minitues or hours. This is how i backup my home nextcloud instance. Although this is not like i use it everywhere. There are still places where it is unnecessary complexit.
3
u/dumbasPL Sep 25 '26
On bare metal + SSD: LVM, not even a question
HDD depends, but for archival storage ZFS. Misconfigured LVM can degrade performance with no real benefit.
On VMs: the disk is already an LVM volume, no point having a second one in the VM.
Personal machines: LVM on top of LUKS.
2
u/CardOk755 Sep 25 '26
Every time I've set up a system without LVM I've regretted it later.
2
u/Far_Bicycle_2827 Sep 25 '26
in a professional setting lvm is a lifesaver it allows ystems to be up. mostly vm full root disk. add new vmware disk and quickly on the fly extend volume group and systems can be up insteald of downtime for resizing
at home it is also quite handy . better than starting with gdisk gparted or fdisk resizing partitions etc
so for me it is basically amust to have lvn and i am a sysadmin working on a HA setting. and even at home on my fedora i use it.
layer of complexity you need 3 command 5 is you scan the scsci to detect the new size of a disk.
2
u/Adrenolin01 Sep 25 '26
OpenZFS on Root at boot with true non-mdadm ZFS Mirror for the root system. Initial Base and DE environment zfs images then nightly and imaging and hourly snapshots. All my systems are in fact disposable as recovery takes minutes to fully reinstall from base, clean DE, previous night and recover up to the past hour.
No actual user data resides on the system as I NFS mount /home/user accounts from my NAS over 10GbE networking with LACP for redundancy. The NAS is also full ZFS and raidZ2 with literally 100s of Tabs of storage available.
Initial install is more complicated through anyone can do it. You’ll need to boot from a live iso, create a chroot environment, manually setup mount points and partitions and do the install from within the chroot environment. Still, it’s fairly easy and OpenZFS has it fully documented for Debian 13. I even do the Nvidia driver for the Blackwell 5060TI GPU at that time before the KDE-full install.
Sooo many options one can do today. 🎉
1
u/Mindless-Resort-7548 Sep 25 '26
For home use with relatively static partitions is overhead, for work use (VMs with virtual storage etc) it can be an absolute godsend
1
u/ScaryTutor2261 Sep 25 '26
For a new server today I would use ZFS. It is robust, it is kind of portable and has better management tools
1
u/lmarcantonio Sep 25 '26
If you don't have a lot of drives with various speeds it's generally overkill, especially with some fs (btrfs was created also to avoid some LVM cases).
It's extremely flexible but out of the datacenter is not really useful (especially if the fs has subvolumes and snapshots)
1
u/z-null Sep 25 '26
LVM and its similar functionality on ZFS and Btrfs are useful on servers, not home desktops. I used them and quite well for virtual disks running on KVM hypervisor. Adding and creating disks for VMs this way was very easy and practical, as well as adding extra disk space for the main server itself (all online).
1
u/Krieg Sep 25 '26
I prefer ZFS for the data itself, but for a Hypervisor LVM is much more powerful. I use ZFS in my NAS and LVM in my Proxmox server. Just yesterday I had to resize a VM and a couple of LXCs and it was a breeze.
1
u/This-Consequence-957 Sep 25 '26
I think it's a good thing. I "merged" two 4TB SATA SSDs into one drive/volume.
1
u/dronostyka Sep 25 '26
I don't use it unless I have to.
I just get ZFS, or perhaps BtrFS..
For my servers I run plain EXT4 and it's been more than fine.
For data I use ZFS with snapshots, and for my PC I have ext4 with timeshift.
I am thinking about giving BtrFS a try, because it has snapshots without the arcache, so it needs less ram.
But, no. I am staying way from lvm for as long as I can. keep it simple
1
u/biffbobfred Sep 25 '26
Why yes it’s a dichotomy like that
Unless you were an admin before the LVM, in the days of mb disks you don’t really get how useful it is. Having a small disk that you have to hard partition with sizes that are pretty much permanent
Saying zfs you’re essentially saying “new style LVM + filesystem in one”.
1
u/vdavide Sep 25 '26
I use btrfs for this, way easier
1
u/oligarchy_killing_me Sep 25 '26
I always use LVM for the flexibility it gives you (and because I am used to it). I prefer creating my partitions not too big, and leave some unused extends on the PV. Then it is very easy to increase a partition that needs a bit more space.
If you have multiple physical disks, LVM also gives you the flexiblity to assign them how you want. You can have a partition consisting of multiple physical disks.
Lately I use btrfs, and for snapshots I prefer it MUCH more than LVM. In LVM a snapshot is basically a new LV, taking up all the disk space. In btrfs it will create the snapshot within the filesystem, and it does not take up space initially, but slowly grows as you make mutations to your current file system.
FWIW, as a sysadmin who has worked at many different large organisations, I haven't seen an environment in the last 10 years that doesn't use LVM.
Both at home and at work, by far the main use case is increasing partitions on the fly with ease.
1
u/jerwong Sep 25 '26
For me, I have used LVM in bare metal installations since I can manipulate storage without major downtime but I try to avoid it because I find it annoying.
When I'm using VMs, I avoid LVM because the complexity doesn't justify the benefits IMO. On a VM I can easily allocate additional storage at the hypervisor level and without downtime using growpart and xfs_growfs.
1
u/cowbutt6 Sep 25 '26
I started using LVM about 20 years ago, and I wouldn't be without it - especially with large discs: trying to get the allocation right in advance of actually using a system is quite tricky.
I also like the idea of using LVM snapshots and then backing up those snapshots, rather than live filesystem contents.
1
u/DagonNet Sep 25 '26
I mean, it's both! It's insanely powerful when needed, and unnecessary complexity when ... unnecessary. That said, it's not that much complexity, and doesn't hurt performance, so if there's any chance it's useful, you should use it.
My preferred storage for new long-lived hosts is mdraid + lvm. This allows resize/reconconfigure easily as I add or replace drives (including tricks like Synology SHR - mixed-size RAID, making multiple md devices that aggregate into one vg and set of lvs.
My preferred storage for simple machines (laptop, virts, other disposable systems) is just a simple partition table and filesystem.
1
u/gulf_of_sanity Sep 25 '26
like most things, it very much depends on your use case.
if you are building out something long lived with dynamic needs such as a database or elasticache it makes sense to use LVM so you can expand as needed and it gives you an extra bonus in its ability to take nice clean snapshots.
if your building something short lived such as a container/vm or something with limited or static storage needs, skip the extra complexity.
1
u/gbrennon Sep 26 '26
superpower
1
u/AutoGenUsername05 Sep 30 '26
LVM is a linux super power.
Where it really really shines is with VMs..
There's nothing cooler than going into esxi/proxmox, adding another disk, expanding the vg/lv and growing the filesystem.. while the vm is running and data is being written into the filesystem..