Hello,

I am an FCoE newbie.  I am using OpenSolaris version snv_134.  I have two 
machines.  I created an FCoE Target on the e1000g0 interface on machine1 using 
the command:

"fcadm create-fcoe-port -tf e1000g0"

bash# fcadm list-fcoe-ports -t
HBA Port WWN: 2000001b2128e0c8
        Port Type: Target
        MAC Name: e1000g0
        MTU Size: 2500
        Primary MAC Address: 001b2128e0c8
        Current MAC Address: 001b2128e0c8
        [b]Promiscuous Mode: On[/b]

I created an FCoE initiator on the e1000g0 interface on machine2 using the 
command:

"fcadm create-fcoe-port -if e1000g0"

bash# fcadm list-fcoe-ports
HBA Port WWN: 2000001b2114432a
        Port Type: Initiator
        MAC Name: e1000g0
        MTU Size: 2500
        Primary MAC Address: 001b2114432a
        Current MAC Address: 001b2114432a
        Promiscuous Mode: On


I had to use the '-f' option for promiscuous mode to see both the target and 
the initiator in the 'online' state.

I had directly connected the e1000g0 interfaces of the two machines using a 1 
gigabit ethernet cable (point-to-point).

Machine2 is able to recognize two scsi devices which have been exposed through 
the FCoE target.

bash# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c4d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 63>
          /p...@0,0/pci-...@1f,2/i...@0/c...@0,0
       1. c4d1 <GB0500C8-9QM0YVX-0001-465.76GB>
          /p...@0,0/pci-...@1f,2/i...@0/c...@1,0
       2. c8t600144F03B26CF0000004BE108060002d0 <DEFAULT cyl 1022 alt 2 hd 64 
sec 32>
          /scsi_vhci/d...@g600144f03b26cf0000004be108060002
       3. c8t600144F03B26CF0000004BF50E1E0007d0 <DEFAULT cyl 1303 alt 2 hd 255 
sec 63>
          /scsi_vhci/d...@g600144f03b26cf0000004bf50e1e0007
Specify disk (enter its number):

bash# cfgadm -o show_FCP_dev -al
Ap_Id                                      Type                      Receptacle 
         Occupant     Condition
c6                                           fc-pt_to_pt            connected   
         configured   unknown
c6::2000001b2128e0c8,2         disk         connected    configured   unknown
c6::2000001b2128e0c8,3         disk         connected    configured   unknown
c7                             fc-pt_to_pt  connected    configured   unknown
c7::2000001b2128e0c9,2         disk         connected    configured   unknown
c7::2000001b2128e0c9,3         disk         connected    configured   unknown

But when I tried to create a zpool on Machine2 with either of those two scsi 
disks, I got an error:

bash# zpool create -f fcPool c8t600144F03B26CF0000004BE108060002d0
cannot label 'c8t600144F03B26CF0000004BE108060002d0': try using fdisk(1M) and 
then provide a specific slice 

Also when I tried to get link statistics, I got the 'SendRLS failure' error:

Machine1:

bash# fcinfo hba-port -l
HBA Port WWN: 2000001b2128e0c8
        Port Mode: Target
        Port ID: ef
        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 
        Driver Version: v20091123-1.02
        Type: point-to-point
        State: online
        Supported Speeds: 1Gb 10Gb 
        Current Speed: 1Gb 
        Node WWN: 1000001b2128e0c8
Error: SendRLS failed for 2000001b2128e0c8

/var/adm/sun_fc.debug stack trace:

1274875708:1:Sun_fcSendRLS:DEBUG:entered
1274875708:1: Handle::findHandle(id):DEBUG:entered
1274875708:1: Handle::findHandle(id):DEBUG:exited
1274875708:1: HBA::getPort:DEBUG:entered
1274875708:1:  HBA::getPort:DEBUG:getPort(wwn): WWN 2000001b2128e0c8
1274875708:1: HBA::getPort:DEBUG:exited
1274875708:1: FCHBAPort::sendRLS:DEBUG:entered
1274875708:1:  TgtFCHBAPort::fct_ioctl:DEBUG:entered
1274875708:1:   HBA::open:DEBUG:entered
1274875708:1:   HBA::open:DEBUG:exited
1274875708:1:   HBA::ioctl:DEBUG:entered
1274875708:1:    HBAException:DEBUG:entered
1274875708:1:     HBAException:DEBUG:Error code: 1
1274875708:1:     HBAException:STACK:Stack trace follows
1274875708:1:     HBAException:STACK:       HBAException
1274875708:1:     HBAException:STACK:       HBA::ioctl
1274875708:1:     HBAException:STACK:       TgtFCHBAPort::fct_ioctl
1274875708:1:     HBAException:STACK:       FCHBAPort::sendRLS
1274875708:1:     HBAException:STACK:       Sun_fcSendRLS
1274875708:1:    HBAException:DEBUG:exited
1274875708:1:    IOError::IOError(string):DEBUG:entered
1274875708:1:     IOError::IOError(string):IO:IOCTL failed (I/O error)
1274875708:1:    IOError::IOError(string):DEBUG:exited
1274875708:1:   HBA::ioctl:DEBUG:exited
1274875708:1:   transportError:DEBUG:entered
1274875708:1:   transportError:DEBUG:exited
1274875708:1:   TgtFCHBAPort::fct_ioctl:IO:ioctl (0x460007d7) failed. 
Transport: "FCA capability error"
1274875708:1:  TgtFCHBAPort::fct_ioctl:DEBUG:exited
1274875708:1: FCHBAPort::sendRLS:DEBUG:exited
1274875708:1:Sun_fcSendRLS:DEBUG:exited


