What is the difference between scan & rescan

Solution Verified - Updated -

Issue

  • We can't see the changed size of a device after running:

    # echo "- - -" > /sys/class/scsi_host/host0/scan
    
  • However, the size change is visible with the use of:

    # echo "1" > /sys/class/scsi_disk/0\:2\:0\:0/device/rescan
    
  • What is the difference between scan & rescan? How do they work?

Environment

  • Red Hat Enterprise Linux (RHEL) all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content