`rescan-scsi-bus.sh` fails with "line 281: [: too many arguments" errors when either medium changer or optical device devices are present

Solution Unverified - Updated -

Issue

  • rescan-scsi-bus.sh fails with "line 281: [: too many arguments" errors when medium changer or optical device is present within the configuration, for example:

    /proc/scsi/scsi::
    :
          Vendor: STK      Model: L700             Rev: 0104
          Type:   Medium Changer                   ANSI SCSI revision: 05
    :
    

Environment

  • Red Hat Enterprise Linux (RHEL) 6
    • sg3-utils versions prior to 1.28.12.el6
  • Red Hat Enterprise Linux (RHEL) 7
    • sg3-utils
  • Medium Changer or Optical Device

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.