ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Rescan all SCSI buses, hassle free.

    IT Discussion
    1
    1
    211
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • travisdh1T
      travisdh1
      last edited by

      One of the things I've been doing a lot of lately is adding drives to virtual machines. This can be done hassle free, but almost all instructions found online make you find the correct bus to use. There is no reason to spend the time to track down the proper bus to scan when you can scan them all in one shot.

      for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; done

      I can't find the original reference for where I first found this. It was one of those, why didn't I think of that moments.

      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post