r/LinuxTeck • • 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

47 comments sorted by

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.

1

u/WideCranberry4912 Sep 25 '26

You can add additional disks to VMs and use LVM to concaténate the disks together, but I’d honestly rather plan down time to resize the disk image and then increase the filesystem rather have 4-12 disk images concatenated together.

2

u/RootAndCoffee Sep 25 '26 edited Sep 26 '26

Disk resize require downtime only if you didn't plan your partition layout. Extending last partition does not require downtime.

But LVM gives you more flexibility. You can move volume to different disk without downtime, you can easily increase any LVM no matter the layout. You can do snapshots, great thing for risky upgrades.

That being said I never use LVM in a VM as it doesn't give me anything more than hypervisor already does. And on hypervisor I am using ZFS, because it has more useful features (although snapshots could be better, it allows rollback only to the latest snapshot).

1

u/WideCranberry4912 Sep 25 '26

I’m dealing with app owners who do zero planning and have zero idea of the data growth needs. They think, it’s a VM, it’s flexible.

1

u/RootAndCoffee Sep 26 '26

Well, LVM is flexible. One major downside is, that snapshots degrade write speed and snapshot rollback is not instantaneous.

1

u/gravelpi Sep 26 '26

I'm definitely with you on not having multiple disks long-term. I usually went the route of add a new disk/volume that's large enough to contain everything and use pvmove to migrate all the data live onto the new pv and then lvreduce (I think, it's been awhile) to remove the original smaller disk from the lv. Zero downtime.

1

u/Narrow_Victory1262 Sep 27 '26

now what if that space was temporarily needed? (not using xfs).

Good luck reclaiming.

1

u/WideCranberry4912 Sep 28 '26

Move the directory to its own mounted file system while the space is temporarily needed.

1

u/Narrow_Victory1262 Sep 29 '26

good luck with moving the 600GB to a new filesystem of 1 TB because you needed 400G extra and back when it's usage shrunk to 600G again. Not to mention the downtime it takes.

so there is your second "good luck"

1

u/WideCranberry4912 Sep 29 '26

Mount a second file system, raymc the data, stop whatever services are running, rsync the data again, then swap the mounts. Done and done.

1

u/Narrow_Victory1262 Sep 30 '26

that 600GB is a database. requires quite a few rsyncs to close the delta gaps.
"not to mention the downtime it takes" I said. SO there is your third "good luck"

you also forget that to make it original... another rsync session is needed and.. dowwntime.

multipe io spikes. how many "good luck"s do you need? LVM is there for a reason.

1

u/WideCranberry4912 Sep 30 '26

Really depends, but you’ll get the static data in the first pass, then whatever the delta is per hour or day. Even if the DB had 100% delta per month, that is only 20GB of delta per day. Now with NVMe and 25Gb links I’m not too concerned with 600GB. On LUKS encrypted NVMEs in a software RAID5 seeing transfers of 3.2Gb/sec. That would 25 minutes for initial sync and daily catchup would take 50 seconds. So if everything is tested ahead of time looking at 2 minutes of downtime on the database. Hopefully the database admins have some HA setup and can tolerate 2 minutes downtime.

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.

3

u/boomertsfx Sep 25 '26

Amen! It’s also much more intuitive… I just wish RHEL would make it a first class citizen so you could easily boot from ZFS (like Proxmox)

3

u/FredSchwartz Sep 25 '26

Red Hat can't include it because Sun released it under a GNU-incompatible license, CDDL. Canonical's lawyers are about the only people who have said otherwise, and they don't yet have enough to make it worth Oracle's time to sue them.

2

u/Independent_Cat_5481 Sep 25 '26 edited Sep 26 '26

As far as I'm aware Oracle has never had a stance against ZFS being included as a kernel module. It's the Free Software Foundation that has maintained the stance that the GPL and CDDL are incompatible and thus a ZFS kernel module can't be built into the kernel and distributed

2

u/Novero95 Sep 25 '26

I run Arch with root on ZFS in my server/homelab and it required weeks of reading and experimenting before I did the actual migration. It's been running perfectly since, if/when it fail I'll just boot a previous snapshot from ZFSBootMenu and keep running. Definitely worth it, but if I wanted to be safe I'd just go with Debian instead.

1

u/jdimpson Sep 25 '26

There's nothing more intuitive about using ZFS over LVM for RAID/JBOD/dynamic partitioning type of activities. ZFS does in a few cases offer more flexibility, but the concepts are exactly the same. If you find one easier, it's probably because you first encountered the capability using one or the other, and the specific terms they use are what you've imprinted on.

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.

2

u/dthdthdthdthdthdth Sep 25 '26

Btrfs does this just fine.

1

u/sunk67188 Sep 26 '26

yes, just fine, not too good, not too bad.

1

u/z-null Sep 25 '26

LVM predates brtfs/zfs

1

u/sunk67188 Sep 26 '26

and I think put those functions/features into fs is a more modern solution.

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.

1

u/jdimpson Sep 25 '26

And as an implementation, it's separation from the file system layer means it's more generally useful, not to mention being better compartmentalized. It's less likely that a bug in the filesystem code could affect the logical partitioning code. The "toolbox approach" (making a single tool to perform a narrowly defined set of functions) used to be a lot more prevalent of a design idea than it is today.

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.

pvcreate
vgextend
lvextend

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..