4.3. Modifying multipath configuration file defaults
Customize global DM Multipath behavior by editing the defaults section of the multipath.conf file. Set system-wide values like polling intervals, path selection algorithms, and timeouts to match the needs and performance goals of your storage environment.
Procedure
View the
/etc/multipath.confconfiguration file, which includes a template of configuration defaults:#defaults { # polling_interval 10 # path_selector "round-robin 0" # path_grouping_policy multibus # uid_attribute ID_SERIAL # prio alua # path_checker readsector0 # rr_min_io 100 # max_fds 8192 # rr_weight priorities # failback immediate # no_path_retry fail # user_friendly_names yes #}Overwrite the default value for any of the configuration parameters. You can copy the relevant line from this template into the
defaultssection and uncomment it.For example, to overwrite the
path_grouping_policyparameter tomultibusinstead of the default value offailover, copy the appropriate line from the template to the initial defaults section of the configuration file, and uncomment it, as follows:defaults { user_friendly_names yes path_grouping_policy multibus }Validate the
/etc/multipath.conffile after modifying the multipath configuration file by running one of the following commands:To display any configuration errors, run:
# multipath -t > /dev/nullTo display the new configuration with the changes added, run:
# multipath -t
Reload the
/etc/multipath.conffile and reconfigure themultipathddaemon for changes to take effect:# service multipathd reload