Using the "find_multipaths yes" option in multipath.conf
This document (7024049) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 15 GA
s12sp4:~ # multipath -lls12sp4:~ # multipathcreate: mpatha (36001405b7a08dd303bc4efda76fa90fa) undef LIO-ORG,s12sp4-mpiosize=900M features='0' hwhandler='0' wp=undef|-+- policy='service-time 0' prio=50 status=undef| `- 2:0:0:0 sda 8:0 undef ready running`-+- policy='service-time 0' prio=50 status=undef`- 3:0:0:0 sdb 8:16 undef ready runnings12sp4:~ # multipath -llmpatha (36001405b7a08dd303bc4efda76fa90fa) dm-0 LIO-ORG,s12sp4-mpiosize=900M features='0' hwhandler='1 alua' wp=rw|-+- policy='service-time 0' prio=50 status=active| `- 2:0:0:0 sda 8:0 active ready running`-+- policy='service-time 0' prio=50 status=enabled`- 3:0:0:0 sdb 8:16 active ready runnings12sp4:~ # cd /etc/multipath/s12sp4:/etc/multipath # lltotal 8-rw------- 1 root root 241 Aug 4 10:00 bindings-rw------- 1 root root 226 Aug 4 10:00 wwids
Aug 04 09:58:25 s12sp4 multipathd: --------start up--------Aug 04 09:58:25 s12sp4 multipathd: read /etc/multipath.confAug 04 09:58:25 s12sp4 systemd: Started Device-Mapper Multipath Device Controller.Aug 04 09:58:25 s12sp4 multipathd: find_multipaths is set: -n is implied
find_multipathsIf set to yes, instead of trying to create a multipath device for every non-blacklisted path, multipath will only create a device if one of three conditions are met.1 There are at least two non-blacklisted paths with the same WWID,2 the user manually forces the creation, by specifying a device with the multipath command, or3 a path has the same WWID as a multipath device that was previously created while find_multipaths was set (even if that multipath device doesn't currently exist).Whenever a multipath device is created with find_multipaths set, multipath will remember the WWID of the device, so that it will automatically create the device again, as soon as it sees a path with that WWID. This should allow most users to have multipath automatically choose the correct paths to make into multipath devices, without having to edit the blacklist.The default is: no
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7024049
- Creation Date: 04-Aug-2019
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com