3.5. Configuring multipathing in initramfs


Setting up multipathing in the initramfs ensure multipath devices are available early in the boot process. This is essential for storage setups requiring redundancy and load balancing, helping maintain system integrity and avoid issues during startup.

Prerequisites

  • Configured DM multipath on your system.

Procedure

  1. Rebuild the initramfs file system with the multipath configuration files:

    # dracut --force --add multipath
    注意

    When using multipath in the initramfs and modifying its configuration files, remember to rebuild the initramfs for the changes to take effect. If your root device employs multipath, the dracut command will automatically include the multipath module in the initramfs.

  2. Optional: If multipath in the initramfs is no longer necessary:

    1. Remove the multipath configuration file:

      # rm /etc/dracut.conf.d/multipath.conf
    2. Rebuild the initramfs with the added multipath configuration:

      # dracut --force --omit multipath

Verification

  • Check if multipath-related files and configurations are present:

    # lsinitrd /path/to/initramfs.img -m | grep multipath
注意

While verification steps provided can give you an indication of success, a final test boot-up is recommended to ensure that the configuration works as expected.

  • After the reboot, confirm that the multipath devices are recognized correctly:

    # multipath -ll
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部