小编Chr*_*ner的帖子

Debian Buster:如何在 systemd 中 open-iscsi 后启动 ZFS

我安装了 Debian 10 (Buster) 并从 Backports 添加了 ZFS。我有 4 个 iSCSI-LUN,用作 ZFS 的磁盘。每个 LUN 都有一个单独的 zpool。

到目前为止,ZFS 设置有效。但是系统不是重启稳定的。有时重新启动后,所有 ZFS 卷都会恢复并正确安装,有时则不会。我认为会发生这种情况,因为 ZFS 不会等待 iSCSI 完成。

我试过:

/etc/systemd/system/zfs-import-cache.d/after-open-iscsi.conf

[Unit]
After=open-iscsi.service
BindsTo=open-iscsi.service
Run Code Online (Sandbox Code Playgroud)

systemd-analyze 关键链 zfs-import-cache.service

The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

zfs-import-cache.service +1.602s
??open-iscsi.service @2min 1.033s +286ms
  ??iscsid.service @538ms +72ms
    ??network-online.target @536ms
      ??ifup@eth0.service @2min 846ms
        ??apparmor.service @2min 748ms +83ms
          ??local-fs.target @2min …
Run Code Online (Sandbox Code Playgroud)

zfs debian open-iscsi systemd

5
推荐指数
1
解决办法
370
查看次数

标签 统计

debian ×1

open-iscsi ×1

systemd ×1

zfs ×1