6.2. Moving a root file system from a single path device to a multipath device


Move the root filesystem from a single-path device to a multipath setup to ensure path redundancy for critical system data. This enhances reliability by allowing the system to boot and operate even if one storage path fails, improving overall availability.

Prerequisites

  • You have installed the device-mapper-multipath package.

Procedure

  1. Create the /etc/multipath.conf configuration file:

    # mpathconf --enable
  2. Enable the multipathd service:

    # systemctl enable multipathd.service
  3. If the find_multipaths configuration parameter is not set to on, edit the blacklist and blacklist_exceptions sections of the /etc/multipath.conf file, as described in Preventing devices from multipathing.
  4. Add the WWID of the device to the /etc/multipath/wwids file:

    # multipath -a /dev/sdb
    wwid '3600d02300069c9ce09d41c4ac9c53200' added

    Replace /dev/sdb with the root device name.

  5. Confirm that your configuration file is set up correctly:

    # multipath -d 3600d02300069c9ce09d41c4ac9c53200
    : mpatha (3600d02300069c9ce09d41c4ac9c53200) undef 3PARdata,VV
    size=446M features='1 queue_if_no_path' hwhandler='1 alua' wp=undef
    `-+- policy='service-time 0' prio=50 status=undef
      `- 5:0:0:0 sdb 8:16 undef ready running

    Replace 3600d02300069c9ce09d41c4ac9c53200 with the WWID of your swap device.

  6. Rebuild the initramfs file system with multipath:

    # dracut --force --add multipath
  7. Shut the machine down.
  8. Boot the machine.
  9. Make the other paths visible to the machine.

Verification

  • Check if the multipath device is created by running the following command:

    # multipath -l | grep 3600d02300069c9ce09d41c4ac9c53200
    mpatha (3600d02300069c9ce09d41c4ac9c53200) dm-0 3PARdata,VV
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部