Show Table of Contents
5.7. queue_if_no_path 功能上的問題
如果一項 multipath 裝置配置了
features "1 queue_if_no_path",那麼任何發出 I/O 的程序都會暫停,直到一或多條路徑回復了為止。若要避免此問題,您可以在 /etc/multipath.conf 檔案中設定 no_path_retry N 參數(其中 N 代表系統應該重新嘗試路徑的次數)。
如果您需要使用
features "1 queue_if_no_path" 選項,同時也遇到此處所述的問題,請使用 dmsetup 指令,並在 runtime 時為特定的 LUN(也就是針對所有無法使用的路徑)編輯政策。舉例來說,如果您想要將 mpathc multipath 裝置上的政策由 "queue_if_no_path" 改變成 "fail_if_no_path",請執行下列指令。
dmsetup message mpathc 0 "fail_if_no_path"
請注意,您必須指定
mpathn 的別名,而不是路徑。

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.