Show Table of Contents
5.2. 重設線上 Multipath 裝置的大小
若您需要重設一個線上 multipath 裝置的大小,請依照下列程序進行。
- 重設您實體裝置的大小。
- 執行下列指令來找出 LUN 的路徑:
#
multipath -l - 重設您路徑的大小。若是 SCSI 裝置的話,請將 1 寫至造成 SCSI 重新掃描的裝置的
rescan檔案中,如下列指令所示:#
echo 1 > /sys/block/device_name/device/rescan - 請藉由執行
multipathd resize指令來重設您 multipath 裝置的大小:#
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.