Ok I tried for the first time to setup FCoE. You need at least OpenSolaris b93 for the initialtor and the target to work. Good because I did not upgrade my OpenSolaris box to b97 yet. After downloading the packages at http://opensolaris.org/os/project/fcoe/, I remove the packages that I needed to installed:
# pkgrm SUNWfcp SUNWfcprt SUNWfcsm SUNWfctl SUNWstmf SUNWstmfu
Then I installed the new packages:
# pkgadd -d . SUNWfcip SUNWfcoe SUNWfcoei SUNWfcoet SUNWfcp SUNWfcprt SUNWfcsm SUNWfctl SUNWstmf SUNWstmfu
On the target you need to create a new lun with comstar:
# zfs create rpool/comstart
# zfs -V 2g create rpool/comstar/lun0
# sbdadm create-lu /dev/zvol/dsk/rpool/comstar/lun0
# sbdadm list-lu
Found 1 LU(s)
GUID DATA SIZE SOURCE
——————————– ——————- —————-
600144f016000000000048c2ed710001 2147418112 /dev/zvol/dsk/rpool/comstar/lun0
# stmfadm add-view 600144f016000000000048c2ed710001
# fcadm create-fcoet-port -f bge
# fcadm hba-port
HBA Port WWN: 0100001d09f22101
Port Mode: Target
Port ID: ea
OS Device Name: Not Applicable
Manufacturer: Sun Microsystems, Inc.
Model: FCoE Virtual FC HBA
Firmware Version: N/A
FCode/BIOS Version: N/A
Serial Number: N/A
Driver Name: COMSTAR FCOET v20080829-1.0
Driver Version: 20080829-1.0
Type: point-to-point
State: online
Supported Speeds: 1Gb 10Gb
Current Speed: not established
Node WWN: 1000001d09f221ba
Ok good it looks easy on the target. Now I need to setup the initialtor. I then try on a xVM domU to see if it works. After installing and removing the packages I try to setup the initialtor:
# fcadm create-fcoei-port -f xnf0
Success ! Add target port xnf0
# fcadm hba-port
HBA Port WWN: ef0000163e6430ef
Port Mode: Initiator
Port ID: 0
OS Device Name: /dev/cfg/c2
Manufacturer:
Model:
Firmware Version:
FCode/BIOS Version:
Serial Number: not available
Driver Name: not available
Driver Version: not available
Type: unknown
State: offline
Supported Speeds: not established
Current Speed: not established
Node WWN: 100000163e6430b3
NPIV Not Supported
Humm does not look good. Port state offline..
Ok then, I will jumpstart my Netra X1 and try it out. Installed b97 and installed the new packages from the FCoE project. Then I tried:
# fcadm create-fcoei-port -f dmfe0
Success ! Add target port dmfe0
# Sep 9 00:02:04 netrax1 fp: WARNING: fp_attach: ins(0)
Sep 9 00:02:04 netrax1 fctl: FCA doesn’t support ulp
WARNING: prlifcoe: c8fd0012
WARNING: PRLI: 8, 1, 0
panic[cpu0]/thread=2a10014fca0: BAD TRAP: type=34 rp=2a10014f570 addr=3000133f50e mmu_fsr=0
sched: alignment error:
addr=0x3000133f50e
pid=0, pc=0x7bf099ec, sp=0x2a10014ee11, tstate=0×80001600, context=0×0
g1-g7: 0, 0, 0, 0, 0, 0, 2a10014fca0
000002a10014f290 unix:die+98 (34, 2a10014f570, 3000133f50e, 0, 10c1c00, 2a10014f350)
%l0-3: 00000000fa062008 00000000c0c00000 00000000c1e00000 00000000c0800000
%l4-7: 00000000c1800000 0000000000000000 0000000000000000 0000000000000001
000002a10014f370 unix:trap+688 (2a10014f570, 0, 80000b00000034, 80000b, 10000, 0)
%l0-3: 0000000000010000 000002a10014fca0 000000000003fe8d 0000000001835bc0
%l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000010009
000002a10014f4c0 unix:ktl0+48 (300034a29a0, 10, ffffffffffffffff, 2, 300034a29a0, 3)
%l0-3: 0000000000000001 0000000000001400 0000000080001600 000000000101b7b0
%l4-7: 0000000000000001 0000000000000000 0000000000000000 000002a10014f570
000002a10014f610 3 (3000133f506, 300021aa980, c, ffff, 17, 17)
%l0-3: 0000000000000040 00000000003c0000 0000000000000003 0000000000000800
%l4-7: 00000000000007ff 0000000000000003 000000000000003b 0000000000000000
000002a10014f6c0 fcoei:fcoei_process_sol_fcp_resp+22c (1, 0, 3, 3000133f4ee, c, 300034a2830)
%l0-3: 00000300034a29a0 0000000000000000 0000000000000000 000003000133f4ee
%l4-7: 0000000000000003 0000000000000003 00000300034a2830 0000000000000000
000002a10014f780 fcoei:fcoei_process_unsol_frame+838 (30001db5e80, 2a10014fca0, 300035af0a8, 7, 300035af0a8, 300035af0a8)
%l0-3: 00000300034a29a0 0000000000060400 0000000000000010 0000000000000000
%l4-7: 0000030001f1d000 000000007bf161c0 0000030001f1d000 000000000000fc00
000002a10014f860 fcoei:fcoei_process_events+cc (300035aefc0, 0, 300035af098, 88e50, 300035af088, 30003527ef8)
%l0-3: 000000000026dce8 00000000018bbc00 000002a10014fca0 3ffffffffbc2de80
%l4-7: 0000000000000032 0000030001db5f38 0000000000000003 00000000011fe000
000002a10014f910 fcoei:fcoei_watchdog+ac (300035aefc0, 7bf0b000, 300035af0cc, 20, 300035af098, 300035af0bc)
%l0-3: 00000300035af088 00000300035aefe8 0000000000000064 00000300035af080
%l4-7: 000000000026dce8 00000300035af0b8 00000300035af0c8 0000000000000032
000002a10014f9c0 genunix:taskq_thread+19c (300039eb6d8, 300039eb730, 10001, 17462ce080c7, 2a10014fa8a, 2a10014fa88)
%l0-3: 0000000000010000 00000300039eb70a 00000300039eb708 00000300039eb700
%l4-7: 0000030000fcd340 0000000001867800 000000000026dc00 00000300039eb6f8
syncing file systems… done
dumping to /dev/md/dsk/d1, offset 215154688, content: kernel
100% done: 12086 pages dumped, compression ratio 2.90, dump succeeded
rebooting…
Doh!! Well no luck.. Not for tonight.