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:
Check for SCSI disks before configuring SRP.
Step 1
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
Type:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: SDR
Type:
The above example shows one local Seagate Model ST373307LC SCSI disk.
Reload the SRP host driver after configuring access.
Step 2
The following example reloads the SRP host driver after configuring access:
host1# modprobe ts_srp_host
Check for SCSI disks after configuring SRP.
Step 3
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
Type:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: SDR
Type:
Host: scsi1 Channel: 00 Id: 00 Lun: 31
Vendor: SUN
Type:
Host: scsi1 Channel: 00 Id: 00 Lun: 32
Vendor: SUN
Type:
Two additional Sun Model T4 SRP LUNs are available after the configuration is complete.
Cisco SFS InfiniBand Host Drivers User Guide for Linux
4-6
Model: ST373307LC
Direct-Access
Model: GEM318P
Processor
Model: ST373307LC
Direct-Access
Model: GEM318P
Processor
Model: T4
Direct-Access
Model: T4
Direct-Access
Chapter 4
Rev: 0006
ANSI SCSI revision: 03
Rev: 1
ANSI SCSI revision: 02
Rev: 0006
ANSI SCSI revision: 03
Rev: 1
ANSI SCSI revision: 02
Rev: 0300
ANSI SCSI revision: 03
Rev: 0300
ANSI SCSI revision: 03
SCSI RDMA Protocol
OL-12309-01