Monday, September 3, 2012

Scanning for SCSI new devices dynamically on CentOS

sg3_utils is a package of utilities for sending SCSI commands. For this particular blog entry, we will focus on the scanning for new SCSI new scsi dynamically without booting. Do

# yum install sg3_utils

==============================================================================
 Package                          Arch                     Version                       Repository              Size
==============================================================================
Installing:
 sg3_utils                        x86_64                   1.25-5.el5                    base                   501 k
Installing for dependencies:
 sg3_utils-libs                   x86_64                   1.25-5.el5                    base                    51 k

Transaction Summary
==============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 553 k
Is this ok [y/N]:

To scan the SCSI-Bus. use the command
# rescan-scsi-bus.sh

Host adapter 0 (aacraid) found.
Host adapter 1 (ata_piix) found.
Host adapter 2 (ata_piix) found.
Host adapter 3 (qla2xxx) found.
Host adapter 4 (qla2xxx) found.
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: ServeRA  Model: A                Rev: V1.0 
      Type:   Direct-Access                    ANSI SCSI revision: 02
Scanning for device 0 1 0 0 ...
OLD: Host: scsi0 Channel: 01 Id: 00 Lun: 00
      Vendor: IBM-ESXS Model: VPA146C3-ETS10 N Rev: A650
      Type:   Direct-Access                    ANSI SCSI revision: 05
.....
.....
.....
0 new device(s) found.
0 device(s) removed.

No comments: