DM Multipath


Red Hat Enterprise Linux 5

DM Multipath 설정 및 관리

엮음 3

초록

다음 부분에서는 Red Hat Enterprise Linux 5에서의 Device-Mapper Multipath 기능 사용에 관해 설명합니다.

머리말

다음 부분에서는 RHEL 5 릴리즈 용 Red Hat Enterprise Linux의 DM-Multipath (Device Mapper Multipath)에 대해 설명합니다.

1. 대상

이 문서는 Linux 운영 체제를 실행하고 있는 시스템을 관리하는 시스템 관리자가 사용할 수 있습니다. 따라서 Red Hat Enterprise Linux를 사용할 수 있어야 합니다.

3. 피드백

오자를 발견하셨거나, 보다 좋은 메뉴얼을 만들기 위한 제안이 있다면, 언제든지 저희에게 알려 주십시오! rh-cs에 대한 리포트를 버그질라 (http://bugzilla.redhat.com/bugzilla/)에 제출해 주십시오.
Be sure to mention the manual's identifier:
Bugzilla component: Documentation-cluster
Book identifier: DM_Multipath(EN)-5 (2009-01-06T15:35)
By mentioning this manual's identifier, we know exactly which version of the guide you have.
문서 자료 개선을 위한 제안이 있으시면, 최대한 상세하고 명확히 설명해 주시기 바랍니다. 오류를 발견하셨다면, 저희가 쉽게 식별할 수 있도록 섹션 번호와 주위의 문장들을 함께 보내주시기 바랍니다.

1장. DM-Multipath (Device Mapper Multipathing)

DM-Multipath (Device Mapper Multipathing)로 서버 노드와 단일 장치로의 저장 장치 어레이 사이에서 다중 I/O 경로를 설정할 수 있습니다. 이러한 I/O 경로는 분리된 케이블, 스위치 , 제어기를 포함시킬 수 있는 물리적 SAN 연결입니다. 멀티패싱은 결합된 경로로 구성된 새로운 장치를 생성하여 I/O 경로를 모읍니다.

1.1. DM-Multipath 개요

DM-Multipath는 다음을 제공하기 위해 사용됩니다:
  • 이중화
    DM-Multipath는 활성/비활성 설정에서 장애 조치를 제공할 수 있습니다. 활성/비활성 설정에서, 경로 절반만이 아무때에나 I/O 용으로 사용됩니다. I/O 경로 요소 (케이블, 스위치, 제어기)에 장애가 발생할 경우 DM-Multipath는 다른 경로로 전환합니다.
  • 성능 향상
    DM-Multipath는 I/O가 라운드 로빈 (round-robin) 상태에 있는 경로를 통해 지나가는 위치에서 활성/비활성 모드로 설정될 수 있습니다. 일부 설정에서 DM-Multipath는 I/O 경로에서의 부하량을 감지하여 이를 재조정할 수 있습니다.
그림 1.1. “Active/Passive Multipath Configuration with One RAID Device” shows an active/passive configuration with two I/O paths from the server to a RAID device. There are 2 HBAs on the server, 2 SAN switches, and 2 RAID controllers.
Active/Passive Multipath Configuration with One RAID Device

그림 1.1. Active/Passive Multipath Configuration with One RAID Device

이 설정에서, hba1, SAN1, 제어기 1을 통해 지나가는 첫 번째 I/O 경로와 hba2, SAN2, 제어기 2를 통해 지나가는 두 번째 I/O 경로가 있습니다. 이러한 설정에는 장애가 발생할 수 있는 지점이 여러개 있습니다.
  • HBA 장애
  • FC 케이블 장애
  • SAN 스위치 장애
  • 어레이 제어기 포트 장애
DM-Multipath 설정으로, 이러한 지점에서의 장애는 DM-Multipath가 다른 I/O 경로로 전환하게 합니다.
그림 1.2. “Active/Passive Multipath Configuration with Two RAID Devices” shows a more complex active/passive configuration with 2 HBAs on the server, 2 SAN switches, and 2 RAID devices with 2 RAID controllers each.
Active/Passive Multipath Configuration with Two RAID Devices

그림 1.2. Active/Passive Multipath Configuration with Two RAID Devices

In the example shown in 그림 1.2. “Active/Passive Multipath Configuration with Two RAID Devices”, there are two I/O paths to each RAID device (just as there are in the example shown in 그림 1.1. “Active/Passive Multipath Configuration with One RAID Device”). With DM-Multipath configured, a failure at any of the points of the I/O path to either of the RAID devices will cause DM-Multipath to switch to the alternate I/O path for that device.
그림 1.3. “Active/Active Multipath Configuration with One RAID Device” shows an active/active configuration with 2 HBAs on the server, 1 SAN switch, and 2 RAID controllers. There are four I/O paths from the server to a storage device:
  • hba1에서 제어기1 까지
  • hba1에서 제어기 2 까지
  • hba2에서 제어기1 까지
  • hba2에서 제어기2 까지
설정에서 I/O는 이러한 네 개의 경로 중 배치될 수 있습니다.
Active/Active Multipath Configuration with One RAID Device

그림 1.3. Active/Active Multipath Configuration with One RAID Device

1.2. 저장 장치 어레이 지원

By default, DM-Multipath includes support for the most common storage arrays that support DM-Multipath. The supported devices can be found in the multipath.conf.defaults file. If your storage array supports DM-Multipath and is not configured by default in this file, you may need to add them to the DM-Multipath configuration file, multipath.conf. For information on the DM-Multipath configuration file, see 4장. DM-Multipath 설정 파일 .
일부 저장 장치 어레이는 특정한 I/O 오류 처리 및 경로를 변경해야 합니다. 이에는 분리된 하드웨어 처리 커널 모듈이 필요합니다.

1.3. DM-Multipath 구성 요소

표 1.1. “DM-Multipath 구성 요소 ”. describes the components of DM-Multipath.
Expand
표 1.1. DM-Multipath 구성 요소
구성 요소 설명
dm-multipath kernel module I/O를 재라우팅하고 경로 및 경로 그룹에 대해 장애 조치를 합니다.
multipath command 멀티패스 장치를 나열하여 설정합니다. 일반적으로 /etc/rc.sysinit로 시작되며, 블록 장치가 추가될 때 마다 udev 프로그램으로 시작할 수 있으며 또는 initramfs 파일 시스템으로 실행할 수 도 있습니다.
multipathd daemon 경로를 모니터합니다; 경로 장애가 발생하여 복구되 듯이, 이는 경로 그룹 스위치를 초기화할 수 있습니다. 멀티패스 장치에 대화식 변경을 제공합니다. 이는 /etc/multipath.conf 파일에서 변경된 사항이 있을 경우 다시 시작해야 합니다.
kpartx command 장치 상에 파티션에 해당하는 장치 매퍼 장치를 생성합니다 이는 DM-MP를 사용한 DOS 기반 파티션 명령을 사용해야 합니다. kpartx는 패키지로 제공되지만, device-mapper-multipath 패키지는 이에 종속되어 있습니다.

1.4. DM-Multipath 설정 개요

DM-Multipath에는 일반적인 멀티패스 설정에 적합한 컴파일된 기본값 설정이 포함되어 있습니다. DM-multipath 설정은 간단한 절차를 따릅니다.
DM-Multipath로 시스템을 설정하기 위한 기본 절차는 다음과 같습니다:
  1. device-mapper-multipath rpm 설치
  2. multipath.conf 설정 파일 편집:
    • 기본값 블랙리스트에 주석 달기
    • 필요에 따라 기존의 기본값 변경
    • 설정 파일 저장
  3. 멀티패스 데몬 시작
  4. multipath 명령으로 멀티패스 장치 생성
Detailed setup instructions for several example multipath configurations are provided in see 3장. DM-Multipath 설정 .

2장. 멀티패스 장치

DM-Multipath 없이, I/O 경로가 동일한 저장 장치 제어기까지 동일한 서버 노드를 연결할 경우에도, 서버 노드에서 저장 장치 제어기까지의 경로는 분리된 장치로 시스템에서 다루게 됩니다. DM-Multipath는 기본 장치의 상단 부분에 단일 멀티패스 장치를 생성하여 I/O 경로를 논리적으로 구성하는 방법을 제공합니다.

2.1. 멀티패스 장치 식별자

각각의 멀티패스 장치에는 WWID (World Wide Identifier)가 있어, 고유하게 구별되고 변경되지 않게 합니다. 기본값으로 멀티패스 장치 이름은 해당 WWID로 설정됩니다. 다른 방법으로, 멀티패스 설정 파일에서 mpathn 형식의 고유한 노드명으로 별칭을 설정하는 user_friendly_names 옵션을 설정할 수 있습니다.
예를 들어, 단일 FC 스위치를 통한 두 개의 포트가 있는 저장 장치 제어기에 부착된 두 개의 HBA가 있는 노드에서는 다음과 같은 네 개의 장치를 확인할 수 있습니다: /dev/sda, /dev/sdb, dev/sdc, /dev/sdd. DM-Multipath는 멀티패스 설정에 따라 이러한 네 개의 기본 장치로 I/O를 재라우팅하는 고유한 WWID로 단일 장치를 생성합니다. user_friendly_names 설정 옵션이 yes로 설정되어 있을 경우, 멀티패스 장치 이름은 mpathn으로 설정됩니다.
DM-Multipath 제어 하에 새 장치를 가져올 경우, /dev 디렉토리 아래에 있는 세 군데의 다른 위치에서 새 장치를 확인하실 수 있습니다: /dev/mapper/mpathn, /dev/mpath/mpathn, and /dev/dm-n.
  • /dev/mapper에 있는 장치는 이전의 부팅 프로세스에서 생성된 것입니다. 논리 볼륨을 생성할 때와 같이 멀티패스된 장치를 액세스하기 위해 이 장치를 사용합니다.
  • /dev/mpath에 있는 장치는 편의에 따라 제공되므로 멀티패스된 모든 장치는 하나의 디렉토리에서 볼 수 있습니다. 이러한 장치는 udev 장치 관리자에 의해 생성되며 이 장치로 시스템을 액세스해야 할 경우 시작 시 사용 가능하지 않을 수 도 있습니다. 논리 볼륨이나 파일 시스템을 생성하기 위해 이 장치를 사용하지 마십시오.
  • /dev/dm-n 형식의 모든 장치는 내부 용으로만 사용해야 하며 그 외에는 사용해서는 안됩니다.
For information on the multipath configuration defaults, including the user_friendly_names configuration option, see 4.3절. “설정 파일 기본값 ”.
You can also set the name of a multipath device to a name of your choosing by using the alias option in the multipaths section of the multipath configuration file. For information on the multipaths section of the multipath configuration file, see see 4.4절. “멀티패스 장치 설정 속성 ”.

2.2. 클러스터에서 일관된 멀티패스 장치 이름

user_friendly_names 설정 옵션이 yes로 설정되어 있을 때, 멀티패스 장치 이름은 노드에서 고유한 것이어야 하지만, 멀티패스 장치를 사용하는 모든 노드에서 동일할 수는 없습니다. 멀티패스 장치에서 논리 장치를 생성하기 위해 LVM을 사용할 경우 이는 아무런 어려움이 없지만, 멀티패스 장치 이름이 클러스터에 있는 모든 노드에서 일치해야 할 경우, 다음과 같은 절차 중 하나를 실행합니다:
  • Use the alias option in the multipaths section of the multipath configuration file to set the name of the multipath device. The alias for the multipath device is consistent across all the nodes in a cluster. For information on the multipaths section of the multipath configuration file, see see 4.4절. “멀티패스 장치 설정 속성 ”.
  • 시스템 정의된 사용자 편리한 이름을 클러스터에 있는 모든 노드에서 일관되게 사용하고자 할 경우, 하나의 장치에서 모든 멀티패스 장치를 설정합니다. 그 후, 설정된 하나의 장치에서 클러스터에 있는 모든 다른 장치로 /var/lib/multipath/bindings 파일을 복사합니다.

2.3. 멀티패스 장치 속성

In addition to the user_friendly_names and alias options, a multipath device has numerous attributes. You can modify these attributes for a specific multipath device by creating an entry for that device in the multipaths section of the multipath configuration file. For information on the multipaths section of the multipath configuration file, see see 4.4절. “멀티패스 장치 설정 속성 ”.

2.4. 논리 볼륨에 있는 멀티패스 장치

멀티패스 장치를 생성한 후에, LVM 물리 볼륨을 생성할 때 물리 장치 이름을 사용하듯이 멀티패스 장치 이름을 사용할 수 있습니다. 예를 들어, /dev/mpath/mpath0가 멀티패스 장치 이름일 경우, 다음과 같은 명령은 물리 볼륨으로 /dev/mapper/mpath0을 표시합니다.
pvcreate /dev/mapper/mpath0
기타 다른 LVM 물리 장치를 사용하듯이 LVM 볼륨 그룹을 생성할 때 LVM 물리 장치를 사용할 수 있습니다.
기본적인 물리 장치와 같이 활성/비활성 멀티패스 어레이를 사용하는 LVM 논리 볼륨을 생성할 때, lvm.conf에 필터를 포함시켜 멀티패스 장치의 기본이되는 디스크를 제외시켜야 합니다. 이는 I/O를 받을 때 어레이가 활성 경로에서 비활성 경로로 자동 변경될 경우, 멀티패스는 장애 조치(failover)되어 이러한 장치가 필터되지 않을 경우 LVM이 비활성 경로를 스캔할 때 마다 장애 복구 (failback)하게 됩니다. 비활성 경로를 활성으로 변경시키는 명령이 필요한 활성/비활성 어레이의 경우, 이러한 상황이 발생하면 LVM은 경고 메세지를 출력합니다.
멀티패스 설정 파일 (lvm.conf)에 있는 모든 SCSI 장치를 필터하기 위해 파일의 devices 부분에 다음과 같은 필터를 포함시킵니다.
filter = [ "r/disk/", "r/sd.*/", "a/.*/" ]

3장. DM-Multipath 설정

다음 부분에서는 DM-Multipath 설정에 대한 단계적인 절차의 예를 다루고 있습니다. 이에는 다음과 절차가 포함됩니다:
  • 기본적인 DM-Multipath 설정
  • 로컬 디스크 무시
  • 설정 파일에 장치 추가

3.1. DM-Multipath 설정

시스템에 DM-Multipath를 설정하기 전에, 시스템이 업데이트되었는지와 device-mapper-multipath 패키지가 포함되어 있는 지를 확인합니다.
기본적인 장애조치 설정에 필요한 DM-Multipath를 설정하기 위해 다음과 같은 절차를 따릅니다.
  1. 파일의 상단 부분의 다음과 같은 행에 주석을 달아 /etc/multipath.conf 파일을 편집합니다. 초기 상태에서 이 부분의 설정 파일은 모든 장치를 블랙리스트합니다. 멀티패싱을 활성화하려면 주석을 달아야 합니다.
    blacklist {
            devnode "*"
    }
    
    행에 주석을 달면, 이 부분은 다음과 같이 나타납니다.
    # blacklist {
    #        devnode "*"
    # }
    
  2. DM-Multipath의 기본값 설정은 시스템에 기록되며 /etc/multipath.conf 파일에 설정할 필요가 없습니다.
    The default value of path_grouping_policy is set to failover, so in this example you do not need to change the default value. For information on changing the values in the configuration file to something other than the defaults, see 4장. DM-Multipath 설정 파일 .
    설정 파일의 초기 기본값 부분에서는 멀티패스 장치 이름이 mpathn 형식인 시스템을 설정합니다; 이러한 설정을 하지 않으면, 멀티패스 장치 이름은 장치의 WWID로 별칭될 수 있습니다.
  3. 설정 파일을 저장하고 편집기를 종료합니다.
  4. 다음의 명령을 실행합니다:
    modprobe dm-multipath
    service multipathd start
    multipath -v2
    
    multipath -v2 명령으로 어떤 장치가 멀티패스되었는 지를 보여주는 멀티패스 경로를 출력합니다. 아무 출력 결과가 나타나지 않을 경우, 모든 SAN 연결이 올바르게 설정되어 있고 시스템이 멀티패스되어 있는 지를 확인합니다.
    For further information on the multipath command output, see 5.4절. “Multipath Command Output”.
  5. 다음의 명령을 실행하여 부팅시 멀티패스 데몬이 시작되는 지를 확인합니다:
    chkconfig multipathd on
    
Since the value of user_friendly_name is set to yes in the configuration file the multipath devices will be created as /dev/mapper/mpathn. For information on setting the name of the device to an alias of your choosing, see 4장. DM-Multipath 설정 파일 .

3.2. 멀티패스 장치 생성 시 로컬 디스크 무시

일부 장치에는 내부 디스크에 대해 로컬 SCSI 카드가 있습니다. 이러한 장치 용으로 DM-Multipath 사용을 권장하지 않습니다. 다음의 절차는 멀티패스를 설정할 때 로컬 디스크를 무시하기 위해 멀티패스 설정 파일을 수정하는 방법에 대해 보여주고 있습니다.
  1. 어떤 디스크가 내부 디스크인지를 지정하고 블랙리스트에 이를 표시합니다.
    예시에서 /dev/sda는 내부 디스크로 되어있습니다. 기본값 멀티패스 설정 파일에 본래 설정되어 있는 것으로서, multipath -v2 명령을 실행하면 멀티패스 맵에 /dev/sda 로컬 디스크가 나타나게 됩니다.
    For further information on the multipath command output, see 5.4절. “Multipath Command Output”.
    [root@rh4cluster1 ~]# multipath -v2
    create: SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1
    [size=33 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 0:0:0:0 sda  8:0    [--------- 
    
    device-mapper ioctl cmd 9 failed: Invalid argument
    device-mapper ioctl cmd 14 failed: No such device or address
    create: 3600a0b80001327d80000006d43621677
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:0 sdb  8:16    
      \_ 3:0:0:0 sdf  8:80    
    
    create: 3600a0b80001327510000009a436215ec
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:1 sdc  8:32    
      \_ 3:0:0:1 sdg  8:96    
    
    create: 3600a0b80001327d800000070436216b3
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:2 sdd  8:48    
      \_ 3:0:0:2 sdh  8:112   
    
    create: 3600a0b80001327510000009b4362163e
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:3 sde  8:64    
      \_ 3:0:0:3 sdi  8:128
    
  2. 멀티패스 맵에서 장치 매퍼가 /dev/sda를 맵핑하지 않게 하기 위해, /etc/multipath.conf 파일의 블랙리스트 부분을 편집하여 이 장치를 포함시킵니다. devnode 유형을 사용하여 sda 장치를 블랙리스트할 수 있을 지라도, 재부팅시 /dev/sda가 동일하게 되라는 보장이 없으므로 이는 안전한 절차가 될 수 없습니다. 개별적 장치를 블랙리스트하기 위해 장치의 WWID를 사용하여 블랙리스트할 수 있습니다.
    multipath -v2 명령의 출력 결과에서 /dev/sda 장치의 WWID는 SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1입니다. 이러한 장치를 블랙리스트하려면, /etc/multipath.conf 파일에 다음을 포함시킵니다.
    blacklist {
          wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1
    }
    
  3. /etc/multipath.conf 파일을 업데이트한 후, 파일을 다시 불러오기 위해 수동으로 multipathd 데몬을 작동시켜야 합니다. 다음의 명령은 업데이트된 /etc/multipath.conf 파일을 다시 불러오기합니다.
    service multipathd reload
    
  4. 다음과 같은 명령을 실행합니다:
    multipath -F
    multipath -v2
    
    다음의 에에서 볼 수 있듯이, 로컬 디스크나 디스크는 더이상 새로운 멀티패스 맵에 나열되어서는 안됩니다.
    [root@rh4cluster1 ~]# multipath -F
    [root@rh4cluster1 ~]# multipath -v2
    create: 3600a0b80001327d80000006d43621677
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:0 sdb  8:16    
      \_ 3:0:0:0 sdf  8:80    
    
    create: 3600a0b80001327510000009a436215ec
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:1 sdc  8:32    
      \_ 3:0:0:1 sdg  8:96    
    
    create: 3600a0b80001327d800000070436216b3
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:2 sdd  8:48    
      \_ 3:0:0:2 sdh  8:112   
    
    create: 3600a0b80001327510000009b4362163e
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:3 sde  8:64    
      \_ 3:0:0:3 sdi  8:128
    

3.3. 멀티패싱 데이터베이스에 장치 추가

기본값으로 DM-Multipath에는 DM-Multipath를 지원하는 가장 일반적인 저장 장치 어레이에 대한 지원이 포함되어 있습니다. 지원되는 장치가 포함된 기본 설정값은 multipath.conf.defaults 파일에서 확인하실 수 있습니다.
알려진 멀티패스 장치로서 기본값으로 지원되지 않는 저장 장치를 추가하고자 할 경우, /etc/multipath.conf 파일을 편집하여 해당하는 장치 정보를 삽입합니다.
예를 들어, HP Open-V 시리즈에 관한 정보를 추가하기 위한 항목은 다음과 같습니다:
devices {
       device {
               vendor "HP"
               product "OPEN-V."
               getuid_callout "/sbin/scsi_id -g -u -p0x80 -s /block/%n"
       }
}
For more information on the devices section of the configuration file, see 4.5절. “설정 파일 장치 ”.

4장. DM-Multipath 설정 파일

기본값으로 DM-Multipath는 가장 일반적으로 사용되는 멀티패싱 설정 값을 제공합니다. 또한 DM-Multipath에는 DM-Multipath를 지원하는 가장 일반적인 저장 장치 어레이 지원이 있습니다. 기본 설정값 및 지원 장치는 /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults 파일에서 확인할 수 있습니다.
/etc/multipath.conf 설정 파일을 수정하여 DM-Multipath에 해당하는 기본 설정 값을 덮어쓰기할 수 있습니다. 필요에 따라 기본값으로 지원되지 않는 저장 장치 어레이를 설정 파일에 추가시킬 수 있습니다. 다음 부분에서는 multipath.conf 파일을 구문 분석하고 수정하는 방법에 대해 다루고 있습니다. 이는 다음과 같은 부분으로 나뉘어 있습니다:
  • 설정 파일 개요
  • 설정 파일 블랙리스트
  • 설정 파일 기본값
  • 설정 파일 멀티패스
  • 설정 파일 장치
멀티패스 설정 파일에서 설정에 필요한 부분이나 multipath.conf.defaults 파일에 지정된 기본값에서 변경하고자 하는 부분만을 지정해야 합니다. 설정 환경에 적합하지 않은 파일 부분이 있거나 기본값을 덮어쓰기할 필요가 없을 경우, 초기 파일에서 처럼 주석을 달아둘 수 있습니다.
설정 파일에서는 정규 표현식 기술 구문을 허용합니다.
설정 파일의 주석을 붙은 버전은 /usr/share/doc/device-mapper-multipathd-0.4.7/multipath.conf.annotated에서 확인하실 수 있습니다.

4.1. 설정 파일 개요

멀티패스 설정 파일은 다음과 같은 부분으로 나뉘어져 있습니다:
blacklist
멀티패스 용으로 사용될 특정 장치 목록. 기본값으로 모든 장치는 블랙리스트됩니다. 주로 기본값 블랙리스트 부분에는 주석을 달게 됩니다.
blacklist_exceptions
블랙리스트 부분의 매개 변수에 따라 블랙리스트될 수 있는 멀티패스 후보 목록.
defaults
DM-Multipath에 대한 일반적인 기본값 설정
multipaths
개별적 멀티패스 장치의 특성 설정. 이러한 값은 설정 파일의 defaultsdevices에서 지정된 값을 덮어쓰기 합니다.
devices
개별적 저장 장치 제어기 설정. 이러한 값은 설정 파일의 defaultsdevices에서 지정된 값을 덮어쓰기 합니다. 기본값으로 지원도지 않는 저장 장치 배열을 사용하고 있을 경우, 배열에 해당하는 devices 하부 섹션을 생성해야 할 수 도 있습니다.
시스템이 멀티패스 장치 속성을 지정할 때, 먼저 이는 멀티패스 설정을 확인하고, 장치별 설정을 확인한 뒤, 멀티패스 시스템 기본값을 확인합니다.

4.2. 설정 파일 블랙리스트

멀티패스 설정 파일의 blacklist 부분에서는 시스템이 멀티패스 장치를 설정할 때 사용되지 않는 장치를 지정합니다. 블랙리스트된 장치는 멀티패스 장치 그룹에 포함되지 않게 됩니다.
초기 설정 파일에 다음과 같은 행이 나타나면 기본값으로 모든 장치가 블랙리스트됩니다.
blacklist {
        devnode "*"
}
To enable multipathing on all of the devices that are supported by default, comment out those lines, as described in 3.1절. “DM-Multipath 설정 ”.
전사적 블랙리스트에 주석을 단 후에, 일반적인 장치 유형 및 블랙리스트에 개별적 장치를 지정할 수 있습니다. 다음과 같은 기준에 따라 장치를 블랙리스트할 수 있습니다:
By default, a variety of device types are blacklisted, even after you comment out the initial blacklist section of the configuration file. For information, see 4.2.2절. “장치 이름에 따라 블랙리스트하기 ”.

4.2.1. WWID에 따라 블랙리스트하기

설정 파일의 blacklist 부분에 있는 wwid 항목으로 WWID (World-Wide IDentification)에 따라 블랙리스트하기 위해 개별 장치를 지정할 수 있습니다.
다음의 예에서는 WWID 26353900f02796769 로 장치를 블랙리스트하는 설정 파일 행을 보여주고 있습니다.
blacklist {
       wwid 26353900f02796769
}

4.2.2. 장치 이름에 따라 블랙리스트하기

장치 이름으로 장치 유형을 블랙리스트하여 설정 파일의 blacklist 부분에 있는 devnode 항목을 지정하여 멀티패스 장치 그룹이 되지 않게 할 수 있습니다.
다음의 예에서는 sd* 장치로 블랙리스트한 이후, 모든 SCSI 장치를 블랙리스트할 수 있는 설정 파일 행을 보여주고 있습니다.
blacklist {
       devnode "^sd[a-z]"
}
설정 파일의 blacklist 부분에 있는 devnode 항목을 사용하여 특정 유형의 모든 장치를 지정하지 않고 블랙리스트에 개별적 장치를 지정할 수 있습니다; 이는 권장 사항이 아니지만, udev 규칙에 의해 정적으로 맵핑되지 않을 경우, 재부팅 시 특정 장치가 동일한 이름을 유지하리라는 보장이 없습니다. 예를 들어, 재부팅 시 장치 이름은 /dev/sda에서 /dev/sdb로 변경될 수 있습니다.
By default, the following devnode entries are compiled in the default blacklist; the devices that these entires blacklist do not generally support DM-Multipath. To enable multipathing on any of these devices, you would need to specify them in the blacklist_exceptions section of the configuration file, as described in 4.2.4절. “블랙리스트 예외 설정 ”.
blacklist {
       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
       devnode "^hd[a-z]"
}

4.2.3. 장치 유형에 따라 블랙리스트하기

device 부분에 있는 설정 파일의 blacklist 부분에서 특정 장치 유형을 지정하실 수 있습니다. 다음의 예에서는 모든 IBM DS4200 및 HP 장치를 블랙리스트하고 있습니다.
blacklist {
       device {
               vendor  "IBM"
               product "3S42"       #DS4200 Product 10
       }
       device {
               vendor  "HP"
               product "*"
       }
}

4.2.4. 블랙리스트 예외 설정

You can use the blacklist_exceptions section of the configuration file to enable multipathing on devices that have been blacklisted by default. For example, by default, devices with vendor = "IBM" and product = "S/390.*" are blacklisted since usually DASD devices are used for local storage. If you do need to enable multipathing on these devices, uncomment the following lines in the configuration file:
blacklist_exceptions {
       device {
               vendor  "IBM"
               product "S/390.*"
       }
}
설정 파일의 blacklist_exceptions 부분에서 장치를 지정할 때, 블랙리스트에 지정한 것과 동일한 방법으로 예외 설정을 해야 합니다. 예를 들어, 블랙리스트된 장치가 WWID와 관련되어 있을 지라도, WWID 예외 설정은 devnode 블랙리스트 항목으로 지정된 장치에는 적용되지 않게 됩니다. 이와 유사하게, devnode 예외 설정은 devnode 항목에만 적용되며 device 예외 설정은 장치 항목에만 적용됩니다.

4.3. 설정 파일 기본값

/etc/multipath.conf 설정 파일에는 다음과 같이 user_friendly_names 매개 변수가 yes로 설정된 defaults 부분이 포함되어 있습니다.
defaults {
        user_friendly_names yes
}
이는 user_friendly_names 매개 변수의 기본값을 덮어쓰기합니다.
설정 파일에는 설정 기본값 템플릿이 들어 있습니다. 다음과 같이 이 부분에 주석을 답니다.
#defaults {
#       udev_dir                /dev
#       polling_interval        10
#       selector                "round-robin 0"
#       path_grouping_policy    multibus
#       getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
#       prio_callout            /bin/true
#       path_checker            readsector0
#       rr_min_io               100
#       max_fds                 8192
#       rr_weight               priorities
#       failback                immediate
#       no_path_retry           fail
#       user_friendly_names     yes
#}
설정 매개변수에 해당하는 기본값을 덮어쓰기하려면, 해당하는 행을 템플릿에서 defaults 부분으로 복사하여 주석 해제 처리를 합니다. 예를 들어, path_grouping_policy 매개 변수를 덮어쓰기하려면 이는 failover 기본값이 아닌 multibus이어야 하며, 해당 행을 템플릿에서 설정 파일의 초기 defaults 부분으로 복사한 후, 다음과 같이 주석 해제 처리합니다.
defaults {
        user_friendly_names     yes
        path_grouping_policy    multibus
}
표 4.1. “멀티패스 설정 기본값 ” describes the attributes that are set in the defaults section of the multipath.conf configuration file. These values are used by DM-Multipath unless they are overwritten by the attributes specified in the devices and multipaths sections of the multipath.conf file.
Expand
표 4.1. 멀티패스 설정 기본값
속성 설명
udev_dir udev 장치 노드가 생성된 곳에서 디렉토리를 지정합니다. 기본값은 /udev입니다.
polling_interval 두 개의 경로 체크 사이에서 초 단위로 간격을 지정합니다. 기본값은 5입니다.
selector 다음 I/O 실행에 사용할 경로를 결정하는데 있어서 사용할 기본값 알고리즘을 지정합니다. 기본값은 round-robin 0입니다.
path_grouping_policy
미지정된 멀티패스에 적용할 기본값 경로 그룹 정책을 지정합니다. 가능한 값은 다음과 같습니다:
failover = 우선 순위 그룹 당 1 개의 경로
multibus = 1 개의 우선 순위 그룹에 있는 유효한 모든 경로
group_by_serial = 검색된 시리얼 번호 당 1 개의 우선 순위 그룹
group_by_prio = 경로 우선 순위 값 당 1 개의 우선 순위 그룹
group_by_node_name = 대상 노드 이름 당 1 개의 우선 순위 그룹
기본값은 failover입니다.
getuid_callout
Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
기본값은 /sbin/scsi_id -g -u -s입니다.
prio_callout Specifies the the default program and arguments to call out to obtain a path priority value. For example, the ALUA bits in SPC-3 provide an exploitable prio value for example. "none" is a valid value. The default value is no callout, indicating all paths are equal
path_checker 경로 상태를 결정하는 데 사용되는 기본값 방식을 지정합니다. 가능한 값에는 다음과 같은 것이 있습니다: readsector0, tur, emc_clariion, hp_sw, directio. 기본값은 readsector0입니다.
rr_min_io 현재 경로 그룹에 있는 다음 경로로 전환하기 전 경로로 라우팅하기 위한 I/O 요청 수를 지정합니다. 기본값은 1000입니다.
max_fds (RHEL 5.2 및 이후 버전) multipathd 프로세스 용 오픈 파일 디스크립터의 최대 수를 설정합니다. RHEL 5.3에서 이러한 옵션은 max 값을 허용하여, 시스템에 최대의 오픈 파일 디스크립터 수를 설정합니다.
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
uniform으로 설정되어 있을 경우, 모든 경로는 동일하게 비중을 두게 됩니다. 기본값은 uniform입니다.
failback
경로 그룹 장애 복구를 지정합니다.
0 값이나 또는 immediate로 현재 경로 그룹보다 높은 우선 순위를 갖는 경로 그룹이 있을 경우 즉시 시스템이 높은 우선 순위를 갖은 경로 그룹으로 전환하게 됨을 지정합니다.
0 보다 큰 숫자 값을 지정하여 초 단위로 지연 장애 복구가 되도록 합니다.
manual 값을 지정하여 실행자가 직접 장애 복구할 수 있도록 합니다.
기본값은 manual입니다.
no_path_retry
이러한 속성에 해당하는 숫자 값을 지정하여 대기 상태를 비활성화시키기 전 시스템이 장애 발생 경로를 사용하도록 할 횟수를 정합니다.
fail 값은 대기 상태 없이 즉시 장애가 발생함을 나타냅니다.
queue 값은 경로가 수정될 때 까지 대기 상태가 계속 됨을 나타냅니다.
기본값은 (null)입니다.
flush_on_last_del (RHEL 5.3 및 이후 버전) yes로 설정되어 있을 경우, 장치로의 마지막 경로가 삭제될 때 multipathd 데몬은 대기열을 비활성화하게 됩니다. 기본값은 no입니다.
queue_without_daemon (RHEL 5.3 및 이후 버전) no로 설정되어 있을 경우, multipathd 데몬이 종료되면 이는 모든 장치에 대한 대기열을 비활성화하게 됩니다. 기본값은 yes입니다.
user_friendly_names yes로 설정되어 있을 경우, 시스템이 bindings 파일을 사용하여 mpathn 형식으로 멀티패스에 지속적이고 고유한 별칭을 지정해야 합니다. bindings 파일의 기본값 위치는 /var/lib/multipath/bindings이지만, 이는 bindings_file 옵션으로 변경될 수 있습니다. no라고 설정되어 있을 경우, 시스템에 멀티패스에 대한 별칭으로 WWID 사용을 지정합니다. 다른 경우, 여기서 지정된 것은 설정 파일의 multipaths 부분에서 지정한 특정 장치 별칭에 의해 덮어쓰기될 수 있습니다. 기본값은 no 입니다.
bindings_file (RHEL 5.2 및 이후 버전) user_friend_names 옵션과 함께 사용될 bindings 파일의 위치입니다. 기본값은 /var/lib/multipath/bindings입니다.
mode (RHEL 5.3 및 이후 버전) octal에서 멀티패스 장치 노드 용으로 사용할 모드입니다. 기본값은 프로세스에 의해 결정됩니다.
uid (RHEL 5.3 및 이후 버전) 멀티패스 장치 노드 용으로 사용할 사용자 ID입니다. 숫자로된 사용자 ID를 사용해야 합니다. 기본값은 프로세스에 의해 결정됩니다.
gid (RHEL 5.3 및 이후 버전) 멀티패스 장치 노드 용으로 사용할 그룹 ID입니다. 숫자로된 그룹 ID를 사용해야 합니다. 기본값은 프로세스에 의해 결정됩니다.

4.4. 멀티패스 장치 설정 속성

표 4.2. “멀티패스 속성 ” shows the attributes that you can set in the multipaths section of the multipath.conf configuration file for each specific multipath device. These attributes apply only to the one specified multipath. These defaults are used by DM-Multipath and override attributes set in the defaults and devices sections of the multipath.conf file.
Expand
표 4.2. 멀티패스 속성
속성 설명
wwid multipath 속성이 적용되는 멀티패스 장치의 WWID를 지정합니다.
alias multipath 속성을 적용할 곳에 멀티패스 장치에 해당하는 상징적 이름을 지정합니다.
path_grouping_policy
미지정된 멀티패스에 적용할 기본값 경로 그룹 정책을 지정합니다. 가능한 값은 다음과 같습니다:
failover = 우선 순위 그룹 당 1 개의 경로
multibus = 1 개의 우선 순위 그룹에 있는 유효한 모든 경로
group_by_serial = 검색된 시리얼 번호 당 1 개의 우선 순위 그룹
group_by_prio = 경로 우선 순위 값 당 1 개의 우선 순위 그룹
group_by_node_name = 대상 노드 이름 당 1 개의 우선 순위 그룹
path_selector 다음 I/O 실행에 어떤 경로를 사용할 지를 결정하는데 사용할 기본값 알고리즘을 지정합니다.
failback
경로 그룹 장애 복구를 지정합니다.
0 값이나 또는 immediate로 현재 경로 그룹보다 높은 우선 순위를 갖는 경로 그룹이 있을 경우 즉시 시스템이 높은 우선 순위를 갖은 경로 그룹으로 전환하게 됨을 지정합니다.
0 보다 큰 숫자 값을 지정하여 초 단위로 지연 장애 복구가 되도록 합니다.
manual 값을 지정하여 실행자가 직접 장애 복구할 수 있도록 합니다.
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
uniform으로 설정되어 있을 경우, 모든 경로는 동일하게 비중을 두게 됩니다.
no_path_retry
이러한 속성에 해당하는 숫자 값을 지정하여 대기 상태를 비활성화시키기 전 시스템이 장애 발생 경로를 사용하도록 할 횟수를 정합니다.
fail 값은 대기 상태 없이 즉시 장애가 발생함을 나타냅니다.
queue 값은 경로가 수정될 때 까지 대기 상태가 계속 됨을 나타냅니다.
flush_on_last_del (RHEL 5.3 및 이후 버전) yes로 설정되어 있을 경우, 장치로의 마지막 경로가 삭제될 때 multipathd 데몬은 대기열을 비활성화하게 됩니다. 기본값은 no입니다.
rr_min_io 현재 경로 그룹에서 다음 경로로 전환하기 전 경로로 라우트하기 위해 I/O 요청 수를 지정합니다.
mode (RHEL 5.3 및 이후 버전) octal에서 멀티패스 장치 노드 용으로 사용할 모드입니다. 기본값은 프로세스에 의해 결정됩니다.
uid (RHEL 5.3 및 이후 버전) 멀티패스 장치 노드 용으로 사용할 사용자 ID입니다. 숫자로된 사용자 ID를 사용해야 합니다. 기본값은 프로세스에 의해 결정됩니다.
gid (RHEL 5.3 및 이후 버전) 멀티패스 장치 노드 용으로 사용할 그룹 ID입니다. 숫자로된 그룹 ID를 사용해야 합니다. 기본값은 프로세스에 의해 결정됩니다.
다음 예에서는 두 개의 특정한 멀티패스 장치에 해당하는 설정 파일에 지정된 멀티패스 속성을 보여주고 있습니다. 첫 번째 장치는 WWID 3600508b4000156d70001200000b0000yellow라는 상징적 이름을 가지고 있습니다.
예에서 두 번째 멀티패스 장치는 WWID 1DEC_____321816758474red라는 상징적 이름을 가지고 있습니다. 예에서, rr_weight 속성은 priorities로 설정되어 있습니다.
multipaths {
       multipath {
              wwid                  3600508b4000156d70001200000b0000
              alias                 yellow
              path_grouping_policy  multibus
              path_checker          readsector0
              path_selector         "round-robin 0"
              failback              manual
              rr_weight             priorities
              no_path_retry         5
       }
       multipath {
              wwid                  1DEC_____321816758474
              alias                 red
              rr_weight             priorities
        }
}

4.5. 설정 파일 장치

표 4.3. “장치 속성 ” shows the attributes that you can set for each individual storage device in the devices section of the multipath.conf configuration file. These attributes are used by DM-Multipath unless they are overwritten by the attributes specified in the multipaths section of the multipath.conf file for paths that contain the device. These attributes override the attributes set in the defaults section of the multipath.conf file.
멀티패싱을 지원하는 여러 장치는 멀티패스 설정에서 기본값으로 포함되어 있습니다. 기본값으로 지원되는 장치에 해당하는 값은 multipath.conf.defaults 파일에 열거되어 있습니다. 이러한 장치에 해당하는 값을 수정할 필요는 없지만, 장치에 해당하는 설정 파일에 있는 항목을 포함하여 기본값을 덮어쓰기할 수 있습니다. 해당 장치의 multipath.conf.defaults 파일에서 장치 설정 기본값을 복사하여 변경하고자 하는 값으로 덮어쓰기할 수 있습니다.
기본값으로 자동 설정되지 않는 설정 파일 부분에 장치를 추가하려면, vendorproduct 매개 변수를 설정해야 합니다. 다음 예에서와 같이 device_name이 멀티패스된 장치에 있는 /sys/block/device_name/device/vendor/sys/block/device_name/device/model을 찾아 이러한 값을 확인할 수 있습니다:
[root@cypher-06 ~]# cat /sys/block/sda/device/vendor
WINSYS  
[root@cypher-06 ~]# cat /sys/block/sda/device/model
SF2372
The additional parameters to specify depend on your specific device. If the device is active/active, you will usually not need to set additional parameters. You may want to set path_grouping_policy to multibus. Other parameters you may need to set are no_path_retry and rr_min_io, as described in 표 4.3. “장치 속성 ”.
장치가 활성/비활성 상태이지만, I/O를 사용하여 비활성 경로로 자동 전환할 경우, 잘 작동하는지 테스트하기 위해 경로로 I/O를 보내지 않는 체크 기능을 변경해야 합니다 (그렇지 않을 경우, 계속하여 장애 조치하게 됩니다). 이는 path_checkertur로 설정함을 의미합니다; 이는 Test Unit Ready 명령을 지원하는 모든 SCSI 장치에서 작동합니다.
If the device needs a special command to switch paths, then configuring this device for multipath requires a hardware handler kernel module. The current hardware handlers are emc and "rdac. If these are not sufficient for your device, you may not be able to configure the device for multipath.
Expand
표 4.3. 장치 속성
속성 설명
vendor 예를 들어 COMPAQ과 같이 device 속성이 적용되는 저장 장치의 공급 업체 이름을 지정합니다.
product 예를 들어 HSV110 (C)COMPAQ과 같이 device 속성이 적용되는 저장 장치의 제품 이름을 지정합니다.
path_grouping_policy
미지정된 멀티패스에 적용할 기본값 경로 그룹 정책을 지정합니다. 가능한 값은 다음과 같습니다:
failover = 우선 순위 그룹 당 1 개의 경로
multibus = 1 개의 우선 순위 그룹에 있는 유효한 모든 경로
group_by_serial = 검색된 시리얼 번호 당 1 개의 우선 순위 그룹
group_by_prio = 경로 우선 순위 값 당 1 개의 우선 순위 그룹
group_by_node_name = 대상 노드 이름 당 1 개의 우선 순위 그룹
getuid_callout Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
prio_callout Specifies the the default program and arguments to call out to obtain a path weight. Weights are summed for each path group to determine the next path group to use in case of failue. "none" is a valid value.
path_checker 경로 상태를 결정하기 위해 사용될 기본값 방식을 지정합니다. 가능한 값에는 readsector0tur, emc_clariion, hp_sw, directio가 있습니다.
path_selector 다음 I/O 실행에 어떤 경로를 사용할 지를 결정하는데 사용할 기본값 알고리즘을 지정합니다.
features The extra features of multipath devices. The only existing feature is queue_if_no_path, which is the same as setting no_path_retry to queue. For information on issues that may arise when using this feature, see 5.3절. “Issues with queue_if_no_path feature”.
hardware_handler 경로 그룹을 전환하거나 I/O 오류를 처리할 때 특정 하드웨어 작업을 실행하기 위해 사용될 모듈을 지정합니다. 가능한 값에는 0, 1 emc, 1 rdac이 있습니다. 기본값은 0입니다.
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
uniform으로 설정되어 있을 경우, 모든 경로는 동일하게 비중을 두게 됩니다. 기본값은 uniform입니다.
no_path_retry
이러한 속성에 해당하는 숫자 값을 지정하여 대기 상태를 비활성화시키기 전 시스템이 장애 발생 경로를 사용하도록 할 횟수를 정합니다.
fail 값은 대기 상태 없이 즉시 장애가 발생함을 나타냅니다.
queue 값은 경로가 수정될 때 까지 대기 상태가 계속 됨을 나타냅니다.
기본값은 (null)입니다.
failback
경로 그룹 장애 복구를 지정합니다.
0 값이나 또는 immediate로 현재 경로 그룹보다 높은 우선 순위를 갖는 경로 그룹이 있을 경우 즉시 시스템이 높은 우선 순위를 갖은 경로 그룹으로 전환하게 됨을 지정합니다.
0 보다 큰 숫자 값을 지정하여 초 단위로 지연 장애 복구가 되도록 합니다.
manual 값을 지정하여 실행자가 직접 장애 복구할 수 있도록 합니다.
rr_min_io 현재 경로 그룹에 있는 다음 경로로 전환하기 전 경로로 라우팅하기 위한 I/O 요청 수를 지정합니다. 기본값은 1000입니다.
flush_on_last_del (RHEL 5.3 및 이후 버전) yes로 설정되어 있을 경우, 장치로의 마지막 경로가 삭제될 때 multipathd 데몬은 대기열을 비활성화하게 됩니다. 기본값은 no입니다.
product_blacklist 제품에 따라 장치를 블랙리스트하는데 사용되는 정규 표현을 지정합니다.
다음의 예에서는 멀티패스 설정 파일에 있는 device 항목을 보여주고 있습니다.
#	}
#	device {
#		vendor			"COMPAQ  "
#		product			"MSA1000         "
#		path_grouping_policy	multibus
#		path_checker		tur
#		rr_weight		priorities
#	}
#}

5장. DM-Multipath 관리 및 문제 해결

다음 부분에서는 실행 중인 시스템에서 DM-Multipath를 관리하는 방법에 대하여 설명합니다. 이에는 다음과 같은 주제가 포함되어 있습니다:
  • The Multipath Daemon
  • Issues with Large Number of LUNs
  • Issues with queue_if_no_path feature
  • Multipath Command Output
  • Multipath Queries with multipath Command
  • Multipath Command Options
  • dmsetup 명령을 사용한 Multipath 쿼리
  • Troubleshooting with the multipathd Interactive Console

5.1. The Multipath Daemon

If you find you have trouble implementing a multipath configuration, you should ensure that the multipath daemon is running, as described in 3장. DM-Multipath 설정 . The multipathd daemon must be running in order to use multipathed devices.

5.2. Issues with Large Number of LUNs

다수의 LUN이 노드에 추가될 경우, 멀티패스된 장치를 사용하면 장치 노드를 생성하기 위한 udev 장치 관리자에 대해 걸리는 시간이 현저히 증가할 수 있습니다. 이러한 문제가 발생할 경우, /etc/udev/rules.d/40-multipath.rules에서 다음과 같은 행을 삭제하여 이를 수정할 수 있습니다:
KERNEL!="dm-[0-9]*", ACTION=="add", PROGRAM=="/bin/bash -c '/sbin/lsmod | /bin/grep ^dm_multipath'", RUN+="/sbin/multipath -v0 %M:%m"
이러한 행은 노드에 블록 장치를 추가할 때 마다 udev 장치 관리자가 multipath를 실행하게 하는 원인이 될 수 있습니다. 이러한 행을 삭제하여도 multipathd 데몬은 자동으로 멀티패스 장치를 생성하게 되며, 부팅 프로세스 동안 노드에 대해 multipath는 멀티패스된 root 파일 시스템과 함께 호출되게 됩니다. multipathd 데몬이 실행되지 않을 때 멀티패스된 장치가 자동으로 생성되지 않는다는 점이 유일한 변경 사항이며, 이는 다수의 멀티패스 사용자에 대해 문제가 되지 않습니다.

5.3. Issues with queue_if_no_path feature

If features "1 queue_if_no_path" is specified in the /etc/multipath.conf file, then any process that issues I/O will hang until one or more paths are restored. To avoid this, set the no_path_retry N parameter in the /etc/multipath.conf file (where N is the number of times the system should retry a path). When you do, remove the features "1 queue_if_no_path" option from the /etc/multipath.conf as well.
If you need to use the features "1 queue_if_no_path" option and you experience the issue noted here, use the dmsetup command to edit the policy at runtime for a particular LUN (that is, for which all the paths are unavailable). For example, if you want to change the policy on the multipath device mpath2 from "queue_if_no_path" to "fail_if_no_path", execute the following command.
dmsetup message mpath2 0 "fail_if_no_path"
경로 대신 mpathn 별칭을 지정하셔야 함에 유의합니다.

5.4. Multipath Command Output

멀티패스 장치를 생성, 수정, 나열할 때, 현재 장치 설정의 출력 결과를 얻을 수 있습니다. 포맷은 다음과 같습니다.
각각의 멀티패스 장치의 경우:
 action_if_any: alias (wwid_if_different_from_alias) [size][features][hardware_handler]
각각의 경로 그룹의 경우:
\_ scheduling_policy [path_group_priority_if_known] [path_group_status_if_known]
각각의 경로의 경우:
\_ host:channel:id:lun devnode major:minor [path_status] [dm_status_if_known]
예를 들어, multipath 명령의 출력 결과는 다음과 같이 나타나게 됩니다:
mpath1 (3600d0230003228bc000339414edb8101) [size=10 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:6 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=1][enabled]
 \_ 3:0:0:6 sdc 8:64 [active][ready]
경로가 활성화되어 I/O 준비가 되면, ready 또는 active 상태로 나타나게 됩니다. 경로가 비활성화되면, faulty 또는 failed 상태가 됩니다. 경로 상태는 /etc/multipath.conf 파일에 지정된 간격에 따라 multipathd 데몬에 의해 주기적으로 업데이트됩니다.
The dm status is similar to the path status, but from the kernel's point of view. The dm status has two states: failed, which is analogous to faulty, and active which covers all other path states. Occasionally, the path state and the dm state of a device will temporarily not agree.

참고

멀티패스 장치가 생성되거나 수정될 때, 경로 그룹 상태 및 dm 상태는 나타나지 않게 되며, 기능 또한 올바르지 않게 됩니다. 멀티패스 장치가 나열되면, 경로 그룹 우선 순위는 나타나지 않게 됩니다.

5.5. Multipath Queries with multipath Command

multipath 명령의 -l-ll 옵션을 사용하여 현재 멀티패스 설정 상태를 볼 수 있습니다. -l 옵션으로 sysfs 및 장치 맵퍼에 있는 정보가 수집된 멀티패스 토폴로지를 볼 수 있습니다. -ll 옵션으로는 -l 옵션으로 볼 수 있는 정보와 함께 사용 가능한 기타 다른 시스템 구성 요소를 볼 수 있습니다.
멀티패스 설정 보기를 할 때, multipath 명령의 -v 옵션으로 지정할 수 있는 세 가지 레벨의 상세 보기가 있습니다. -v0 옵션을 지정하면 아무런 출력 결과를 얻지 못하게 됩니다. -v1 옵션으로는 생성되거나 업데이트된 멀티패스 이름만을 출력하게 되어, kpartx와 같은 다른 도구에 사용할 수 있습니다. -v2 옵션을 지정하면 검색된 모든 경로, 멀티패스, 장치 맵을 출력하게 됩니다.
다음의 예는 multipath -l 명령의 출력 결과를 보여주고 있습니다.
# multipath -1
mpath1 (3600d0230003228bc000339414edb8101)
[size=10 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:6 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=1][enabled]
 \_ 3:0:0:6 sdc 8:64 [active][ready]

5.6. Multipath Command Options

표 5.1. “유용한 multipath 명령 옵션 ” describes some options of the multipath command that you may find useful.
Expand
표 5.1. 유용한 multipath 명령 옵션
옵션 설명
-l sysfs 및 장치 매퍼에서 얻은 현재 멀티패스 설정을 보여줍니다.
-ll sysfs, 장치 매퍼, 시스템에서 사용 가능한 기타 다른 구성 요소에서 얻은 현재 멀티패스 설정을 보여줍니다.
-f device 이름이 지정된 멀티패스 장치를 삭제합니다.
-F 모든 멀티패스 장치를 삭제합니다.

5.7. dmsetup 명령을 사용하여 장치 매퍼 항목 지정

dmsetup 명령을 사용하여 어떤 장치 매퍼 항목이 멀티패스 장치와 일치하는 지를 알 수 있습니다.
다음의 명령으로 모든 장치 맵퍼 장치 및 주 장치 번호와 부 장치 번호를 볼 수 있습니다. 부 장치 번호로는 dm 장치의 이름을 지정합니다. 예를 들어, 3에 대한 부 장치 번호는 멀티패스 장치 /dev/dm-3에 해당하게 됩니다.
# dmsetup ls
mpath2  (253, 4)
mpath4p1        (253, 12)
mpath5p1        (253, 11)
mpath1  (253, 3)
mpath6p1        (253, 14)
mpath7p1        (253, 13)
mpath0  (253, 2)
mpath7  (253, 9)
mpath6  (253, 8)
VolGroup00-LogVol01     (253, 1)
mpath5  (253, 7)
VolGroup00-LogVol00     (253, 0)
mpath4  (253, 6)
mpath1p1        (253, 10)
mpath3  (253, 5)

5.8. Troubleshooting with the multipathd Interactive Console

multipathd -k 명령은 multipathd 데몬에서의 대화식 인터페이스입니다. 이 명령을 입력하면 대화식 멀티패스 콘솔이 나타나게 됩니다. 명령을 입력한 후, help를 입력하여 사용 가능한 명령 목록을 볼 수 있으며, 대화식 명령을 입력하거나 CTRL-D를 입력하여 중지시킬 수 있습니다.
multipathd 대화식 콘솔은 시스템에서 발생할 수 있는 문제를 해결하는데 사용될 수 있습니다. 예를 들어, 다음과 같은 순서의 명령으로 콘솔이 나타나기 이전에 기본값이 포함된 멀티패스 설정 사항을 볼 수 있습니다.
# multipathd -k
> > show config
> > CTRL-D
다음과 같은 순서의 명령으로 멀티패스가 multipath.conf에 변경된 사항을 발견하는 지를 확인합니다.
# multipathd -k
> > reconfigure
> > CTRL-D
다음과 같은 순서의 명령으로 경로 체크 기능이 올바르게 작동하는지를 확인합니다.
# multipathd -k
> > show paths
> > CTRL-D

부록 A. 개정 내역

고친 과정
고침 3-6.4002013-10-31Rüdiger Landmann
Rebuild with publican 4.0.0
고침 3-62012-07-18Anthony Towns
Rebuild for Publican 3.0
고침 1.0-0Thu Jan 29 2009

색인

Symbols

/etc/multipath.conf package, DM-Multipath 설정

A

active/active configuration
definition, DM-Multipath 개요
illustration, DM-Multipath 개요
active/passive configuration
definition, DM-Multipath 개요
illustration, DM-Multipath 개요
alias parameter , 멀티패스 장치 설정 속성
configuration file, 멀티패스 장치 식별자

C

chkconfig command, DM-Multipath 설정
configuration file
alias parameter, 멀티패스 장치 설정 속성
bindings_file parameter, 설정 파일 기본값
blacklist, DM-Multipath 설정 , 설정 파일 블랙리스트
failback parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성 , 설정 파일 장치
features parameter, 설정 파일 장치
flush_on_last_del parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성 , 설정 파일 장치
getuid_callout parameter, 설정 파일 기본값 , 설정 파일 장치
gid parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성
hardware_handler parameter, 설정 파일 장치
max_fds parameter, 설정 파일 기본값
mode parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성
no_path_retry parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성 , 설정 파일 장치
overview, 설정 파일 개요
path_checker parameter, 설정 파일 기본값 , 설정 파일 장치
path_grouping_policy parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성 , 설정 파일 장치
path_selector parameter, 멀티패스 장치 설정 속성 , 설정 파일 장치
polling-interval parameter, 설정 파일 기본값
prio_callout parameter, 설정 파일 기본값 , 설정 파일 장치
product parameter, 설정 파일 장치
product_blacklist parameter, 설정 파일 장치
queue_without_daemon parameter, 설정 파일 기본값
rr_min_io parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성
rr_weight parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성 , 설정 파일 장치
selector parameter, 설정 파일 기본값
udev_dir parameter, 설정 파일 기본값
uid parameter, 설정 파일 기본값 , 멀티패스 장치 설정 속성
user_friendly_names parameter, 설정 파일 기본값
vendor parameter, 설정 파일 장치
wwid parameter, 멀티패스 장치 설정 속성
configuring
DM-Multipath, DM-Multipath 설정

H

hardware_handler parameter, 설정 파일 장치

K

kpartx command , DM-Multipath 구성 요소

Q

queue_without_daemon parameter, 설정 파일 기본값

V

vendor parameter, 설정 파일 장치

W

World Wide Identifier (WWID), 멀티패스 장치 식별자
wwid parameter, 멀티패스 장치 설정 속성

법적 공지

Copyright © 2009 Red Hat, Inc.
This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동