Show Table of Contents
5.9. 使用 multipath 指令來進行 Multipath 查詢
您可以使用
multipath 指令的 -l 與 -ll 選項來顯示目前的 multipath 設定。-l 選項會顯示自 sysfs 與 device mapper 蒐集而來的 multipath 拓樸。-ll 選項會顯示 -l 選項的資訊,加上所有系統的其它元件資訊。
當顯示 multipath 設定時,您可以用
multipath 指令的 -v 選項,顯示三種訊息等級。使用 -v0 表示沒有任何輸出。-v1 會列出已建立、以更新的 multipath 名稱,您可以將這些名稱導向到其它程式去,例如 kpartx。使用 -v2 會列出所有已偵測到的路徑、multipath、以及 device map。
以下範例顯示了
multipath -l 指令的輸出。
# multipath -l
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
以下範例顯示了
multipath -ll 指令的輸出。
# multipath -ll
3600d0230000000000e13955cc3757801 dm-10 WINSYS,SF2372
size=269G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 19:0:0:1 sdc 8:32 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 18:0:0:1 sdh 8:112 active ready running
3600d0230000000000e13955cc3757803 dm-2 WINSYS,SF2372
size=125G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 19:0:0:3 sde 8:64 active ready running
`- 18:0:0:3 sdj 8:144 active ready running
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.