Dear Members,
I encounter some problems when configuring FCoE target and initiator, and 
detail configuration process and error message is as follows, plz kindly help 
to check. Thanks in advance.
 
====== Basic Environment ======
--- Target NIC: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) 
192.168.2.6/255.255.255.0
--- Initiator NIC: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller 
(Copper) (rev 01) 192.168.2.8/255.255.255.0
--- Both NICs are connected directly, MTU = 2500, and support PAUSE.
 
 

###### fcoe target ######

uname -a

Linux localhost.localdomain 2.6.23 #1 SMP Fri Sep 4 10:03:28 CST 2009 i686 i686 
i386 GNU/Linux

 

cd /home

mkdir fcoe_target_build

cd fcoe_target_build

 

git clone git://open-fcoe.org/archive/open-fcoe-target.git 

git clone git://open-fcoe.org/archive/open-fcoe-target-user.git 

 

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 

cd linux-2.6 && git-checkout v2.6.23

 

cd /home/fcoe_target_build

svn co https://scst.svn.sourceforge.net/svnroot/scst

cd /home/fcoe_target_build/linux-2.6

patch -p1 < 
/home/fcoe_target_build/scst/trunk/scst/kernel/scst_exec_req_fifo-2.6.23.patch

// there's no io_context patch for 2.6.23 kernel, so I get io_context warning 
when insmod scst.ko

make menuconfig

make all && make modules_install && make install

vim /boot/grub/menu.lst ## edit default= to 2.6.23 entry

sync

reboot

 

cd /home/fcoe_target_build/scst/trunk/scst/src

make && make install

 

cd /home/fcoe_target_build/open-fcoe-target

make SCST=/home/fcoe_target_build/scst/trunk/scst install_tgt

 

cd /home/fcoe_target_build

tar xzf hbaapi_src_2.2.tgz

cd hbaapi_src_2.2

patch HBAAPILIB.c < 
/home/fcoe_target_build/open-fcoe-target-user/usr/hbaapi/hbaapi2.2.patch

cc -m32 -c HBAAPILIB.c -fPIC -DVENDOR='"SomeCorp, Inc."' -DREVISION='"Rev 2.2"' 
-DREVNUM=2 -DMINREVNUM=2 -DLICENSE='"Subject to SNIA Public License"' 
-DBUILD_DATE="\"`date "+%m/%d/%y %H:%M:%S"`\""

ld -melf_i386 HBAAPILIB.o -G -o libHBAAPI.so

install libHBAAPI.so /usr/lib

cc -c HBAAPILIB.c -fPIC -DVENDOR='"SomeCorp, Inc."' -DREVISION='"Rev 2.2"' 
-DREVNUM=2 -DMINREVNUM=2 -DLICENSE='"Subject to SNIA Public License"' 
-DBUILD_DATE="\"`date "+%m/%d/%y %H:%M:%S"`\""

ld HBAAPILIB.o -G -o libHBAAPI.so

install libHBAAPI.so /usr/lib

 

cd /home/fcoe_target_build/open-fcoe-target-user/usr

make HBAAPI=/home/fcoe_target_build/hbaapi_src_2.2 && make install

 

cd /home/fcoe_target_build/scst/trunk/scstadmin

make && make install

vim /etc/init.d/scst ## modify SCST_MODULES to add "fcoe"

> /etc/scst.conf

 

sync

reboot

 

modprobe scsi_transport_fc

/etc/init.d/scst start ## this will load 
scst/scst_disk/scst_vdisk/openfctgt/fcoe modules

echo "assign 1:0:0:0 dev_disk" > /proc/scsi_tgt/scsi_tgt ## i have 2 scsi disk, 
and the 2nd will be for fcoe

echo "add 1:0:0:0 0" > /proc/scsi_tgt/groups/Default/devices

scstadmin -WriteConfig /etc/scst.conf

fcconf eth2 enable

 

#ethtool -i eth2

driver: atl1
version: 2.0.7
firmware-version: N/A
bus-info: 0000:03:00.0

#ethtool -a eth2

Pause parameters for eth2:

Autonegotiate:  on

RX:             on

TX:             on

#lspci

03:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet 
Adapter (rev b0)

#mii-tool

eth2: negotiated 100baseTx-FD flow-control, link ok

 

 

###### fcoe initiator ######

uname -a

Linux localhost.localdomain 2.6.30.5 #1 SMP Thu Sep 3 11:43:18 CST 2009 i686 
i686 i386 GNU/Linux

 

tar xjf linux-2.6.30.5.tar.bz2

