DM Resize a DM-Multipath Device

From UNIX Systems Administration
Revision as of 03:32, 28 January 2022 by Michael Kohler (talk | contribs) (→‎Resize an Online Multipath Device)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Resize an Online Multipath Device

  1. Resize the LUN on the storage subsystem.
  2. Find and record the device paths to the LUN.
    # multipath -l
  3. Resize the the SCSI block device.
    # echo 1 > /sys/block/<device>/device/rescan
  4. Resize the multipath device.
    # multipathd -k resize map <multipath_device>
  5. Resize the filesystem (assuming no LVM or DOS partitions are used).
    # resize2fs /dev/mapper/<multipath_device>

Further Reading

  1. Resizing an Online Multipath Device