May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Resizing an Online Multipath Device

esizing an Online Multipath Device

If you need to resize an online multipath device, use the following procedure:

1. Resize your physical device

2. Use the following command to find the paths to the 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:

# echo 1 > /sys/block/device_name/device/rescan
4. Resize your multipath device by running the multipathd resize command:

# multipath -k’reisze map mpathX’
5. Resize the file system (assuming no LVM or DOS partition are used):

# resize2fs /dev/mapper/mpathX

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>