This shows you the differences between two versions of the page.
rescan_scsi_bus [2011/06/01 12:58] 127.0.0.1 external edit |
rescan_scsi_bus [2011/10/03 11:50] (current) root [Rescan SCSI/FC bus] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Rescan bus ====== | + | ====== Rescan SCSI bus ====== |
There is no need to reboot in order to rescan SCSI/FC bus | There is no need to reboot in order to rescan SCSI/FC bus | ||
Line 9: | Line 9: | ||
for hosts in /sys/class/scsi_host/*; do echo "- - -" > $hosts/scan ; done | for hosts in /sys/class/scsi_host/*; do echo "- - -" > $hosts/scan ; done | ||
- | Rescan FC bus | + | ====== Rescan FC bus ====== |
echo "1" > /sys/class/fc_host/host#/issue_lip | echo "1" > /sys/class/fc_host/host#/issue_lip | ||
Line 16: | Line 16: | ||
for hosts in /sys/class/fc_host/*; do echo "1" > $hosts/issue_lip; done | for hosts in /sys/class/fc_host/*; do echo "1" > $hosts/issue_lip; done | ||
+ | ====== LUN/Disk expansion ====== | ||
| | ||
+ | Expand Vmware disk / SAN LUN. | ||
+ | Force rescan to get the kernel aware of the new size (supposing your LUN is /dev/sdb): | ||
+ | |||
+ | # echo 1 > /sys/block/sdb/device/rescan | ||
+ | |||
+ | In case multipathing is beeing used, the command has to been issued on all devices. eg. sdc/sde etc. multipath -ll can be used to list the devices. |