Show Table of Contents
B.2. 開機時的 iSCSI 磁碟事件
系統開機時,在幾個時間點上可能會發生與 iSCSI 相關的事件:
- initrd 中的 init script 將會登入使用於
/(若存在的話)的 iSCSI target。這是透過使用 iscsistart 工具程式完成,且不需要執行 iscsid。 - 當 root 檔案系統被掛載,並且各種服務的 init script 皆執行後,iscsid init script 將會被調用。然後若是
/有使用任何 iSCSI target,或是若 iSCSI 資料庫中有任何 target 被標記為自動登入的話,這個 script 便會啟動 iscsid daemon。 - 在執行了網路服務 script 之後,iscsi init script 便會執行。若可存取網路的話,它便會登入 iSCSI 資料庫中任何已被標記為自動登入的 target 中。若無法存取網路的話,該 script 便會退出。
- 當使用 NetworkManager(而非使用傳統網路服務 script)來存取網路時,NetworkManager 將會調用 iscsi init script。詳情請參閱
/etc/NetworkManager/dispatcher.d/04-iscsi重要
因為 NetworkManager 安裝在/usr目錄中,因此若是/usr位於網路連接的儲存裝置(例如 iSCSI target)上的話,您將無法使用它來配置網路存取。
若系統啟動時無須使用到 iscsid 的話,它將不會自動地啟動。若您啟動了 iscsiadm 的話,iscsiadm 將會相應地啟動 iscsid。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.