Red Hat Training

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

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.

표 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
#	}
#}