DM Resize a DM-Multipath Device: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== Resize an Online Multipath Device== # Resize the LUN on the storage subsystem. # Find and record the device paths to the LUN. ## <tt>'''# multipath -l'''</tt> # Resize the ...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Resize an Online Multipath Device==
== Resize an Online Multipath Device ==
# Resize the LUN on the storage subsystem.
# Resize the LUN on the storage subsystem.
# Find and record the device paths to the LUN.
# Find and record the device paths to the LUN.
## <tt>'''# multipath -l'''</tt>
#: <tt>'''# multipath -l'''</tt>
# Resize the the SCSI block device.
# Resize the the SCSI block device.
## <tt>'''# echo 1 > /sys/block/<block device>/device/rescan'''</tt>
#: <tt>'''# echo 1 > /sys/block/<device>/device/rescan'''</tt>
# Resize the multipath device.
# Resize the multipath device.
## <tt>'''# multipathd -k'resize map <multipath device>''''</tt>
#: <tt>'''# multipathd -k resize map <multipath_device>'''</tt>
# Resize the filesystem.
# Resize the filesystem (assuming no LVM or DOS partitions are used).
## <tt>'''# resize2fs /dev/mapper/<multipath device>'''</tt>
#: <tt>'''# resize2fs /dev/mapper/<multipath_device>'''</tt>
 
== Further Reading ==
# [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/DM_Multipath/MPIO_admin-troubleshoot.html#online_device_resize Resizing an Online Multipath Device]
 
[[Category:Linux]]

Latest revision as of 03:32, 28 January 2022

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