LXC Storage on passed through HDD.

Dnezar

New Member
Jul 5, 2024
16
0
1
Hello, I created a container that I would like to use as NAS. Since Proxmox is Linux, why use a dedicated NAS machine?
I have a question though. I passed a whole 16TB ZFS mirror to it and mounted it inside the LXC container in /mnt/something.
When I run the command zfs list on the host I can see it's a block device named subvol-containerID-disk-0. If I want to destroy the container, or simply move the block device to another machine, would I be able to mount it again? Right now it's used as an SMB share. Is there a way to have a file based storage mounted to my LXC container? I can't pass the disks through, they're attached to my motherboard SATA ports.
I don't mind treating the zvol as a physical HDD and carrying it with me to other LXC containers or even VMs as long as I know I can mount it in there without too much hassle, wizardry or fiddling with endless permissions etc.
Advice would be much appreciated.
 
Last edited: