Show Table of Contents
5.8. Multipath 指令的輸出
當您建立、修改、或列出 multipath 裝置時,您會看到目前裝置設定的訊息輸出,格式如下。
每個 multipath 裝置都有:
action_if_any: alias (wwid_if_different_from_alias) dm_device_name_if_known vendor,product size=size features='features' hwhandler='hardware_handler' wp=write_permission_if_known
每個路徑群組都有:
-+- policy='scheduling_policy' prio=prio_if_known status=path_group_status_if_known
每個路徑都有:
`- host:channel:id:lun devnode major:minor dm_status_if_known path_status online_status
舉例來說,multipath 指令的輸出可能看似:
3600d0230000000000e13955cc3757800 dm-1 WINSYS,SF2372 size=269G features='0' hwhandler='0' wp=rw |-+- policy='round-robin 0' prio=1 status=active | `- 6:0:0:0 sdb 8:16 active ready running `-+- policy='round-robin 0' prio=1 status=enabled `- 7:0:0:0 sdf 8:80 active ready running
如果路徑已經啟動、也準備好給 I/O 使用,那麼路徑的狀態會顯示
ready 或 ghost;反之會顯示 faulty 或 shaky。路徑狀態會由 multipathd daemon 定期更新,更新的頻率是在 /etc/multipath.conf 檔案中決定。
dm 狀態跟路徑狀態類似,但是從核心的觀點來看則否。dm 狀態有兩種狀態:
failed(相當於 faulty)與 active(包含所有其它的路徑狀態)。偶爾,裝置的路徑狀態與 dm 狀態會暫時不同步。
online_status 可使用的值為 running 和 offline。offline 狀態代表此 SCSI 裝置已停用。
注意
當 multipath 裝置被建立或修改時,路徑群組的狀態、dm 裝置名稱、寫入權限和 dm 狀態都是未知的。同時,這些功能並不永遠都是正確的。

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.