`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, 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