proxmox zfs with VM ext4 disks fstab

workpush

New Member
Feb 6, 2023
14
1
3
Hello everyone,

I'm currently running a proxmox ve 8 environment with ZFS for my pve and my data volumes.
My machine has plenty of RAM for my guests but for data just HDDs. So I added a mirrored SSD pool to use as L2ARC and ZIL.

As VMs I mainly use Debian-based machines with ext4 formatted disks. I don't have SWAP configured.
From Proxmox perspective they are in "write-back" mode.

I was wondering about the best disk/mount options on these disks to benefit from the ZFS caching mechanisms for writing and reading.

1. Is "write-back" on ZFS a good choice? I found several opinions. Some say yes, others say no. What do you think?
2. On my machines(Debian 11 & Debian 12) I mainly use the following fstab config to mount my disks
```
UUID="ABC" /mnt/personal ext4 defaults,user_xattr 0 0
```
Should I use there an additional e.g. "no-cache" argument?

Maybe you can tell me, how you did your configuration?

Thank you!!
 
Last edited:
So I added a mirrored SSD pool to use as L2ARC and ZIL.
That usually won't help much to speed up HDDs unless you got specific workloads that can benefit from that (which most people don't).
Would be better to use them as special devices or even as a dedicated pool to store the virtual disks of VMs that need the IOPS.

I was wondering about the best disk/mount options on these disks to benefit from the ZFS caching mechanisms for writing and reading.

1. Is "write-back" on ZFS a good choice? I found several opinions. Some say yes, others say no. What do you think?
2. On my machines(Debian 11 & Debian 12) I mainly use the following fstab config to mount my disks
"cache=none" is the default and recommended for ZFS. Your guestOSs are already caching in RAM. ZFS is caching the same data in RAM. No need to cache the same data a third time in RAM by using "writeback".
 
Last edited:
  • Like
Reactions: workpush

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!