4.2.2. 장치 이름에 따라 블랙리스트하기
장치 이름으로 장치 유형을 블랙리스트하여 설정 파일의
blacklist 부분에 있는 devnode 항목을 지정하여 멀티패스 장치 그룹이 되지 않게 할 수 있습니다.
다음의 예에서는 sd* 장치로 블랙리스트한 이후, 모든 SCSI 장치를 블랙리스트할 수 있는 설정 파일 행을 보여주고 있습니다.
blacklist {
devnode "^sd[a-z]"
}
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]"
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
}