5.6. Resizing an Online Multipathed Device (RHEL 4.8 and later)


In systems running RHEL 4.8 and later, is is possible to resize a multipath device while it is online. This allows you to resize the device when it is open, as when a file system is currently mounted.
Use the following procedure to resize an online multipath device.
  1. Resize your physical device.
  2. Resize your paths. For SCSI devices, writing a 1 to the rescan file for the device causes the SCSI driver to rescan. You can use the following command:
    # echo 1 > /sys/block/device_name/device/rescan 
  3. Resize your multipath device by running the multipath command:
    #  multipath
Your hardware setup may require that you temporarily take the actual storage offline in order to resize your physical device. If you take your storage offline and your multipath device is not set to queue when all paths are down, any I/O activity while your storage is offline will fail. You can work around this by executing the following command before taking your storage offline:
#  dmsetup suspend --noflush device_name
After you resize your storage and take it back online, you must run the following command before resizing your paths:
#  dmsetup resume device_name 
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.