How do I direct passthru a ZFS Raid1 USB device to a TrueNAS score guest?

obitori

Member
Jan 4, 2023
12
0
6
I have a ZFS Raid1 USB HD that my proxmox 8.2.4 can see:

Code:
root@pvelab:~# df
<SNIP>
kyoudaiHD                    2726474496  762213376 1964261120  28% /mnt/giant
kyoudaiHD/archives           4291559040 2327297920 1964261120  55% /mnt/giant/archives
kyoudaiHD/backups            1964261248        128 1964261120   1% /mnt/giant/backups

I would like to connect it using direct passthrough to my TrueNAS Score 24.10.1 guest. The online tutorials I found didn't address a ZFS Raid1 option for USB and I don't think they apply as they recommend directly connecting the raid's underlying disks. i can see those:

Code:
ls /dev/disk/by-id
dm-uuid-LVM-vKdDT2WV9bk25QftlWoBTslQJ0Bj441pJNyZckHZJHMdUQDTqtbgHU91zXGz7B4F  usb-ST5000DM_003-2FH18L_152D00539000-0:1
dm-uuid-LVM-vKdDT2WV9bk25QftlWoBTslQJ0Bj441pNTl6QmI5w2cWbkpW1Yzk1K2m3ziy1BGN  usb-ST5000DM_003-2FH18L_152D00539000-0:1-part1
dm-uuid-LVM-vKdDT2WV9bk25QftlWoBTslQJ0Bj441prfSEzF53LiknJDKoyiRNRL03E3dam4I9  usb-ST5000DM_003-2FH18L_152D00539000-0:1-part9
dm-uuid-LVM-vKdDT2WV9bk25QftlWoBTslQJ0Bj441prSYKqtBCyOcWh7JQM3GlurEDm8wLhoCc  usb-WDC_WD10_01FALS-00J7B1_152D00539000-0:2

But, connecting them directly doesn't import the zfs raid and, I fear, would destroy the ZFS Raid1 array if I were to touch them directly. For this reason, I have not tried.

My question is twofold:

Can I direct passthrough a ZFS Raid1 pool to a PROXMOX guest?

Can I direct passthrough a dataset contained within a ZFS Raid1 pool to a PROXMOX guest while keeping the pool on the PROXMOX server itself?


It occurred to me that I might run my NAS in a container. If that offers options that a VM doesn't, I could go that way. I would probably need to switch from TrueNAS (an appliance) to OpenMediaVault, but that is okay. I'm setting things up and not married to any particular configuration. I just want to have a NAS with my ZFS Raid1 disk attached. I might even convert one of my Proxmox clusters to a baremetal TrueNAS if it's the best option. I'd prefer to keep everything in Proxmox tho.

Thanks in advance for any suggestions,

obitori
 

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!