On 01/15/2014 12:36 PM, Robert Love wrote:

On 01/15/2014 05:23 AM, Natti Shwarts wrote:
Hello,

I'm trying to work with SCSI target over FCoE. (using fileio sample of SCST) I'm using Linux 3.8.13 , Intel 10G card and HP5900 switch with VSAN 10 for
FCoE.
I am not familiar with the SCST commands to be able to tell you if you're using it right. I might be able to give you some pointers to help debug though.

The problem is that the target doesn't send FLOGI to the switch.
(I have windows client that works with the same switch and configuration
and succeed to login)

The following is the operation sequence I perform:
- vconfig add eth2 10
- load scst, scst_user
- fileio_tgt disk0 file0 disk1 file1
- modprobe fcoe
- echo eth2.10 > /sys/module/libfcoe/parameters/create_vn2vn (fcoeadm -c
eth2.10  returned an error)


I'm using TCM, not SCST, but VN2VN with a VLAN worked for me.

I have debug logging on for libfcoe on both systems.

# echo 0xFFFF > /sys/module/libfcoe/parameters/debug_logging

On Target:

[root@vmF18t ~]# uname -r
3.13.0+
[root@vmF18t ~]# modprobe fcoe
[root@vmF18t ~]# echo eth2.10 > /sys/module/libfcoe/parameters/create_vn2vn
[root@vmF18t ~]# tail -10 /var/log/messages
Jan 24 13:46:27 vmF18t kernel: [61662872.081832] host8: fip: state VNMP_START -> VNMP_PROBE1 Jan 24 13:46:27 vmF18t kernel: [61662872.181897] host8: fip: state VNMP_PROBE1 -> VNMP_PROBE2 Jan 24 13:46:27 vmF18t kernel: [61662872.583338] host8: fip: state VNMP_PROBE2 -> VNMP_CLAIM Jan 24 13:46:27 vmF18t kernel: [61662872.584493] host8: Assigned Port ID 0091fb Jan 24 13:46:27 vmF18t kernel: [61662872.584498] host8: lport 0091fb: Entered READY from state FLOGI Jan 24 13:46:27 vmF18t kernel: [61662872.584502] host8: lport 0091fb: Discovery succeeded Jan 24 13:46:28 vmF18t kernel: [61662872.985577] host8: fip: state VNMP_CLAIM -> VNMP_UP

On Initiator:

[root@vmF18i open-fcoe-initiator]# uname -r
3.13.0+
[root@vmF18i open-fcoe-initiator]# modprobe fcoe
[root@vmF18i open-fcoe-initiator]# echo eth2.10 > /sys/module/libfcoe/parameters/create_vn2vn
[root@vmF18i open-fcoe-initiator]# lsscsi
[1:0:0:0]    cd/dvd  QEMU     QEMU DVD-ROM     1.0.  /dev/sr0
[17:0:0:1]   disk    LIO-ORG  FILEIO           4.0   /dev/sda
[root@vmF18i open-fcoe-initiator]# tail -10 /var/log/messages
Jan 24 13:49:04 vmF18i kernel: [61654280.239674] host17: rport 0091fb: Received a PRLI response, but in state Ready Jan 24 13:49:04 vmF18i kernel: [61654280.240496] host17: rport 0091fb: Received a FLOGI response, but in state Ready Jan 24 13:49:04 vmF18i kernel: [61654280.245301] host17: rport 0091fb: callback ev 1 Jan 24 13:49:04 vmF18i kernel: [61654280.253803] scsi 17:0:0:1: Direct-Access LIO-ORG FILEIO 4.0 PQ: 0 ANSI: 5 Jan 24 13:49:04 vmF18i kernel: [61654280.259583] sd 17:0:0:1: [sda] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) Jan 24 13:49:04 vmF18i kernel: [61654280.261441] sd 17:0:0:1: Attached scsi generic sg1 type 0 Jan 24 13:49:04 vmF18i kernel: [61654280.263090] sd 17:0:0:1: [sda] Write Protect is off Jan 24 13:49:04 vmF18i kernel: [61654280.265034] sd 17:0:0:1: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA Jan 24 13:49:04 vmF18i kernel: [61654280.278197] sda: unknown partition table Jan 24 13:49:04 vmF18i kernel: [61654280.291158] sd 17:0:0:1: [sda] Attached SCSI disk

_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to