Show Table of Contents
B.2. 開機時的 iSCSI 磁碟事件
iSCSI 相關的事件可能會在系統啟動時的某些點發生:
- initrd 中的 init script 將會登入使用於
/(若存在的話)的 iSCSI target。這是透過使用 iscsistart 工具程式(並且可在不執行 iscsid 的情況下這麼作)來完成的。 - 當 root 檔案系統被掛載,並且各種服務的 initscript 皆執行後,iscsid initscript 將會被調用。然後若是
/有使用任何 iSCSI target,或是若 iSCSI 資料庫中有任何 target 被標記為自動登入的話,這個 script 便會啟動 iscsid。 - 在執行了網路服務 script 之後(若是有啟用的話便應已被執行了),iscsi initscript 便會執行。若可存取網路的話,它便會登入 iSCSI 資料庫中任何已被標記為自動登入的 target 中。若無法存取網路的話,該 script 便會退出。
- 當使用 NetworkManager(而非使用網路服務 script)來存取網路時,NetworkManager 將會調用 iscsi initscript。請參閱
/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.