Scan Linux server for new drives / disks

you have to scan all hosts there is full command with loop on one line (please change the range 0-32 if you have different – just list /sys/class/scsi_host/ ):

for i in seq 0 32; do echo "- - -" | sudo tee /sys/class/scsi_host/host$i/scan; ls /dev/sd* ; done

The last line shows us the additional device discovered.
Was this article helpful?
Cancel
Thank you!