Linux

Linux EMC 掃描 Lun 不工作

  • September 30, 2013

我們有CX4-120 EMC SAN storage,我將現有LUN大小擴展到 20GB,但現在我無法在主機fdisk -l輸出上看到任何柱面變化。按照命令我正在執行re-scan我的 hda 或 LUN

echo "1" > /sys/class/fc_host/host1/issue_lip
echo "1" > /sys/class/fc_host/host2/issue_lip

進而

echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "- - -" > /sys/class/scsi_host/host3/scan
echo "- - -" > /sys/class/scsi_host/host4/scan
echo "- - -" > /sys/class/scsi_host/host5/scan
echo "- - -" > /sys/class/scsi_host/host6/scan
echo "- - -" > /sys/class/scsi_host/host7/scan

但仍然fdisk -l /dev/emcpowere 顯示舊氣缸尺寸,我錯過了什麼嗎?我有qlogic hda

如果您擴展現有 LUN 或重新掃描現有 LUN,上述所有命令均無效。

解決方案:

echo "1" > /sys/block/<DEVICE>/device/rescan

方便的腳本:

cd /dev
for DEVICE in `ls sd[a-z] sd?[a-z]`; do echo '1' > /sys/block/$DEVICE/device/rescan; done

引用自:https://unix.stackexchange.com/questions/93042