Show Table of Contents
5.2. Resizing an Online Multipath Device
If you need to resize an online multipath device, use the following procedure.
- Resize your physical device.
- Execute the following command to find the paths to the LUN:
#
multipath -l - Resize your paths. For SCSI devices, writing a 1 to the
rescanfile for the device causes the SCSI driver to rescan, as in the following command:#
echo 1 > /sys/block/path_device/device/rescanEnsure that you run this command for each of the path devices. For example, if your path devices aresda,sdb,sde, andsdf, you would 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 - Resize your multipath device by executing the
multipathd resizecommand:#
multipathd resize map multipath_device - Resize the file system (assuming no LVM or DOS partitions are used):
#
resize2fs /dev/mapper/mpatha

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.