Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

5.8. Multipath Queries with multipath Command

You can use the -l and -ll options of the multipath command to display the current multipath configuration. The -l option displays multipath topology gathered from information in sysfs and the device mapper. The -ll option displays the information the -l option displays in addition to all other available components of the system.
멀티패스 설정 보기를 할 때, multipath 명령의 -v 옵션으로 지정할 수 있는 세 가지 레벨의 상세 보기가 있습니다. -v0 옵션을 지정하면 아무런 출력 결과를 얻지 못하게 됩니다. -v1 옵션으로는 생성되거나 업데이트된 멀티패스 이름만을 출력하게 되어, kpartx와 같은 다른 도구에 사용할 수 있습니다. -v2 옵션을 지정하면 검색된 모든 경로, 멀티패스, 장치 맵을 출력하게 됩니다.
다음의 예는 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
The following example shows the output of a multipath -ll command.
# 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