zpool on iSCSI target
Thomas Pries
tpries at hgb-leipzig.de
Mon Feb 16 10:27:30 UTC 2026
Hi,
I have successfully connected two iSCSI targets to my server (24.04) and created zpools on them. After rebooting, zpool import shows the pools and I can import them manually, but they are not imported automatically (deleting the cache file and repopulating it does not the trick).
When I look at systemd-analyze critical-chain, I see that iscsid.service runs way after zfs-import-cache.service. This cannot work.
My idea was to use systemctl edit zfs-import-cache.service and add the following:
[Unit]
After=iscsi.service
BindsTo=iscsi.service
However, this seems to disrupt the entire boot process, e.g., some AppArmor profiles are no longer loaded correctly, leading to strange behavior.
Finally, my solution is to write my own unit which imports the zpool.
I got a similar problem with zpool on ceph block device.
My question is: What is the intended way to automatically import/mount zpools on those devices?
Kind regards
Thomas
More information about the ubuntu-users
mailing list