ZFS VM Passthrough Advice

0x2d206cff

New Member
Feb 1, 2023
7
0
1
I have a 10T zfs pool set up on the host (that was necessary due to a migration - see my post history...) with a bunch of datasets. I am currently sharing them all via nfs to a proxmox VM, the only VM running on this particular server. The VM runs Debian. nfs is akward due to UID mapping and I'd rather keep the Hypervisor as just that. I have 2 clustered proxmox instances.

Questions:
  • I believe I can zfs pool export, umount the pool from the host, do a qm set for all disks towards the QEMU VM, and do a zfs import there and everything should work as before. Is that best practice?
  • For backing up the VMs themselves (all 32-64GB disks, i.e. fairly small), will having disk passthrough enabled cause any issues? I want to use proxmox for that and back up all VMs to the respective other server. The backup disks for the VMs will not be part of the aforementioned ZFS pool, of course.
  • How do I do data/zfs backups? I have a separate proxmox instance where I can replicate the same process (another 10T zfs pool) - would a zfs send | ssh ... be a good route or are there better tools within the proxmox universe? I assume the answer is "no", given that proxmox wouldn't be aware of the zfs pool anymore.
Thanks
 
I believe I can zfs pool export, umount the pool from the host, do a qm set for all disks towards the QEMU VM, and do a zfs import there and everything should work as before. Is that best practice?
no, better is to passthrough a separat sata controller to the vm
For backing up the VMs themselves (all 32-64GB disks, i.e. fairly small), will having disk passthrough enabled cause any issues? I want to use proxmox for that and back up all VMs to the respective other server.
PBS can only backup vdisks --> you can do the backup inside the machine with the proxmox-backup-client
How do I do data/zfs backups? I have a separate proxmox instance where I can replicate the same process (another 10T zfs pool) - would a zfs send | ssh ... be a good route or are there better tools within the proxmox universe?
zfs is a good choice, it depends on your use case
 
Thanks for your response. I've since installed an LSI RAID controller card in IT mode (from ArtOfServer, which came highly recommended) and patched that through directly + have a separate backup VM that receives zfs snapshots via ssh for backups. Disk images use the regular proxmox backup path.
 

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!