[openib-general] srp initiator device discovery

vishal vishal at endace.com
Tue Dec 12 12:21:00 PST 2006


Hi,

    I have only a single cable connecting the initiator and the target
machine...

Thanks!

Vishal


On Tue, 2006-12-12 at 01:03 -0800, Vu Pham wrote:
> How many cable did you connect from your host to fabric?
> 
> If you have two cables (2 ports of same hca or each port of 
> 2 hcas) connected then you have two paths to same srp 
> target. Each path will see the same number of luns of srp 
> target. You can work with dm-multipath/multipath and access 
> the luns/devices thru /dev/mapper - this will provide you 
> capability of fail-over/fail-back functionality
> 
> IBGD's srp target only works with scsi devices. It does not 
> work with block devices (hdX, md, lvm volules ...)
> 
> -vu
> 
> > Hi,
> > 
> >    I have srp initiator installed with OFED-1.1, and another machine
> > with SRP target (IBGOLD). I started the srp daemon to discover the
> > target devices, and then ran fdisk -l to see the list. The list (below)
> > shows duplicate devices :-
> > 
> > Disk /dev/sdb: 2199.0 GB, 2199023255552 bytes
> > 255 heads, 63 sectors/track, 267349 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> > Disk /dev/sdb doesn't contain a valid partition table
> > 
> > Disk /dev/sdc: 2199.0 GB, 2199023255552 bytes
> > 255 heads, 63 sectors/track, 267349 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > 
> > Disk /dev/sdd: 500.1 GB, 500107862016 bytes
> > 255 heads, 63 sectors/track, 60801 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/sdd1   *           1          13      104391   83  Linux
> > /dev/sdd2              14       60801   488279610   8e  Linux LVM
> > 
> > Disk /dev/sde: 2199.0 GB, 2199023255552 bytes
> > 255 heads, 63 sectors/track, 267349 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> > Disk /dev/sde doesn't contain a valid partition table
> > 
> > Disk /dev/sdf: 2199.0 GB, 2199023255552 bytes
> > 255 heads, 63 sectors/track, 267349 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > 
> > Disk /dev/sdg: 500.1 GB, 500107862016 bytes
> > 255 heads, 63 sectors/track, 60801 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/sdg1   *           1          13      104391   83  Linux
> > /dev/sdg2              14       60801   488279610   8e  Linux LVM
> > 
> > 
> > 
> > Doing some tests I found that sdb=sde, sdc=sdf, and sdd=sdg (obvious).
> > 
> > I also tested the device discovery after creating an md device on the
> > target side, and found that the initiator doesn't take into account the
> > presence of an md device. Is this the expected behaviour ?
> > 
> > Thanks for your time!
> > 
> > Vishal
> > 
> > 
> > _______________________________________________
> > openib-general mailing list
> > openib-general at openib.org
> > http://openib.org/mailman/listinfo/openib-general
> > 
> > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
> > 
> 





More information about the general mailing list