PS: relevant bit might be "zpool" script https://github.com/opnsense/src/commit/74e2b24f2c369
Geom Class Providerada0 DISK ada0 ada0 PART ada0p1 ada0p1 LABEL gpt/efiboot0 gpt/efiboot0 DEV ada0p1 LABEL msdosfs/EFISYS msdosfs/EFISYS DEV ada0p1 DEV ada0 PART ada0p2 ada0p2 LABEL gpt/gptboot0 gpt/gptboot0 DEV ada0p2 DEV ada0 PART ada0p3 ada0p3 DEV swap SWAP ada0 PART ada0p4 ada0p4 DEV zfs::vdev ZFS::VDEV ada0 DEV
~]$ geom -tGeom Class Providerda0 DISK da0 da0 PART da0p1 da0p1 LABEL gpt/sysboot0 gpt/sysboot0 DEV da0p1 DEV da0 PART da0p2 da0p2 LABEL gpt/swap0 gpt/swap0 DEV swap SWAP da0p2 DEV da0 PART da0p3 da0p3 LABEL gpt/sysdisk0 gpt/sysdisk0 DEV zfs::vdev ZFS::VDEV da0p3 DEV da0 DEV da1 DISK da1 da1 PART da1p1 da1p1 DEV zfs::vdev ZFS::VDEV da1 DEV da2 DISK da2 da2 PART da2p1 da2p1 DEV zfs::vdev ZFS::VDEV da2 DEV da3 DISK da3 da3 PART da3p1 da3p1 DEV zfs::vdev ZFS::VDEV da3 DEV da4 DISK da4 da4 PART da4p1 da4p1 DEV da4 PART da4p2 da4p2 DEV da4 PART da4p3 da4p3 DEV da4 DEV da5 DISK da5 da5 PART da5p1 da5p1 LABEL gpt/sysboot1 gpt/sysboot1 DEV da5p1 DEV da5 PART da5p2 da5p2 LABEL gpt/swap1 gpt/swap1 DEV da5p2 DEV da5 PART da5p3 da5p3 LABEL gpt/sysdisk1 gpt/sysdisk1 DEV da5p3 DEV da5 DEV da6 DISK da6 da6 PART da6p1 da6p1 LABEL gpt/HPE_Disk1 gpt/HPE_Disk1 DEV zfs::vdev ZFS::VDEV da6p1 DEV da6 DEV da7 DISK da7 da7 PART da7p1 da7p1 LABEL gpt/PCK96S7X gpt/PCK96S7X DEV zfs::vdev ZFS::VDEV da7p1 DEV da7 DEV da8 DISK da8 da8 PART da8p1 da8p1 LABEL gpt/PCJPJYRX gpt/PCJPJYRX DEV zfs::vdev ZFS::VDEV da8p1 DEV da8 DEV da9 DISK da9 da9 PART da9p1 da9p1 LABEL gpt/PCK93TSX gpt/PCK93TSX DEV zfs::vdev ZFS::VDEV da9p1 DEV da9 DEV cd0 DISK cd0 cd0 DEV gzero ZERO gzero gzero DEV
root@a-fw:~ # geom -tGeom Class Providerada0 DISK ada0 ada0 PART ada0p1 ada0p1 DEV ada0p1 LABEL gpt/gptboot0 gpt/gptboot0 DEV ada0 PART ada0p2 ada0p2 DEV swap SWAP ada0 PART ada0p3 zfs::vdev ZFS::VDEV ada0p3 DEV ada0 DEVada1 DISK ada1 ada1 PART ada1p1 ada1p1 DEV ada1p1 LABEL gpt/tank zfs::vdev ZFS::VDEV gpt/tank DEV ada1 DEVroot@a-fw:~ # zdb -U /etc/zfs/zpool.cachetank: version: 5000 name: 'tank' state: 0 txg: 2157 pool_guid: 3111308251436133108 errata: 0 hostid: 3119175440 hostname: 'a-fw.<fqdn redacted>' com.delphix:has_per_vdev_zaps vdev_children: 1 vdev_tree: type: 'root' id: 0 guid: 3111308251436133108 create_txg: 4 children[0]: type: 'disk' id: 0 guid: 12494104300729996690 path: '/dev/gpt/tank' whole_disk: 1 metaslab_array: 256 metaslab_shift: 34 ashift: 12 asize: 2000394125312 is_log: 0 create_txg: 4 com.delphix:vdev_zap_leaf: 129 com.delphix:vdev_zap_top: 130 features_for_read: com.delphix:hole_birth com.delphix:embedded_datazroot: version: 5000 name: 'zroot' state: 0 txg: 136118 pool_guid: 11119205119676167574 errata: 0 hostname: '' com.delphix:has_per_vdev_zaps vdev_children: 1 vdev_tree: type: 'root' id: 0 guid: 11119205119676167574 create_txg: 4 children[0]: type: 'disk' id: 0 guid: 11612196972070245027 path: '/dev/ada0p3' whole_disk: 1 metaslab_array: 256 metaslab_shift: 29 ashift: 12 asize: 13414957056 is_log: 0 create_txg: 4 com.delphix:vdev_zap_leaf: 130 com.delphix:vdev_zap_top: 131 features_for_read: com.delphix:hole_birth com.delphix:embedded_data
You're doing good, don't worry. Ok so back to "canmount" idea I found:https://docs.oracle.com/cd/E19253-01/819-5461/gdrcf/index.html# zpool import -aN# zfs mount -vaThe -N for import would be important to avoid mounting something we shouldn't. The theory would be we could get the canmount datasets to mount this way.What do you think?
Mounting filesystems...cannot import 'tank': pool was previously in use from another system.Last accessed by a-fw.<domain redacted> (hostid=b9ead710) at Thu Feb 24 15:46:17 20 22The pool can be imported, use 'zpool import -f' to import the pool.