Rescan scsi
From Attie's Wiki
(Difference between revisions)
m |
m |
||
(One intermediate revision by one user not shown) | |||
Line 7: | Line 7: | ||
echo $host/scan; | echo $host/scan; | ||
done | done | ||
+ | </source> | ||
+ | |||
+ | ==Rescan Disk== | ||
+ | Helps to get the updated size... e.g: in a VM | ||
+ | |||
+ | Run as root: | ||
+ | <source lang="bash"> | ||
+ | echo 1 > /sys/block/sdX/device/rescan | ||
</source> | </source> |
Latest revision as of 10:06, 13 July 2017
This will rescan all SCSI LUNs. Useful after hotplugging.
Run as root:
for host in /sys/class/scsi_host/host*; do echo "- - -" > $host/scan; echo $host/scan; done
[edit] Rescan Disk
Helps to get the updated size... e.g: in a VM
Run as root:
echo 1 > /sys/block/sdX/device/rescan