4-6
Cisco SFS InfiniBand Host Drivers User Guide for Linux
OL-12309-01
Chapter 4 SCSI RDMA Protocol
Configuring SRP
Configuring SRP Host
This section describes how to configure the SRP host. The SRP host driver exposes a Fibre Channel
target (identified by a WWPN) as a SCSI target to the Linux SCSI mid-layer. In turn, the mid-layer
creates Linux SCSI devices for each LUN found behind the target. The SRP host driver provides failover
and load balancing for multiple IB paths for a given target. LUNs accessible from multiple targets can
be managed through third-party multipathing software running a layer above the SRP host driver.
The SRP driver is automatically loaded at boot time by default. To disable loading the SRP driver at boot
time, run chkconfig ts_srp off. The SRP driver can be loaded manually with modprobe ts_srp_host
and unloaded with rmmod ts_srp_host.
To configure the SRP host, perform the following steps:
Step 1 Check for SCSI disks before configuring SRP.
The following example shows how to check for SCSI disk:
host1# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST373307LC Rev: 0006
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: SDR Model: GEM318P Rev: 1
Type: Processor ANSI SCSI revision: 02
The above example shows one local Seagate Model ST373307LC SCSI disk.
Step 2 Reload the SRP host driver after configuring access.
The following example reloads the SRP host driver after configuring access:
host1# modprobe ts_srp_host
Step 3 Check for SCSI disks after configuring SRP.
The following example checks for SCSI disks after configuring SRP:
host1# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST373307LC Rev: 0006
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: SDR Model: GEM318P Rev: 1
Type: Processor ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 31
Vendor: SUN Model: T4 Rev: 0300
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 00 Lun: 32
Vendor: SUN Model: T4 Rev: 0300
Type: Direct-Access ANSI SCSI revision: 03
Two additional Sun Model T4 SRP LUNs are available after the configuration is complete.