Machine2:

bash# fcinfo hba-port -l
HBA Port WWN: 2000001b2114432a
        Port Mode: Initiator
        Port ID: 1
        OS Device Name: /dev/cfg/c6
        Manufacturer: Sun Microsystems, Inc.
        Model: FCoE Virtual FC HBA
        Firmware Version: N/A
        FCode/BIOS Version: N/A
        Serial Number: N/A
        Driver Name: SunFC FCoEI v20090729-1.00
        Driver Version: 20090729-1.00
        Type: point-to-point
        State: online
        Supported Speeds: 1Gb 10Gb 
        Current Speed: 1Gb 
        Node WWN: 1000001b2114432a
Error: SendRLS failed for 2000001b2114432a

/var/adm/sun_fc.debug stack trace:

1274875891:1:Sun_fcSendRLS:DEBUG:entered
1274875891:1: Handle::findHandle(id):DEBUG:entered
1274875891:1: Handle::findHandle(id):DEBUG:exited
1274875891:1: HBA::getPort:DEBUG:entered
1274875891:1:  HBA::getPort:DEBUG:getPort(wwn): WWN 2000001b2114432a
1274875891:1: HBA::getPort:DEBUG:exited
1274875891:1: FCHBAPort::sendRLS:DEBUG:entered
1274875891:1:  FCHBAPort::getPortAttributes:DEBUG:entered
1274875891:1:   FCHBAPort::fp_ioctl:DEBUG:entered
1274875891:1:    FCHBAPort::fp_ioctl with openflag:DEBUG:entered
1274875891:1:     HBA::open:DEBUG:entered
1274875891:1:     HBA::open:DEBUG:exited
1274875891:1:     HBA::ioctl:DEBUG:entered
1274875891:1:     HBA::ioctl:DEBUG:exited
1274875891:1:    FCHBAPort::fp_ioctl with openflag:DEBUG:exited
1274875891:1:   FCHBAPort::fp_ioctl:DEBUG:exited
1274875891:1:  FCHBAPort::getPortAttributes:DEBUG:exited
1274875891:1:  FCHBAPort::fp_ioctl:DEBUG:entered
1274875891:1:   FCHBAPort::fp_ioctl with openflag:DEBUG:entered
1274875891:1:    HBA::open:DEBUG:entered
1274875891:1:    HBA::open:DEBUG:exited
1274875891:1:    HBA::ioctl:DEBUG:entered
1274875891:1:     HBAException:DEBUG:entered
1274875891:1:      HBAException:DEBUG:Error code: 1
1274875891:1:      HBAException:STACK:Stack trace follows
1274875891:1:      HBAException:STACK:      HBAException
1274875891:1:      HBAException:STACK:      HBA::ioctl
1274875891:1:      HBAException:STACK:      FCHBAPort::fp_ioctl with openflag
1274875891:1:      HBAException:STACK:      FCHBAPort::fp_ioctl
1274875891:1:      HBAException:STACK:      FCHBAPort::sendRLS
1274875891:1:      HBAException:STACK:      Sun_fcSendRLS
1274875891:1:     HBAException:DEBUG:exited
1274875891:1:     IOError::IOError(string):DEBUG:entered
1274875891:1:      IOError::IOError(string):IO:IOCTL failed (I/O error)
1274875891:1:     IOError::IOError(string):DEBUG:exited
1274875891:1:    HBA::ioctl:DEBUG:exited
1274875891:1:    transportError:DEBUG:entered
1274875891:1:    transportError:DEBUG:exited
1274875891:1:    FCHBAPort::fp_ioctl with openflag:IO:ioctl (0x47ce) failed. 
Transport: "request is invalid"
1274875891:1:   FCHBAPort::fp_ioctl with openflag:DEBUG:exited
1274875891:1:  FCHBAPort::fp_ioctl:DEBUG:exited
1274875891:1: FCHBAPort::sendRLS:DEBUG:exited
1274875891:1:Sun_fcSendRLS:DEBUG:exited

Have I missed any intermediate step/setting?  Please let me know if you need 
more information.

Thanks,
Naren.
-- 
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
storage-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to