|
polling_interval
|
Specifies the interval between two path checks in seconds. For properly functioning paths, the interval between checks gradually increases to max_polling_interval.
|
|
The default value is 5.
|
|
max_polling_interval
|
Specifies the maximum length of the interval between two path checks in seconds.
|
|
The default value is 4 * polling_interval.
|
|
find_multipaths
|
Defines the mode for setting up multipath devices. Available values include:
|
|
off: If find_multipaths is set to off, multipath applies rules as with the strict value and the multipathd daemon applies rules as with the greedy value.
|
|
on: If there are at least two devices that are not on the blacklist with the same World Wide Identifier (WWID), or if multipath created a multipath device with a device WWID before (even if that multipath device is no longer present), then the device is treated as a multipath device path.
|
|
greedy: Both multipathd and multipath treat every non-blacklisted device as a multipath device path.
|
|
smart: Multipath automatically considers that every non-blacklisted device is a multipath device path. If a second path, with the same WWID does not appear within the time set for find_multipaths_timeout, multipath releases the device and enables it for use by the rest of the system. The multipathd daemon applies rules as with the on value.
|
|
strict: This value only treats a device as a multipath path, if you create a multipath device with the device WWID.
|
|
The default value is off. The default multipath.conf file sets find_multipaths to on.
|
|
find_multipaths_timeout
|
This represents the timeout in seconds, to wait for additional paths after detecting the first one, if find_multipaths smart is set. Possible values include:
|
|
Positive value: If set with a positive value, the timeout applies for all non-blacklisted devices.
|
|
Negative value: If set with a negative value, the timeout applies only to known devices that have an entry in the multipath hardware table, either in the built-in table, or in a device section. Other unknown devices use a timeout of only 1 second to avoid booting delays.
|
|
0: The system applies the built-in default for this attribute.
|
|
The default value for known hardware is -10. This means that known devices have a 10 second timeout. Unknown devices have a 1 second timeout. If the find_multipaths attribute has a value other than smart, this attribute has no effect.
|
|
uxsock_timeout
|
Set the timeout of multipathd interactive commands in milliseconds.
|
|
For systems with a large number of devices, multipathd interactive commands might timeout and fail. If this happens, increase this timeout to resolve the issue.
|
|
The default value is 4000.
|
|
reassign_maps
|
Enable reassigning of device-mapper maps. With this option, the multipathd daemon remaps existing device-mapper maps to always point to the multipath device, not the underlying block devices. Possible values are yes and no. The default value is no.
|
|
verbosity
|
The default verbosity value is 2. Higher values increase the verbosity level. Valid levels are between 0 and 4.
|
|
path_selector
|
Specifies the default algorithm to use in determining what path to use for the next I/O operation. Possible values include:
|
|
round-robin 0: Loop through every path in the path group, sending the same number of I/O requests, determined by rr_min_io or rr_min_io_rq, to each.
|
|
queue-length 0: Send the next group of I/O requests down the path with the least number of outstanding I/O requests.
|
|
service-time 0: Send the next group of I/O requests down the path with the shortest estimated service time. This is determined by dividing the total size of the outstanding I/O to each path by the relative throughput.
|
|
The default value is service-time 0.
|
|
path_grouping_policy
|
Specifies the default path grouping policy to apply to unspecified multipaths. Possible values include:
|
|
failover: 1 path per priority group.
|
|
multibus: All valid paths in 1 priority group.
|
|
group_by_serial: 1 priority group per detected serial number.
|
|
group_by_prio: 1 priority group per path priority value. Priorities are determined by the prio attribute.
|
|
group_by_node_name: 1 priority group per target node name. The /sys/class/fc_transport/target*/node_name directory includes target node names.
|
|
group_by_tpg: 1 priority group per target port group. All paths in the multipath device must have their priority function set to alua or sysfs.
|
|
The default value is failover.
|
|
uid_attrs
|
Set this option to activate merging uevents by WWID. This action might improve uevent processing efficiency. It is also an alternative method to configure the udev properties to use for determining unique path identifiers (WWIDs).
|
|
The value of this option is a space separated list of records like type:ATTR, where type is matched against the beginning of the device node name, and ATTR is the name of the udev property to use for matching devices.
|
|
If you configure this option and it matches the device node name of a device, it overrides any other configured methods for determining the WWID for this device.
|
|
You can enable uevent merging by setting this value to sd:ID_SERIAL dasd:ID_UID nvme:ID_WWN.
|
|
The default is unset.
|
|
prio
|
Specifies the default function to call to obtain a path priority value. For example, the ALUA bits in SPC-3 provide an exploitable prio value. Possible values include:
|
|
const: Set a priority of 1 to all paths.
|
|
emc: Generate the path priority for EMC arrays.
|
|
sysfs: Generate the path priority from sysfs. This prioritizer accepts the optional prio_arg value exclusive_pref_bit. The sysfs value uses the sysfs attributes access_state and preferred_path.
|
|
alua: Generate the path priority based on the SCSI-3 ALUA settings. If you specify prio alua and prio_args exclusive_pref_bit in your device configuration, multipath creates a path group that contains only the path with the exclusive_pref_bit set, and assigns that path group the highest priority. Refer to the multipath.conf(5) man page for more information about this type of cases.
|
|
ontap: Generate the path priority for NetApp arrays.
|
|
rdac: Generate the path priority for LSI/Engenio RDAC controller.
|
|
hp_sw: Generate the path priority for Compaq/HP controller in active/standby mode.
|
|
hds: Generate the path priority for Hitachi HDS Modular storage arrays.
|
|
random: Generate a random priority between 1 and 10.
|
|
weightedpath: Generate the path priority based on the regular expression and the provided priority as an argument. Requires a prio_args keyword.
|
|
path_latency: Generate the path priority based on a latency algorithm. Requires a prio_args keyword.
|
|
ana: Generate the path priority based on the NVMe ANA settings. This priority routine is hardware dependent.
|
|
datacore: Generate the path priority for some DataCore storage arrays. Requires a prio_args keyword. This priority routine is hardware dependent.
|
|
iet: Generate path priority for iSCSI targets based on IP their address. Requires a prio_args keyword. This priority routine is available only with iSCSI.
|
|
The default value depends on the detect_prio setting. If detect_prio is set to yes, then the default priority algorithm is sysfs. The only exception is for NetAPP E-Series, where the default is alua. If detect_prio is set to no, the default priority algorithm is const.
|
|
prio_args
|
Arguments to pass to the prio function. This applies only to the following prioritizers:
|
|
weighted: Needs a value of the form <hbtl,devname,serial,wwn> <regex1> <prio1> <regex2> <prio2>
|
|
hbtl: The Regex value can be of SCSI H:B:T:L format. For example: 1:0:.:. , *:0:0:.
|
|
devname: The Regex value can be in device name format. For example: sda, sd.e.
|
|
serial: The Regex value can be in serial number format. Look up serial through sysfs, or by running the command multipathd show paths format "%z".
|
|
wwn: The Regex value can be in the form host_wwnn:host_wwpn:target_wwnn:target_wwpn. These values can be looked up through sysfs or by running the command multipathd show paths format %N:%R:%n:%r".
|
|
path_latency: Requires a value in the form io_num= <integer> base_num=<integer>.
|
|
io_num: The number of read IOs, continuously sent to the current path. This value helps calculate the average path latency. Valid values include Integer, [2, 200].
|
|
base_num: The base number value of logarithmic scale. This value helps to partition different priority ranks. Valid values include Integer, [2, 10]. The maximum average latency value is 100s and the minimum average latency value is 1us.
|
|
alua: If the exclusive_pref_bit value is set, paths with the preferred_path_bit set always create their own path group.
|
|
sysfs: If the exclusive_pref_bit value is set, paths with the preferred_path_bit set always create their own path group.
|
|
datacore: Requires a value of the form timeout=<milliseconds> preferredsds=<name>.
|
|
preferredsds: This value is mandatory and it represents the preferred SDS name.
|
|
timeout: This value is optional. Set the timeout for the inquiry in milliseconds.
|
|
iet: Requires a value of the form preferredip=<ip_address>.
|
|
preferredip: This value is mandatory. This is the preferred IP address, in dotted decimal notation, for iSCSI targets.
|
|
The default value is unset.
|
|
features
|
The default extra features of multipath devices, using the format: "number_of_features_plus_arguments feature1 …".
|
|
Possible values for features include:
|
|
queue_if_no_path: The same as setting no_path_retry to queue.
|
|
pg_init_retries n: Retry path group initialization up to n times before failing. The number must be between 1 and 50.
|
|
pg_init_delay_msecs msecs: Number of milliseconds before pg_init retry initiates. The number must be between 0 and 60000.
|
|
queue_mode mode: Select the queueing mode per multipath device. The mode value options are bio, rq or mq. These correspond to bio-based, request-based, and block-multiqueue request-based (blk-mq), respectively.
|
|
By default, the value is unset.
|
|
path_checker
|
Specifies the default method to determine the state of the paths. Possible values include:
|
|
readsector0: Read the first sector of the device.
|
|
tur: Issue a TEST UNIT READY command to the device.
|
|
emc_clariion: Query the EMC Clariion specific EVPD page 0xC0 to determine the path.
|
|
hp_sw: Check the path state for HP storage arrays with Active/Standby firmware.
|
|
rdac: Check the path state for LSI/Engenio RDAC storage controller.
|
|
directio: Read the first sector with direct I/O.
|
|
cciss_tur: Check the path state for HP/COMPAQ Smart Array(CCISS) controllers. This is hardware dependent.
|
|
none: Does not check the device. Falls back to use values retrieved from sysfs.
|
|
The default value is tur.
|
|
alias_prefix
|
This attribute represents the user_friendly_names prefix.
|
|
The default value is mpath.
|
|
failback
|
Manages path group failback. Possible values include:
|
|
immediate: Specifies immediate failback to the highest priority path group that contains active paths.
|
|
manual: Specifies that there is no immediate failback, but that failback can happen only with operator intervention.
|
|
followover: Specifies that automatic failback can only be performed when the first path of a path group becomes active. This keeps a node from automatically failing back, when another node requested the failover.
|
|
A numeric value greater than zero, specifies deferred failback, and is expressed in seconds.
|
|
The default value is manual.
|
|
rr_min_io
|
Specifies the number of I/O requests to route to a path before switching to the next path in the current path group. This setting is only for systems running kernels older than 2.6.31. Newer systems should use rr_min_io_rq. The default value is 1000.
|
|
rr_min_io_rq
|
Specifies the number of I/O requests to route to a path, before switching to the next path in the current path group. Uses a request-based device-mapper-multipath. This setting can be used on systems running current kernels. On systems running kernels older than 2.6.31, use rr_min_io. The default value is 1.
|
|
no_path_retry
|
A numeric value for this attribute specifies the number of times that the path checker must fail for all paths in a multipath device, before disabling queuing.
|
|
A value of fail indicates immediate failure, without queuing.
|
|
A value of queue indicates that queuing should not stop until the path is fixed.
|
|
The default value is fail.
|
|
user_friendly_names
|
Possible values include:
|
|
yes: Specifies that the system can use the /etc/multipath/bindings file to assign a persistent and unique alias to the multipath, in the form of mpath<n>.
|
|
no: The system uses the WWID as the alias for the multipath. Any device-specific alias you set in the multipaths section of the configuration file, overrides this name.
|
|
The default value is no.
|
|
queue_without_daemon
|
If set to no, the multipathd daemon disables queuing for all devices, when it is shut down. The default value is no.
|
|
flush_on_last_del
|
If set to yes, the multipathd daemon disables queuing when the last path to a device is deleted. The default value is no.
|
|
max_fds
|
Sets the maximum number of open file descriptors that can be opened by multipath and the multipathd daemon. This is equivalent to the ulimit -n command. The default value is max, which sets this to the system limit from /proc/sys/fs/nr_open.
|
|
checker_timeout
|
The timeout to use for prioritizers and path checkers that issue SCSI commands with an explicit timeout, in seconds. The sys/block/sd<x>/device/timeout directory contains the default value.
|
|
fast_io_fail_tmo
|
The number of seconds the SCSI layer waits after a problem is detected on an FC remote port, before failing I/O to devices on that remote port. This value must be smaller than the value of dev_loss_tmo. Setting this to off disables the timeout. The default value is 5. The fast_io_fail_tmo option overrides the values of the recovery_tmo and replacement_timeout options of the underlying path devices.
|
|
dev_loss_tmo
|
The number of seconds the SCSI layer waits after a problem is detected on an FC remote port, before removing it from the system. Setting this to infinity will set this to 2147483647 seconds, or 68 years. The operating system determines the default value.
|
|
eh_deadline
|
Specifies the maximum number of seconds the SCSI layer spends performing error handling, when SCSI devices fail. After this timeout, the scsi layer performs a full HBA reset. Setting this is necessary in cases where the rport is never lost, so fast_io_fail_tmo and dev_loss_tmo never trigger, but scsi commands still hang. When the SCSI error handler performs the HBA reset, this affects all target paths on that HBA. The eh_deadline value should only be set in cases where all targets on the affected HBAs are multipathed.
|
|
The default value is unset.
|
|
detect_prio
|
If this is set to yes, multipath detects if the device is a SCSI device that supports Asymmetric Logical Unit Access (ALUA), or a NVMe device that supports Asymmetric Namespace Access (ANA). If the device supports ALUA, multipath automatically assigns it the alua prioritizer. If the device supports ANA, multipath automatically assigns it the ana prioritizer.
|
|
If detect_prio is set to no, or if the device does not support ALUA or ANA, the prio attribute sets the prioritizer.
|
|
The default value is yes.
|
|
detect_pgpolicy
|
If detect_pgpolicy is set to yes and all paths of a multipath device are configured with either the alua or sysfs prioritizer, multipath automatically sets path_grouping_policy to group_by_prio or group_by_tpg.
|
|
If detect_pgpolicy is set to no, the path grouping policy is set to failover.
|
|
The default value is yes.
|
|
detect_pgpolicy_use_tpg
|
Controls which path grouping policy is set when detect_pgpolicy is set to yes and an ALUA compatible device is detected.
|
|
If detect_pgpolicy_use_tpg is set to yes, then detect_pgpolicy sets path_grouping_policy to group_by_tpg.
|
|
If detect_pgpolicy_use_tpg is set to no, then detect_pgpolicy sets path_grouping_policy to group_by_prio.
|
|
The default value is no.
|
|
uid_attribute
|
Specifies the udev attribute to use for the device WWID.
|
|
The default value is device dependent: ID_SERIAL for SCSI devices, ID_UID for DASD devices, and ID_WWN for NVMe devices.
|
|
force_sync
|
If set to yes, this parameter prevents path checkers from running in async mode. This means that only one checker runs at a time. This is useful in cases where many multipathd checkers run in parallel, and can cause significant CPU pressure.
|
|
The default value is no.
|
|
strict_timing
|
If set to yes, the multipathd daemon starts a new path checker loop after exactly one second, so that each path check occurs at the exactly set seconds for polling_interval. On busy systems, path checks might take longer than one second. The missing ticks are accounted for in the next round. A warning prints if path checks take longer than the set seconds for polling_interval.
|
|
The default value is no.
|
|
retrigger_tries, retrigger_delay
|
Use the retrigger_tries and retrigger_delay parameters in conjunction to make multipathd retrigger uevents. If udev fails to completely process the original uevents, this leaves multipath unable to use the device. The retrigger_tries parameter sets the number of times that multipath tries to retrigger a uevent, in case a device is not completely set up. The retrigger_delay parameter sets the number of seconds between retries. Both of these options accept numbers greater than or equal to 0. Setting the retrigger_tries parameter to 0 disables retries. Setting the retrigger_delay parameter to 0 causes the uevent to be reissued on the next loop of the path checker.
|
|
The default value of retrigger_tries is 3. The default value of retrigger_delay is 10.
|
|
missing_uev_wait_timeout
|
This attribute controls the number of seconds the multipathd daemon waits to receive a change event from udev for a newly created multipath device. After that it automatically enables device reloads. In most cases, multipathd delays reloads on a device, until it receives a change uevent from the initial table load.
|
|
The default value is 30.
|
|
deferred_remove
|
If set to yes, multipathd performs a deferred remove, instead of a regular remove, when the last path device is deleted. This ensures that if a multipathed device is in use when a regular remove is performed and the remove fails, the device is automatically removed, when the last user closes the device. The default value is no.
|
|
san_path_err_threshold, san_path_err_forget_rate, san_path_err_recovery_time
|
If you set all three of these attributes to integers greater than zero, they enable the multipathd daemon to keep shaky paths from reinstating, by monitoring how frequently the path checker fails. If a path checker fails a path more than the value in the san_path_err_threshold attribute, within san_path_err_forget_rate checks, then the multipathd daemon does not reinstate the path until the value of the san_path_err_recovery_time attribute in seconds passes, without any path checker failures.
|
|
See the Shaky paths detection section of the multipath.conf(5) for more information.
|
|
The default value is no.
|
|
marginal_path_double_failed_time, marginal_path_err_sample_time, marginal_path_err_rate_threshold, marginal_path_err_recheck_gap_time
|
If marginal_path_double_failed_time, marginal_path_err_rate_threshold, and marginal_path_err_recheck_gap_time are set to integers greater than 0 and marginal_path_err_sample_time is set to an integer greater than 120, they enable the multipathd daemon to keep shaky paths from reinstating, by testing the I/O failure rate of paths that repeatedly fail.
|
|
If a path fails twice within the value set in the marginal_path_double_failed_time attribute in seconds, the multipathd daemon does not immediately reinstate it, when the path checker determines that it is back up. Instead, multipathd issues a steady stream of read I/Os to the path for the value set in the marginal_path_err_sample_time attribute in seconds. If there are more than the value set in the marginal_path_err_rate_threshold attribute number of errors per thousand I/Os, multipathd waits for marginal_path_err_recheck_gap_time seconds, and then starts another cycle of testing the path with read I/Os. Otherwise, multipathd reinstates the path.
|
|
See the Shaky paths detection section of the multipath.conf(5) for more information.
|
|
The default value is no.
|
|
marginal_pathgroups
|
Possible values include:
|
|
on: When one of the marginal path detecting methods determines that a path is marginal, the system reinstates the path and places it in a separate pathgroup. This group comes into effect only after all the non-marginal path groups are tried first. This prevents the possibility of IO errors occurring while the system can still use some marginal paths. The path returns to a regular path group as soon as it passes monitoring for a configured time.
|
|
off: The delay_*_checks, marginal_path_*, and san_path_err_* attributes keep the system from reinstating any marginal, or shaky paths, until they are monitored for a configured time.
|
|
fpin: The multipathd daemon receives fpin notifications, sets path states to marginal, and regroups paths, as described for the on value.
|
|
The marginal_path_* and san_path_err_* attributes are implicitly set to no.
|
|
See the Shaky paths detection section of the multipath.conf(5) for more information.
|
|
The default value is no.
|
|
log_checker_err
|
If set to once, multipathd logs the first path checker error at verbosity level 2. The system logs any further errors at verbosity level 3, until the device is restored. If the log_checker_err parameter is set to always, multipathd always logs the path checker error at verbosity level 2. The default value is always.
|
|
skip_kpartx
|
If set to yes, kpartx does not automatically create partitions on the device. This enables you to create a multipath device, without creating partitions, even if the device has a partition table. The default value of this option is no.
|
|
max_sectors_kb
|
Using this option, you can set the max_sectors_kb device queue parameter to the specified value on all underlying paths of a multipath device, before the first activation of a multipath device. Whenever the system creates a new multipath device, the device inherits the max_sectors_kb value from the path devices. Manually raising this value for the multipath device, or lowering this value for the path devices, can cause multipath to create I/O operations larger than the path devices allow. Using the max_sectors_kb parameter is an easy way to set these values, before the creation of a multipath device on top of the path devices, and prevent passing any invalid-sized I/O operations. If you do not set this parameter, the path devices driver sets it automatically, and the multipath device inherits it from the path devices.
|
|
ghost_delay
|
This attribute sets the number of seconds that multipath waits after creating a device with only ghost paths, before marking it ready for use in systemd. This gives the active paths time to appear before the multipath runs the hardware handler to switch the ghost paths to active ones.
|
|
Setting this to 0 or no makes multipath immediately mark a device with only ghost paths as ready.
|
|
The default value is no.
|
|
enable_foreign
|
This attribute enables or disables foreign libraries.
|
|
The value is a regular expression. Foreign libraries are loaded if their name matches the expression.
|
|
By default, no foreign libraries are enabled. Use nvme to enable NVMe native multipath support, or ".*" to enable all foreign libraries.
|
|
recheck_wwid
|
If set to yes, when a failed path is restored, the multipathd daemon rechecks the path WWID. If there is a change in the WWID, the path is removed from the current multipath device, and added again as a new path. The multipathd daemon also checks the path WWID again if it is manually re-added.
|
|
This option only works for SCSI devices with configuration to use the default uid_attribute, ID_SERIAL, or sysfs, for getting their WWID.
|
|
The default value is no.
|
|
remove_retries
|
This option sets the number of times multipath retries removing a device that is in use. Between each attempt, multipath becomes inactive for 1 second. The default value is 0, which means that multipath does not retry the remove.
|
|
detect_checker
|
If set to yes, multipath checks if the device supports ALUA or Redundant Disk Array Controller (RDAC). If the device supports ALUA, multipath assigns it the tur path_checker. If the device supports RDAC, the multipathd daemon assigns it the rdac path_checker. If the device does not support ALUA or RDAC, or the detect_checker is set to no, the path_checker attribute sets the path checker.
|
|
The default value is yes.
|
|
reservation_key
|
The mpathpersist parameter uses this service action reservation key. It must be set for all multipath devices using persistent reservations, and it must be the same as the RESERVATION KEY field of the PERSISTENT RESERVE OUT parameter list, which contains an 8-byte value provided by the application client to the device server to identify the I_T nexus. If you use the --param-aptpl option when registering the key with mpathpersist, you must append :aptpl to the end of the reservation key.
|
|
This parameter can also be set to file, which causes mpathpersist to automatically store the RESERVATION KEY used to register the multipath device in the prkeys file. The multipathd daemon then uses this key to register additional paths as they appear. When you remove the registration, this automatically removes the RESERVATION KEY from the prkeys file. It is unset by default. If persistent reservations are necessary, it is recommended to set this attribute to file.
|
|
all_tg_pt
|
If this option is set to yes when mpathpersist registers keys, it treats a registered key from one host to one target port, as going from one host to all target ports. This must be set to yes to successfully use mpathpersist on arrays that automatically set and clear registration keys on all target ports from a host, instead of per target port per host. The default value is no.
|
|
auto_resize
|
Controls when the multipathd command can automatically resize a multipath device. Possible values include:
|
|
never: multipathd works without any change. This is the default value.
|
|
grow_only: multipathd automatically resizes the multipath device when the device’s paths have grown in size.
|
|
grow_shrink: multipathd automatically resizes the multipath device when the device’s paths have either decreased or grown in size.
|