Marek Wywiał

python software developer

Rescan SCSI bus (no reboot)

by Marek Wywiał
  |   Source

Just self memo. How to attach new SCSI disk without reboot (debian):

# check what hosts do you have
ls /sys/class/scsi_host
host0 host1 host2 host3

# change 'host0' to 'host1' or any next number that you need
echo "- - -" > /sys/class/scsi_host/host0/scan

# and done

fdisk -l
Comments powered by Disqus
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT dx s: a C+++$ U>$ P+ L++$ !E-(+) W++$ N+ !o K--? !w !O !M !V PS PE !Y PGP !t !5 X++ R tv+ b+++ DI D G e+++(++++) h--- r y+++
------END GEEK CODE BLOCK------