5장. Preventing devices from multipathing


You can configure DM Multipath to ignore selected devices when it configures multipath devices. DM Multipath does not group these ignored devices into a multipath device.

5.1. Conditions when DM Multipath creates a multipath device for a path

DM Multipath uses the find_multipaths parameter and device discovery rules to automatically determine when to create multipath devices for detected storage paths.

DM Multipath has default rules to determine whether to create a multipath device for a path or ignore it. You can configure the behavior.

If find_multipaths is set to off, multipath always tries to create a multipath device for every non-disabled path. If the find_multipaths configuration parameter is set to on, then multipath creates a device, only if one of following conditions is met:

  • There are at least two paths with the same World-Wide Identification (WWID) that are not disabled.
  • You manually force the creation of the device by specifying a device with the multipath command.
  • A path has the same WWID as a previously created multipath device, even if that device no longer exists. Whenever a multipath device is created, multipath remembers its WWID. It then automatically recreates the device when it detects a path with that WWID. This lets multipath automatically choose the correct paths to make into multipath devices, without having to disable multipathing on other devices.

If you created a multipath device without using find_multipaths and later set it to on, remove unwanted device WWIDs from /etc/multipath/wwids. The following example shows a sample /etc/multipath/wwids file. The WWIDs are enclosed by slashes (/):

# Multipath wwids, Version : 1.0
# NOTE: This file is automatically maintained by multipath and multipathd.
# You should not need to edit this file in normal circumstances.
#
# Valid WWIDs:
/3600d0230000000000e13955cc3757802/
/3600d0230000000000e13955cc3757801/
/3600d0230000000000e13955cc3757800/
/3600d02300069c9ce09d41c31f29d4c00/
/SWINSYS  SF2372         0E13955CC3757802/
/3600d0230000000000e13955cc3757803/

In addition to on and off, you can also set find_multipaths to the following values:

strict
Multipath never accepts paths that have not previously been multipathed and are therefore not in the /etc/multipath/wwids file.
smart
Multipath always accepts non-disabled devices in udev as soon as they appear. If multipathd does not create the device within the timeout set in the find_multipaths_timeout parameter, it releases its claim on the device.

The built-in default value of find_multipaths is off. The default multipath.conf file created by mpathconf, however, will set the value of find_multipaths to on.

When find_multipaths is set to on, disable multipathing only on devices with multiple paths that you do not want multipathed. Because of this, it will generally not be necessary to disable multipathing on devices.

If you add a multipath device to blacklist, remove its WWID from the /etc/multipath/wwids file by using the -w option. This avoids issues with other programs. For example, to remove the device /dev/sdb with WWID 3600d0230000000000e13954ed5f89300 from the /etc/multipath/wwids file, you can use either of the following methods.

  • Removing a multipath device by using the device name.

    # multipath -w /dev/sdb
    wwid '3600d0230000000000e13954ed5f89300' removed
  • Removing a multipath device by using the WWID of the device.

    # multipath -w 3600d0230000000000e13954ed5f89300
    wwid '3600d0230000000000e13954ed5f89300' removed

You can also use the -W option to update the /etc/multipath/wwids file. This would reset the /etc/multipath/wwids file to only include the WWIDs of the current multipath devices. To reset the file, run the following:

# multipath -W
successfully reset wwids
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

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

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

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

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동