make menuconfig ##ensure that 
FiberChannelTransportAttributes/libfc/libfcoe/fcoe be selected as M

make all && make modules_install && make install

vim /boot/grub/menu.lst ## select 2.6.30.5 entry

sync

reboot

 

modprobe fcoe

 

echo "eth1" > /sys/module/fcoe/parameters/create

 

#ethtool -i eth1

driver: e1000e

version: 0.3.3.4-k4

firmware-version: 1.6-12

bus-info: 0000:04:00.1

#ethtool -a eth1

Pause parameters for eth1:

Autonegotiate:  on

RX:             on

TX:             on

#lspci

04:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet 
Controller (Copper) (rev 01)

#mii-tool

SIOCGMIIREG on eth1 failed: Input/output error

eth1: negotiated 100baseTx-FD flow-control, link ok

  

 

###### fcoe target dmesg ######

 scst: ***WARNING***: There is no patch io_context for your kernel version. For 
performance reasons it is strongly recommended to upgrade your kernel to 
version >= 2.6.27.x.

[5411]: scst_suspend_activity:507:suspend_count 0

[5411]: scst_susp_wait:486:wait_event() returned 0

[5411]: scst_suspend_activity:552:Waiting for 0 active commands finally to 
complete

[5411]: scst_susp_wait:486:wait_event() returned 0

[5411]: __scst_resume_activity:583:suspend_count 0 left

[5411]: scst: scst_register_device:682:Attached to scsi0, channel 0, id 0, lun 
0, type 0

[5411]: scst_suspend_activity:507:suspend_count 0

[5411]: scst_susp_wait:486:wait_event() returned 0

[5411]: scst_suspend_activity:552:Waiting for 0 active commands finally to 
complete

[5411]: scst_susp_wait:486:wait_event() returned 0

[5411]: __scst_resume_activity:583:suspend_count 0 left

[5411]: scst: scst_register_device:682:Attached to scsi1, channel 0, id 0, lun 
0, type 0

[5421]: scst: scst_cmd_thread:3735:Processing thread started, PID 5421

[5422]: scst: scst_cmd_thread:3735:Processing thread started, PID 5422

[5423]: scst: scst_init_thread:3498:Init thread started, PID 5423

[5424]: scst: scst_tm_thread:5078:Task management thread started, PID 5424

[5411]: scst: init_scst:1883:SCST version 1.0.2 loaded successfully (max mem 
for commands 220MB, per device 88MB)

[5411]: scst: scst_print_config:1666:Enabled features: EXTRACHECKS, DEBUG

[5425]: scst: scst_global_mgmt_thread:5600:Management thread started, PID 5425

[5428]: scst_suspend_activity:507:suspend_count 0

[5428]: scst_susp_wait:486:wait_event() returned 0

[5428]: scst_suspend_activity:552:Waiting for 0 active commands finally to 
complete

[5428]: scst_susp_wait:486:wait_event() returned 0

[5428]: __scst_resume_activity:583:suspend_count 0 left

[5428]: scst: __scst_register_dev_driver:969:Device handler "dev_disk" for type 
0 registered successfully

[5428]: scst_suspend_activity:507:suspend_count 0

[5428]: scst_susp_wait:486:wait_event() returned 0

[5428]: scst_suspend_activity:552:Waiting for 0 active commands finally to 
complete

[5428]: scst_susp_wait:486:wait_event() returned 0

[5428]: __scst_resume_activity:583:suspend_count 0 left

[5428]: scst: __scst_register_dev_driver:969:Device handler "dev_disk_perf" for 
type 0 registered successfully

[5464]: scst: __scst_register_virtual_dev_driver:1067:Virtual device handler 
vdisk for type 0 registered successfully

[5464]: scst: __scst_register_virtual_dev_driver:1067:Virtual device handler 
vdisk_blk for type 0 registered successfully

[5464]: scst: __scst_register_virtual_dev_driver:1067:Virtual device handler 
vdisk_null for type 0 registered successfully

[5464]: scst: __scst_register_virtual_dev_driver:1067:Virtual device handler 
vcdrom for type 5 registered successfully

[5468]: scst: __scst_register_target_template:253:Target template openfct 
registered successfully

[5478]: dev_vdisk: vdisk_report_registering:2834:Registering virtual FILEIO 
device disk01 (NV_CACHE)

[5478]: scst_suspend_activity:507:suspend_count 0

[5478]: scst_susp_wait:486:wait_event() returned 0

[5478]: scst_suspend_activity:552:Waiting for 0 active commands finally to 
complete

[5478]: scst_susp_wait:486:wait_event() returned 0

