I need to "rescan" the SATA bus of our Linux server in search of a hotplug device that doesn't show up. I've seen an old question on the topic (How do I make Linux recognize a new SATA /dev/sda drive I hot swapped in without rebooting?) and the information given there did work.
However, I also noticed there was a rescan
entry in /dev/block/sd?/device
.
So, can I assume the following:
echo 1 > /sys/block/sdd/device/rescan
would be equivalent to:
echo 1 > /sys/block/sdd/device/delete
echo "- - -" > /sys/class/scsi_host/host4/scan