On 10/6/15, 5:58 AM, Ferenc Wagner wrote:
Hi,

When booting Linux from iSCSI, the initial connections are set up like

modprobe iscsi_tcp
modprobe crc32c
modprobe iscsi_ibft
iscsistart -N
iscsistart -b

that is, all the parameters are set in the offload card via the adapter
ROM utility and the initramfs scripts read them from the iBFT.


Did you implement this solution yourself or what distro are you using?


My questions:

1. Can the iBFT contain two target specifications (one per NIC) only?  I
    can set up more in the adapter ROM utility.

If there are more than one targets exported in sysfs then the iscsi tools will try to log into them all. Some iBFT/FW implementations only export the specific target they used though. For example, you can define 2 targets, but one is only used by the iBFT initiator for failover, and the backup one is sometimes not exported.


2. The iscsistart utility starts up sessions with iface_name like
    <transport>.<MAC> (be2iscsi.aa:bb:cc:dd:ee:ff in my case), but iscsid

Are you using iscsi_tcp and ibft or be2iscsi or both? iscsi_tcp is for software iscsi and you would normally boot from that driver with iBFT. Your example above has be2iscsi which is the emulex/advogato offload driver and that does not use ibft.

    uses iface_names like <transport>.<MAC>.ipv4.1.  This leads to 6
    sessions instead of 4, because iscsid does not take over the two
    created by iscsistart, since the interface names are different.  It's
    possible to define ifaces with the simple names and override the
    interface names used by iscsid, but that's a hassle and the qualified
    interface names appear nevertheless.  Is there an elegant way to get
    both utilities use the same names?  Looks like ac38eee2 introduced
    this discrepancy.

Yeah, sorry that is a bug in the code. Thanks for debugging.

Do you have records setup for the boot targets (did you run the iscsiadm discovery command to the boot targets and so in /etc/iscsi/targets you have info for them)? If you run

iscsiadm -m node -P 1

from the booted buggy system what do you see?

When the system is booted in the buggy state could you also run:

iscsiadm -m session -P 1

and send the output?

--
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 http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to