ZFS ZFS pool on iSCSI LUN not imported at boot

Hello,

I’m running a FreeBSD server with an iSCSI-attached storage (Dell MD32xxi).
The iSCSI LUN contains a ZFS data pool (not root).

Scenario:
  • FreeBSD installed on local disk (root pool imports fine)
  • Data pool ztank lives on an iSCSI LUN (/dev/da0)
  • iSCSI login works correctly
  • After boot, the LUN is visible and zpool import ztank works manually
However, the pool is NOT imported automatically at boot.

Configuration:
/etc/rc.conf:

Code:
zfs_enable="YES"
iscsi_flags="-n storage"
iscsid_enable="YES"
iscsictl_enable="YES"
iscsictl_flags="-Aa"
/etc/iscsi.conf:

Code:
storage {
    TargetAddress = 10.10.10.2
    TargetName    = iqn.1984-05.com.dell:powervault.md3200i.XXXXXXXX
}

Manual import always works after boot has completed with:

zpool import ztank

But manually importing the pool after every reboot is not a sustainable solution.
What could be the problem? How could i fix it?
Misconfigurations? sysrc?

Thank you!
If you need any additional information (logs, configuration, etc.), just let me know and I’ll provide it.
 
Back
Top