ZFS - Stop Proxmox mounting as passed through to TrueNAS

Scotty

Member
Jul 15, 2021
25
2
8
54
UK
Hi All,

Still very new at this so be nice...

So I've installed Proxmox VE on a pair of drives and I also had a ZFS pool installed on 8 drives (from a previous TrueNAS build). During my initial setup and playing around I imported the ZFS volume. All worked..no problem.

I later installed TrueNAS as a VM and passed through the LSI controller that has the 8 drives that form the ZFS volume. All works, TrueNAS is working with the volume and everything is backing up to it like a dream. Now it's on Proxmox, I can also have other VM's running...just what I wanted. However, Proxmox still has the volume mounted locally. Surely this isn't a good idea?

If I enter the Proxmox console shell and navigate to the ZFS volume, the shell will hang...so like I say...probably not a good idea.

How do I remove the ZFS volume from Proxmox (or stop it mounting it) without harming the volume but still allow the passthrough to the TrueNAS VM? I hope that makes sense. Or am I worrying about nothing?

Thanks for any help,

Scotty
 
Hi All,

Still very new at this so be nice...

So I've installed Proxmox VE on a pair of drives and I also had a ZFS pool installed on 8 drives (from a previous TrueNAS build). During my initial setup and playing around I imported the ZFS volume. All worked..no problem.

I later installed TrueNAS as a VM and passed through the LSI controller that has the 8 drives that form the ZFS volume. All works, TrueNAS is working with the volume and everything is backing up to it like a dream. Now it's on Proxmox, I can also have other VM's running...just what I wanted. However, Proxmox still has the volume mounted locally. Surely this isn't a good idea?

If I enter the Proxmox console shell and navigate to the ZFS volume, the shell will hang...so like I say...probably not a good idea.

How do I remove the ZFS volume from Proxmox (or stop it mounting it) without harming the volume but still allow the passthrough to the TrueNAS VM? I hope that makes sense. Or am I worrying about nothing?

Thanks for any help,

Scotty
You shouldn't mount the pool on the host and inside the VM at the same time or you most likely corrupt your data.
You should have used "zpool export YourPool" first before importing your pool inside the VM so the pool would have been securely removed from Proxmox.
If you added the pool as a storage using the WebGUI instead of the zpool command you need to remove the storage first or Proxmox will automatically import the pool again as soon it gets exported.
 
Last edited:
I hand a sneaking suspicion I had mucked it up.

Sounds like I’m better off exporting it from both and importing again into the vm.
So if I export it using zpool in the vm, then how do I remove it from the WebGUI? There doesn’t appear to be an option to remove it via the WebGUI.
 
I hand a sneaking suspicion I had mucked it up.

Sounds like I’m better off exporting it from both and importing again into the vm.
So if I export it using zpool in the vm, then how do I remove it from the WebGUI? There doesn’t appear to be an option to remove it via the WebGUI.
Datacenter -> Storage -> YourStorageOfTypeZFS -> Remove. This will just tell proxmox not to use it as a storage so it doesn't try to import it anymore if it can't find it mounted. But I think Proxmox will not try to export it. You still need to export it yourself using zpool export.
 
Last edited:
There is the confusion, It's not listed under Storage as listed above.

I have three volumes shown there (SSD, local, local-lvm) type (LVM-Thin, Directory, LVM-Thin) respectively. The ZFS volume shows up under Datacenter/Nodename/Disks/ZFS/ .The only options there are Relaod/Create:ZFS/Detail.

I'll try exporting and see how I get on.
 
Last edited:
Shutdown the VM, rebooted host.
Exported on the host and started the VM...perfect.

Thanks for your help Dunuin.
 

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!