Show Table of Contents
5.2. 重新定义在线多路径设备大小
如果要重新定义在线多路径设备,请按以下步骤操作。
- 重新定义物理设备大小。
- 使用以下命令查找 LUN 路径:
#
multipath -l - 重新定义路径大小。对于 SCSI 设备,在
rescan文件中写入 1,以便让 SCSI 驱动器重新扫描,如以下命令:#
echo 1 > /sys/block/device_name/device/rescan - 如需重新定义多路径设备的大小,请执行
multipathd resize命令:#
multipathd -k'resize map mpatha' - 重新定义文件系统大小(假设没有使用 LVM 或者 DOS 分区):
#
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.