I can't import encrypted pool

Hi all, I’ve a problem with an importation of bsd pool. This is my disks situation:``marco@tsaroo ~ $ doas fdisk -l
doas (marco@tsaroo) password:
Disk /dev/nvme1n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: MSI M480 PRO 2TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F2958099-643F-45C6-BCD0-9A1D2BCDCA08

Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 4196351 4194304 2G EFI System
/dev/nvme1n1p2 4196352 37750783 33554432 16G Linux filesystem
/dev/nvme1n1p3 37750784 3907028991 3869278208 1.8T Solaris root

Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: Sabrent
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A36C43CA-6ADD-11F0-A081-37CD7C27B1C7

Device Start End Sectors Size Type
/dev/nvme0n1p1 40 532519 532480 260M EFI System
/dev/nvme0n1p2 532520 533543 1024 512K FreeBSD boot
/dev/nvme0n1p3 534528 34088959 33554432 16G FreeBSD swap
/dev/nvme0n1p4 34088960 2000408575 1966319616 937.6G FreeBSD ZFS

Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: X0E-00AFY0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: EF40FB38-8B1A-495F-B809-2CCF614F3A86

Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G EFI System
/dev/sda2 2099200 1953523711 1951424512 930.5G Solaris root``

where /dev/nvme1n1p3 is linux pool (encrypted) /dev/nvme0n1p4 is bsd pool (encrypted) and /dev/sda2 is external backup pool ( no encrypted).

From bsd I can import linux pool, but when I try to import bsd pool on linux the terminal write me that doesn’t exist the pool

Linux can be finicky. What is the exact command you are using to import the pool?

It could be a conflict between zpool.cache and zpool-import-scan. If one is active and you try to use the other, it won’t work. If it exists, rename /etc/zfs/zpool.cache to e.g. /etc/zfs/zpool.cache.backup and try (assuming a systemd system) $ sudo systemctl restart zfs-import-scan.service. Then check if your pool was found with $ sudo zpool status.

1 Like

I’m forgot to say that I “solved”, not really, but I discover that freebsd use geli instead native encryption, and Linux doesn’t see this