[5499]: scst: scst_cmd_thread:3735:Processing thread started, PID 5499

[5500]: scst: scst_cmd_thread:3735:Processing thread started, PID 5500

[5501]: scst: scst_cmd_thread:3735:Processing thread started, PID 5501

[5502]: scst: scst_cmd_thread:3735:Processing thread started, PID 5502

[5503]: scst: scst_cmd_thread:3735:Processing thread started, PID 5503

[5478]: dev_vdisk: vdisk_attach:576:Attached SCSI target virtual disk disk01 
(file="/dev/sdb", fs=76319MB, bs=512, nblocks=156301488, cyln=76319)

[5478]: __scst_resume_activity:583:suspend_count 0 left

[5478]: scst: scst_register_virtual_device:836:Attached to virtual device 
disk01 (id 1)

[5478]: scst_suspend_activity:507:suspend_count 0

[5478]: scst_susp_wait:486:wait_event() returned 0

[5478]: scst_suspend_activity:552:Waiting for 0 active commands finally to 
complete

[5478]: scst_susp_wait:486:wait_event() returned 0

[5478]: scst_report_luns_changed:686:REPORTED LUNS DATA CHANGED (acg Default)

[5478]: scst: scst_acg_add_dev:1797:Added device 1:0:0:0 to group Default (LUN 
0, rd_only 0)

[5478]: __scst_resume_activity:583:suspend_count 0 left

device eth0 entered promiscuous mode

 mtu 2136

 

====== initiator connects to target, fcoe target's error msg from here ======

fc_local_port_flogi_resp: bad FLOGI response

fc_local_port_flogi_resp fffffe -> 000000 xids 0062 0002 ELS rep ELS LS_ACC

------------[ cut here ]------------

kernel BUG at 
/home/fcoe_target_build/open-fcoe-target/openfctgt/openfc_scst_pkt.h:119!

