第 6 章 Managing multipathed volumes


You can manage multipath volumes by using the multipath, dmsetup, and multipathd commands, which are provided by DM Multipath to resize devices, move file systems, and administer the multipathd daemon.

6.1. Resizing an online multipath device

Resize an online multipath device and its filesystem using the multipathd and resize2fs commands. This allows you to expand storage capacity without downtime, ensuring applications remain available while scaling to meet growing data needs.

Procedure

  1. Resize your physical device.
  2. Find the paths to the logical unit number (LUN):

    # multipath -l
  3. Resize your paths. For SCSI devices, writing a 1 to the rescan file for the device causes the SCSI driver to rescan, as in the following command:

    # echo 1 > /sys/block/path_device/device/rescan

    Ensure that you run this command for each of the path devices. For example, if your path devices are sda, sdb, sde, and sdf, run the following commands:

    # echo 1 > /sys/block/sda/device/rescan
    # echo 1 > /sys/block/sdb/device/rescan
    # echo 1 > /sys/block/sde/device/rescan
    # echo 1 > /sys/block/sdf/device/rescan
  4. Resize your multipath device:

    # multipathd resize map multipath_device
  5. Resize the file system, assuming no LVM or DOS partitions are used:

    # resize2fs /dev/mapper/mpatha
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部