Red Hat Training

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

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 설정 파일 .