I am new to TrueNAS, and wanted to use it virtualized in Proxmox (passthrough HBA via IOMMU) instead of letting Proxmox handle my data drives (Proxmox & VMs are on a mirror NVMe). Installed SCALE, and this is my maybe 6th reboot when this occurred to me too. Just registered an account to throw my experience in.
I then booted the ISO since it also has ZFS, and forcefully imported the pool then exported it. However, this didn't fix it.
After some digging and brainstorming, I booted the TrueNAS install disk, added "init=/bin/bash" to the boot arguments in Grub, and went hunting for the systemd service responsible for the "Importing ZFS pools".
I then found that TrueNAS uses its own import pool service & command, since it was ix-zfs.service instead of the usual zfs-import.service or whatever that other desktop distros use (I use ZFS on Void which isn't systemd, so I have forgotten what the original service is called for systemd). ix-zfs.service uses the command midclt call -job --job-print description pool.import_on_boot which uses midclt, which is part of TrueNAS Scale's middlewared.
Manually calling the command imported my pools, since zpool list shows them as imported, and zpool status -v seems to show they are working just fine, but the midclt process didn't seem to finish and exit and instead got stuck on "Importing pool [pool name]" despite the pools being imported (seemingly) cleanly and already being in usage. Manually killing it and re-running the command with the pools already imported, the command seems to exit cleanly after a little while, showing "Pools import completed".
This leads me to believe the issue lies within middlewared's pool.import_on_boot code, which seems to be in Python, not properly recognizing that the pool import is finished when it is indeed actually finished.
Is there somewhere I can report this to, or is the forum the correct place?