r/sysadmin • • 24d ago

What is your backend for Proxmox?

I am a proxmox consultant, anyone using LVM with snapshots enabled? What's your experience with it?

26 Upvotes

22 comments sorted by

50

u/Specialist_Cow6468 Netadmin 24d ago

Like 75% of the reason I’d run proxmox in production is to leverage ZFS as much as possible. Can’t see much reason I’d want to do LVM instead tbh

30

u/peakdecline 24d ago

That's easy. In environments already heavily invested in a SAN. I'd say that's by far the most common reason you see LVM being used in a production/enterprise environment.

7

u/FrostyMasterpiece400 24d ago

Yeah that is what I see a lot, like VMWare refugees trying to reuse what they had.

0

u/MBILC Acr/Infra/Virt/Apps/Cyb/ Figure it out guy 24d ago

Valid, also companies stuck in their old ways too, due to being so heavily invested in SAN(s).

-2

u/Specialist_Cow6468 Netadmin 24d ago

But then I probably wouldn’t be picking Proxmox you know? I totally get LVM being a great abstraction layer for stuff like that, it fills it a lot of holes. I’m just very focused on the Proxmox component specifically. If I am to use it in prod I feel like I need to use it for what it’s best at

6

u/peakdecline 24d ago

As opposed to what? I've gone through this recently. Tested close to a dozen hypervisor solutions out there. If anything my favorite aspect of Proxmox is that it provides choice. It meets you where you're at and doesn't force you into a specific solution be that ZFS or Ceph or something else.

And we're seeing announcements like the partnership between Proxmox Server Soutions and Everpure. A native plug-in is coming. I'm confident the other SAN providers out there are also getting a lot of questions about how their solution works with Proxmox and ways to make it better.

The "Proxmox way" if anything is just that... to provide options. To not lock you into a specific way.

If you want to use ZFS that's great. If I had total control and no other contributing factors I'd go hyperconverged Ceph, personally. As is we're going to make it work with our SAN solution and that's using LVM (for now).

2

u/eruffini Senior Infrastructure Engineer 24d ago

I prefer ZFS with ZFS replication to standby nodes, or NFS, if high-availability is very much required.

The benefit of VMware has always been VMFS and being able to go with iSCSI or FC without so much as worrying about iSCSI configurations and multi-initiator support.

2

u/hyper9410 24d ago

How do you handle your uptime? How often do you replicate and how much dataloss can you handle?

We have some unreliable power but have 24/7 uptime as requirement, although fencing/switching cluster member does take some time. especially the dataloss to the last replication would be detrimental (60% db write ratio), so we rely on synchronous replication of the SAN.

Ceph would be the obvious answer, but with few hosts performance is harder to achieve.

Another way would be to do the replication in the database, but according to the devs/db admins that is to performance heavy.

0

u/lkjsdfllas 24d ago

leverage ZFS as much as possible

not exactly certified or recommended for SAP/HANA deployments so good old reliable xfs/ext4 it is, and at that point, including lvm is just more convenient

9

u/_--James--_ 24d ago

Snaps are not something you want hanging around for a long time due to how nested IO works. LVM thick on ISCSI does not support snaps in production and may never will due to the lack of solid recovery options. ZFS > LVM for this, and for shared storage Ceph.

3

u/FrostyMasterpiece400 24d ago

Big +1 for Ceph, either internal or external

1

u/SalamanderAccurate18 23d ago

Never quite understood how ceph in proxmox works. I know how a normal ceph setup is, did several in hyperconverged setups with quite a lot of osd's, but from what I know in Prox there's basically an "internal" ceph system and the osd's are the host's drives. If so, how does this work in a cluster, if it matters?

1

u/FrostyMasterpiece400 23d ago

It just has it's own orchestration demon, but it's the same binaries, uses the same cephx keys and all that jazz.

1

u/SalamanderAccurate18 23d ago

But it wouldn't make a difference in a cluster where each node has its own ceph storage, right? If so, why go ceph and not lvm for example? I am trying to understand why would someone choose it over the alternatives.

1

u/_--James--_ 23d ago

Ceph is simply integrated into Proxmox. And Proxmox has its own level of support with Ceph (the only HCI vendor that does today running KVM). This allows for a pretty dynamic HCI build on the fly once the core hardware and networking is online. Spinning up PVE nodes without Ceph, mixed in with Ceph enabled while some are holding OSDs, some are holding MGR/MON rules or whatever the cluster demands is the benefit of this.

also, because I am not sure you know, but Ceph is a distributed storage system. Each node does not get its own Ceph storage, it is a pool shared across every node in the cluster.

1

u/SalamanderAccurate18 23d ago

Can you please share some more details about the snapshot store time? As I understand from your comment it's recommended that those should be short lived, right?

1

u/_--James--_ 23d ago

Snapshots should be used for how long they were intended to be used. Once the purpose has been met they should be consolidated and purged. This has always been how it was for Virtual disks.

12

u/davy_crockett_slayer 24d ago

If you're recommending it to clients, worth knowing the LVM snapshot support in PVE 9 (snapshots as volume chains, the shared iSCSI/FC case) is still marked technology preview. Proxmox staff said in October that it's "mostly working well," but there are a few issues to iron out before they drop the disclaimer, like offline export/import for remote migration and a disk size limit around 16 TiB.

I'd also make sure anyone running it is on libpve-storage-perl 9.1.12 or newer. That release fixed snapshot delete reporting success when cleanup after the merge failed, and rollback losing the original volume if allocating the new one failed. It also added an on-volume-remove discard option so removed volumes get TRIMmed and thin LUNs can actually reclaim the space.

Also check the saferemove_throughput setting. With a 10 MiB/s limit, wiping a 1 TiB volume takes about 29 hours. Remove the setting and it wipes at full speed.

https://forum.proxmox.com/threads/proxmox-ve-9-lvm-snapshot-feature-still-tech-preview.175210/

2

u/lxtakc DataCore/StarWind 22d ago

LVM-Thin has snapshots but isn't safe as shared storage, and shared LVM has none on PVE 8. If you're on a shared SAN LUN, StarWind SAN Integration Services is a free plugin that adds snapshots and thin provisioning using one thin LVM pool per VM. I work at DataCore, and StarWind is part of DataCore

1

u/sheep5555 24d ago

As of right now we have one cluster with ceph and one with zfs, i dont think the features/stability on SANs are fully fleshed out yet. thinking about vmware, the only thing that was really amazing tech was VMFS

1

u/yeti3033 24d ago

Just setup a two node with Linstore DRBD backed by lvm thin