invalid opcode: 0000 [#1]

SMP 

Modules linked in: fcoe openfctgt scst_vdisk scst_disk scst atl1 
scsi_transport_fc

CPU:    0

EIP:    0060:[<f8a826b3>]    Not tainted VLI

EFLAGS: 00010246   (2.6.23 #1)

EIP is at openfct_session_create+0x18/0xd3 [openfctgt]

eax: edc44000   ebx: f7562f80   ecx: 00010102   edx: ec721380

esi: ec721380   edi: 00000000   ebp: 00000000   esp: ebb17e00

ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068

Process fcoethread/0 (pid: 5475, ti=ebb16000 task=eee85a40 task.ti=ebb16000)

Stack: 0049474f f7562040 f0ead400 f8a84a60 ec721380 00000020 c039f1e4 f0ead400 

       00980000 eb50372c f7562f80 ec721380 00000000 00000000 f8a83907 00000001 

       eea26180 f0ead400 f0ead4bc f8a838b4 f0eb901e ec53bc00 eea26180 f8a8d19e 

Call Trace:

 [<f8a84a60>] fc_exch_complete_locked+0x6d/0x9e [openfctgt]

 [<c039f1e4>] __alloc_skb+0x4d/0xfb

 [<f8a83907>] fcs_local_port_prli_accept+0x53/0x91 [openfctgt]

 [<f8a838b4>] fcs_local_port_prli_accept+0x0/0x91 [openfctgt]

 [<f8a8d19e>] fc_sess_recv_req+0x1d9/0x98d [openfctgt]

 [<f8a8defb>] fc_sess_lookup_create+0xf8/0x101 [openfctgt]

 [<f8a89873>] fc_local_port_recv_req+0xaf/0x159 [openfctgt]

 [<f8a85e40>] fc_exch_recv_req+0x71e/0x7da [openfctgt]

 [<f8a897c4>] fc_local_port_recv_req+0x0/0x159 [openfctgt]

 [<f8a904ef>] sa_hash_lookup+0xd/0x3f [openfctgt]

 [<f8a89b84>] fc_local_port_recv+0x267/0x326 [openfctgt]

 [<f8a897c4>] fc_local_port_recv_req+0x0/0x159 [openfctgt]

 [<f8a8f8d2>] fc_port_ingress+0x61/0x67 [openfctgt]

 [<f885585d>] fcoe_percpu_receive_thread+0x66e/0x792 [fcoe]

 [<c013642f>] lock_hrtimer_base+0x15/0x2f

 [<f88551ef>] fcoe_percpu_receive_thread+0x0/0x792 [fcoe]

 [<c0133acf>] kthread+0x38/0x5d

 [<c0133a97>] kthread+0x0/0x5d

 [<c0105a7b>] kernel_thread_helper+0x7/0x10

 =======================

Code: 20 19 00 89 f2 89 d8 5b 5e 5f e9 94 cc 99 c7 5b 5e 5f c3 55 57 56 53 83 
ec 28 89 54 24 10 8b b8 04 21 00 00 8b 4a 1c 85 ff 75 04 <0f> 0b eb fe 8b 6f 2c 
8b 55 00 eb 0d 3b 4d 10 0f 84 9c 00 00 00 

EIP: [<f8a826b3>] openfct_session_create+0x18/0xd3 [openfctgt] SS:ESP 
0068:ebb17e00

------------[ cut here ]------------

kernel BUG at 
/home/fcoe_target_build/open-fcoe-target/openfctgt/openfc_scst_pkt.h:119!

invalid opcode: 0000 [#2]

SMP 

Modules linked in: fcoe openfctgt scst_vdisk scst_disk scst sk98lin 
scsi_transport_fc

CPU:    1

EIP:    0060:[<f8a826b3>]    Tainted: G      D VLI

EFLAGS: 00010246   (2.6.23 #1)

EIP is at openfct_session_create+0x18/0xd3 [openfctgt]

eax: edc44000   ebx: f7562f80   ecx: 00010102   edx: ec721380

esi: ec721380   edi: 00000000   ebp: 00000000   esp: eba0de00

ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068

Process fcoethread/1 (pid: 5476, ti=eba0c000 task=ef89ba40 task.ti=eba0c000)

Stack: f88560c0 f7562040 f1144800 f8a84a60 ec721380 00000020 c039f1e4 f1144800 

       00980000 eb5004b4 f7562f80 ec721380 00000000 00000000 f8a83907 00000001 

       eea26180 f1144800 eb5005b4 f8a838b4 f0ebc01e ec53bc00 eea26180 f8a8d19e 

Call Trace:

 [<f88560c0>] fcoe_frame_alloc+0x4e/0xee [fcoe]

 [<f8a84a60>] fc_exch_complete_locked+0x6d/0x9e [openfctgt]

 [<c039f1e4>] __alloc_skb+0x4d/0xfb

 [<f8a83907>] fcs_local_port_prli_accept+0x53/0x91 [openfctgt]

 [<f8a838b4>] fcs_local_port_prli_accept+0x0/0x91 [openfctgt]

 [<f8a8d19e>] fc_sess_recv_req+0x1d9/0x98d [openfctgt]

 [<f8a8defb>] fc_sess_lookup_create+0xf8/0x101 [openfctgt]

 [<f8a89873>] fc_local_port_recv_req+0xaf/0x159 [openfctgt]

 [<f8a85e40>] fc_exch_recv_req+0x71e/0x7da [openfctgt]

 [<f8a897c4>] fc_local_port_recv_req+0x0/0x159 [openfctgt]

 [<f8a904ef>] sa_hash_lookup+0xd/0x3f [openfctgt]

 [<f8a89b84>] fc_local_port_recv+0x267/0x326 [openfctgt]

 [<f8a897c4>] fc_local_port_recv_req+0x0/0x159 [openfctgt]

 [<f8a8f8d2>] fc_port_ingress+0x61/0x67 [openfctgt]

 [<f885585d>] fcoe_percpu_receive_thread+0x66e/0x792 [fcoe]

 [<f88551ef>] fcoe_percpu_receive_thread+0x0/0x792 [fcoe]

 [<c0133acf>] kthread+0x38/0x5d

 [<c0133a97>] kthread+0x0/0x5d

 [<c0105a7b>] kernel_thread_helper+0x7/0x10

 =======================

Code: 20 19 00 89 f2 89 d8 5b 5e 5f e9 94 cc 99 c7 5b 5e 5f c3 55 57 56 53 83 
ec 28 89 54 24 10 8b b8 04 21 00 00 8b 4a 1c 85 ff 75 04 <0f> 0b eb fe 8b 6f 2c 
8b 55 00 eb 0d 3b 4d 10 0f 84 9c 00 00 00 

EIP: [<f8a826b3>] openfct_session_create+0x18/0xd3 [openfctgt] SS:ESP 
0068:eba0de00

 

 

###### fcoe initiator dmesg ######

 scsi3 : FCoE Driver

fc_lport_recv_flogi_req FLOGI from port WWPN 2000000aeb302fa6

fc_rport_plogi_resp Received a PLOGI response, but in state PRLI

fc_lport_flogi_resp Received a FLOGI response, but in state Ready
 
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to