Re: iscsistart -N skips offload NICs causing boot to fail on debian

2016-12-12 Thread Andrew Patterson


On Friday, December 9, 2016 at 3:33:57 PM UTC-7, Mike Christie wrote:
>
> On 12/08/2016 10:55 AM, andrew.p...@hpe.com  wrote: 
> > I am trying to get iSCSI boot working on a debian-based system 
> > using built-in uEFI iSCSI initiator firmware and broadcom 
> > NICs (bnx2x). 
> > 
> > The debian initramfs uses the ibft support in iscsistart to log 
> > into the root volume. The initramfs script uses iscsistart -N to 
> > bring up the NICs before logging in with iscsstart -b. This 
> > process works fine when using non-offload NICs, but fails when 
> > using NICs using the bnx2, bnx2x, cxgb3, and cxgb4 drivers due to 
> > the following code in 
> > utils/fwparam_ibft/fw_entry.c:fw_setup_nics(): 
> > 
> > list_for_each_entry(context, , list) {   
> > /* if it is a offload nic ignore it */ 
> > if (!net_get_transport_name_from_netdev(context->iface, 
> > transport)) 
> > continue 
> > 
> > 
> > Which does a lookup in the table in usr/iscsi_net_util.c 
> > 
> > static struct iscsi_net_driver net_drivers[] = { 
> > {"cxgb3", "cxgb3i" }, 
> > {"cxgb4", "cxgb4i" }, 
> > {"bnx2", "bnx2i" }, 
> > {"bnx2x", "bnx2i"}, 
> > {NULL, NULL} 
> > }; 
> > 
> > 
> > to see if -N should skip this NIC.  I cannot determine the reason 
> > for this check. Do iscsi offload NICs not need to be configured 
> > for boot? The current code causes iscsi boots to fail. I removed the 
> > check and booting works fine. 
> > 
>
> If you use the ibft net info for the nic, what do you use for the iscsi 
> offload engine? 


I am not configuring it at boot (at least not yet). I haven't tried
using the boot support in the NIC firmware yet, just the uEFI iSCSI firmware
which will work with any NIC.


 

> Do they both have the same IP, and are you creating boot 
> iscsi sessions through the offload engine? 
>

I am not using offload yet. But I will probably need to get this working next.



> cxgb*i is able to share the net info. The normal old nic engine and 
> iscsi engine are able to use the same IP. That originally was not 
> supposed to be allowed upstream, but it got in. 
>
> bnx2* is (or at least was when we wrote that code) not able to share the 
> net info. The nic and iscsi engines need different IPs. 
>

That makes some sense. The firmware has two different MAC addresses,
one for the NIC and one for iSCSI.


 

>
> So to cover both types we just use the ibft net info for the iscsi 
> offload engines. 
>
> In the version of the code you are using is OFFLOAD_BOOT_SUPPORTED 
> defined in open-iscsi/usr/iface.c or not? 
>

Version 2.0.874. OFFLOAD_BOOT_SUPPORTED is in the code but not defined.



> If it's not defined and you modified the code like you described, then I 
> think you would use the ibft info to setup the normal old nic, and then 
> you would end up creating a boot session using software iscsi. 


Yes, I believe that is the result I am getting.


 

> I am not 
> 100% sure about this last statement. I cannot remember and just looked 
> at the code for a couple minutes. 
>

I will try defining OFFLOAD_BOOT_SUPPORTED to see if that brings up the NIC.

 

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with iSCSI connected LTO-2 tape drive

2016-12-12 Thread Dave partridge
I just ran a Wireshark capture on the target system of the iSCSI session 
for a Windows initiator connecting the tape and then issuing an FSF.  I 
then did the same for the Ubuntu open-iscsi initiator.

The capture for the WIndows initiator looks pretty much as I would expect 
(given my limited knowledge of the iSCSI protocols).

The Ubuntu/open-iscsi capture has all sorts of odd stuff like logins being 
sent to the target every 15 seconds whle the FSF is being processed.  
Definitely borked I think.

Do any of the open-iscsi folk watch this forum or am I talking to myself?

Dave

On Sunday, December 11, 2016 at 11:55:15 AM UTC, Dave partridge wrote:
>
> Ubuntu 16.04.1 LTS with kernel 4.8.13.  Connected to target drive over 1GB 
> ethernet.  Drive is HP Ultrium 460 (Ultrium 2), firmware is F63D - which is 
> latest).
>
> Target is served by Starwind V8 running on Windows 10 x64
>
> Dave
>
> On Saturday, December 10, 2016 at 10:38:43 PM UTC, The Lee-Man wrote:
>>
>> What is your setup? What OS and version are you running on, what is your 
>> transport, and what tape drive are you using?
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.


Ubuntu iscsi.cap
Description: application/cap


Windows iscsi.cap
Description: application/cap