3.2. Setting up basic failover configuration with DM Multipath
Establishing a basic failover configuration for DM Multipath provides path redundancy and enhances storage reliability. It ensures that I/O operations continue through alternate paths if one fails, preventing downtime or data loss.
Prerequisites
- Administrative access.
Procedure
Enable and initialize the multipath configuration file:
# mpathconf --enableOptional: Edit the
/etc/multipath.conffile.Most default settings are already configured, including
path_grouping_policywhich is set tofailover.Optional: The default naming format of multipath devices is set to
/dev/mapper/mpathnformat. If you prefer a different naming format:Configure DM Multipath to use the multipath device WWID as its name, instead of the mpath_n_ user-friendly naming scheme:
# mpathconf --enable --user_friendly_names nReload the configuration of the DM Multipath daemon:
# systemctl reload multipathd.service
Start the DM Multipath daemon:
# systemctl start multipathd.service
Verification
Confirm that the DM Multipath daemon is running without issues:
# systemctl status multipathd.serviceVerify the naming format of multipath devices:
# ls /dev/mapper/