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

  1. Enable and initialize the multipath configuration file:

    # mpathconf --enable
  2. Optional: Edit the /etc/multipath.conf file.

    Most default settings are already configured, including path_grouping_policy which is set to failover.

  3. Optional: The default naming format of multipath devices is set to /dev/mapper/mpathn format. If you prefer a different naming format:

    1. 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 n
    2. Reload the configuration of the DM Multipath daemon:

      # systemctl reload multipathd.service
  4. Start the DM Multipath daemon:

    # systemctl start multipathd.service

Verification

  • Confirm that the DM Multipath daemon is running without issues:

    # systemctl status multipathd.service
  • Verify the naming format of multipath devices:

    # ls /dev/mapper/
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部