Show Table of Contents
5.12. Multipathd 命令
可使用
multipathd 命令管理 multipathd 守护进程。有关可用的 multipathd 命令的详情,请查看 multipathd(8) 手册页。
某些
multipathd 命令包含 format 选项,后接通配符。可以使用以下命令显示可用的通配符清单。
# multipathd show wildcards
从 Red Hat Enterprise Linux release 7.3 开始,
multipathd 命令支持新格式命令,以便显示多路径状态以及使用 “raw”格式版本的路径。在 raw 格式中,不会显示标头,且不会添加字段以便将标头与该列对其。反之,该字段以指定的格式显示。这样就可以更好地使用输出结果编写脚本。现在可使用 multipathd show wildcards 命令显示格式字符串中的通配符。
要按照
multipathd 命令显示 multipathd 监控的多路径设备,使用带多路径通配符的格式字符串,可以是常规格式,也可以是 raw 格式。
list|show maps|multipaths format $format list|show maps|multipaths raw format $format
以下
multipathd 命令显示 multipathd 监控的多路径设备,使用带多路径通配符的格式字符串,可以是常规格式,也可以是 raw 格式。
list|show paths format $format list|show paths raw format $format
以下命令显示
multipathd show maps 中非 raw 和 raw 格式之间的不同。注:在 raw 格式中没有标头,只在每个列之间有一个空格。
#multipathd show maps format "%n %w %d %s"name uuid sysfs vend/prod/rev mpathc 360a98000324669436c2b45666c567942 dm-0 NETAPP,LUN #multipathd show maps raw format "%n %w %d %s"mpathc 360a98000324669436c2b45666c567942 dm-0 NETAPP,LUN

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.