Import zpool from old truenas

Kieros

Member
Jul 28, 2022
39
0
6
Hi all.

I have exported the zpool from truenas and is now visible in proxmox.
I have been trying to get this mounted into TruenasScale vm. via command lines without succes.
I also rather use the GUI because thats why I choose proxmox in the first place. Otherwise I could have used KVM as well.

I did try to mount it via shell but I am very bad at linux stuff and always spend hours to find the right info and am worried I destroy more than that it helps fixing stuff. Because I feel very uncomfortable using the command lines. So I don't know how to use the right commands.

The listed ZPOOL

1659081564419.png

But I rather import the entire drives.

1659081908002.png

The /dev/nvme0n1 and the /dev/nvme1n1

You see the disk where partioned (Truenas)
There P3 is the boot part 34.36GB ZFS
There P4 is the ssd-storage-apps 34.36GB ZFS
These are mirrored

Then there is P5 of both drives and they together form a zpool of 2 vdevs combined. For data storage like home vids and photos and stuff.

Now I moved everything to proxmox it would be easier to maintain a copy of truenas by backing up the image
Then I can freeup the mirrored space and make one big zpool of these 2 nmve's so I can use the full 2TB of space.

Anyways how can I add this storage to the truenas vm?
I do not need to share this storage with other vm's. Just truenas.
And how to keep the fastest speed as they are nvme's so is passthrough the best?
I followed some guide and added the space here.

1659082444474.png

But then if I want to add the zpool to the vm by adding the sorage I need to fill in the size in GiB. But I do not see an option to just mount the entire volume.
Then again I would like to import the complete drive so I can free up the space off the booting partions and apps partition.
The ZPOOL of 1.8TB is having the very important data already because the old NAS drives started to fail.

So what is the safest way to import this?
 
Most performant would be to use PCI passthrough to passthrough the whole NVMe SSDs into the TrueNAS VM. But that is most of the time not possible when using consumer hardware, because only one of the M.2 slots is usually fast and directly connected to the CPU. The other M.2 slot is slower and only connected to the chipset probably sharing the IOMMU group with other devices.
 
I have the gigabyte x570i aorus pro wifi motherboard
And I have a Ryzen 5600 so It should be both working on PCIe 4.0 right?

1659084775330.png
 
Yes, both are PCIe 4.0 but one is still slow because only connected to the chipset. The whole chipset is just connected to the CPU with 4x PCIe 4.0 lanes so all USB, SATA, NICs, maybe some PCIe slots and that one M.2 will share the same four PCIe lanes. The other M.2 slot is directly connected to the CPU and got four full PCIe lanes just for it alone and don't need to share it with other devices. So one of the M.2s in slower because it gets slowed down by SATA, NICs, USB etc.
And PCI passthrough of the SSDs probably won't be possible without asc_overwrite
 

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!