Rescan SCSI Controller on Linux to Detect New Disks

I am running Ubuntu Linux virtual machines on VMware ESXi (vSphere Hypervisor), and needed a mechanism to add SCSI disks to VMs without having to reboot. After adding the disk in VMware ESXi, the disk still wasn’t visible to the guest operating system. It seemed like I needed some mechanism to force Linux to rescan the controller bus for newly added disks.

The easiest way I could find to do this was:

sudo apt-get install scsitools
sudo rescan-scsi-bus

Use lsblk to check your block devices before and after, and you should see the newly attached disks appear.

Credit to this post