Proxmox VE, LSI HBA passthrough on Ryzen

Hello,

I am planning consolidation of my NAS and VM host. My NAS runs on TrueNAS, Ryzen 5 3600, 32GB RAM and ASUS Crosshair VI Hero with 6x 14TB WD RED drives. My VM host runs now on XCP-NG, Ryzen 7 3700x, 64GB ECC RAM, ASROCK X470 Taichi and 2x 3TB Seagate Ironwolf drives. My networking is Mellanox Connect-x2 in both systems. Because of power and heat, I plan to build single system on Proxmox VE with X470 Taichi and my old Ryzen 7 5800x with manual 65W TDP limit and buying 4x32GB Micron UDIMM ECC RAM. My plan is to buy LSI HBA 9400 with 8 ports and then to do PCI-e passthrough to TrueNAS VM running on system. Are there any people with experience on running Proxmox VE on Ryzen consumer systems and doing PCI-e passthrough? If it is unreliable, I will do my ZFS pool on Proxmox and dedicate it to Truenas.

5800x should have an option for 45W ECO mode, no need for manual tweaking. Very well done tuning option from AMD in my experience.

I’m running a 5900x with an Asrock Rack x570 board. No problem with Proxmox in like 4 months of 24/7. Super stable (except for that one time where I overclocked my RAM to deliberately cause trouble). I have passthroughs going for PCIe QuadNIC, on-board NICs, SATA controllers and NVMe. As long as the IOMMU groups of your board are decent, it’s really only point+click in Proxmox-GUI.

Be careful with creating a ZFS Pool in Proxmox and importing to TrueNAS because the OpenZFS versions differ and thus features. May cause problems (and gave me a warning message), but my import worked well. Better create everything in TrueNAS, much easier to setup stuff for ZFS there anyway.

Thanks for info. I have not updated the X470 Taichi to latest BIOS, so there was only the CTDP option to limit TDP I believe.

I use Zotac GT 710 with PCI-e x1 interface, so my plan is to run it through chipset and split my main PCI-e x16 slot to 2x8 and pass the HBA through it to my TrueNAS VM. When I did test run of Unraid on the MB, they had separate IOMMU group just for them.

That is my plan. The “worst case scenario” from my point of view, but A sollution is to do a pool fully in Proxmox, if the HBA passthrough was unreliable. That would probably be 3 mirrored pools with virtual disks on them and then I would do a raid 0 from them in TrueNAS. Now I use 2 raidz-1 vdevs and I get 50TB of storage with 350 MB/s at 50% space usage.

What I ended up doing on my server was passing the drives through to a TruNAS Scale instance raw and then letting TruNAS create the ZFS pool. I couldn’t get IOMMU working so it was the fallback option.

3 mirror vdevs? or 3 pools? I’m confused. ZFS always uses striping across multiple vdevs, no need to create Raid0. But if you want to keep some drive on Proxmox and only use some of them for TrueNAS. Won’t work with PCIe passthrough:Everything on the controller goes to the guest

Basicaly 3 ZFS pools on host, each consisting of mirror vdev, 2 disks each. Create disk for TrueNAS on every pool and then do a raid 0 equivalent in TrueNAS - 3 single disk vdevs as a ZFS pool is technicaly a Raid 0 of vdevs, just smarter.

What would suck is the lack of monitoring in TrueNAS, I would have to rely on Proxmox VE and I would have to write monitoring scrips.

smarter and practically a cripple in any other regard. Don’t expect ZFS to perform with 3x striped virtual disks. And virtual disks/shares don’t need to be smart, because the zpool behind it already is. You can do things complicated with multiple pools and vm disk arrays to a storage server, or just use best practice = Storage server gets a single pool with all the drives. Fastest and easiest.

I know, I am hoping to get PCI passthrough working - if it works, but throws errors, I can just move the HBA back to separate server, turn it ON, redo network and the server is back and running.

I am always going by the rule of thumb, how the ZFS performace was explained by it’s developers. Vdev IOPs are limited to the speed of the slowest device in that vdev. Total IOPs roughly equals to the speed of all vdevs combined - reads depend on physical data location on the vdev, writes goes to the first free vdev. Plus L2ARC, putting ZFS to Synchronous mode and adding SLOG device (I have Optane 900p for such impractical things).

Like I wrote - worst case scenario. I know, I always see and find the bad solutions first. The only thing I hate about Proxmox VE is that there is no quick and easy VM exporting functionality, which is main reason I want to passthrough the HBA and keep Proxmox out of the data storing.