Hot Adding a SCSI Device
When hot adding a SCSI device, such as a hard drive, you might have noticed that it doesn’t show in /dev. You can either reboot, which defeats the purpose of hot adding the device, or notify Linux to rescan the SCSI bus.
If you know the host adapter number use this command replacing 0 with the host adapter.
echo "- - -" > /sys/class/scsi_host/host0/scan |
Otherwise rescan all the host adapters with this command.
for f in /sys/class/scsi_host/host*; do echo "- - -" > $f/scan; done |
Now your SCSI device should show up in the /dev list.