Show Table of Contents
5.7. 有 queue_if_no_path 功能的问题
如果使用
features "1 queue_if_no_path" 配置多路径设备,那么所有采用 I/O 操作的进程都将被挂起直到恢复一个或者多个路径为止。要避免这种情况,请在 /etc/multipath.conf 文件中设定 no_path_retry N 参数(其中 N 是该系统应该重试某个路径的次数)。
如果需要使用
features "1 queue_if_no_path" 选项,且遇到这里提到的问题,请使用 dmsetup 命令为特定 LUN 编辑运行时策略(就是说对该特定 LUN 来说所有路径都不可用)。例如:如果想要将多路径设备 mpath2 的策略从 "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.