On 04/25/2012 08:39 PM, Lee Duncan wrote:
> Hi:
>
> I am trying to better understand iSCSI boot. Towards that end, I'm trying to understand how, during iSCSI boot, the system gets the interface attributes.
>
> In my case, I am using a QLogic 8262 CNA card in my server. When the system comes up, I run "iscsiadm -m fw", and I get "iscsiadm: Could not get list of targets from firmware. (err 21)".
>
> I'm running on SLES 11 SP2, with a 3.1.0-1.2 kernel. Iscsiadm says the version is 2.0-872.suse.
>
I am not sure what is in SLES kernels. The qla drivers you are using
might not support iscsi_boot_sysfs (this displays boot info in a
iscsi_boot dir in /sys/firmware). If it does then I think it would
normally have it listed in lsmod as one of the modules using it.
If you do
modinfo qla4xxx
does your qla4xxx driver have a "ql4xdisablesysfsboot" modparam? If not
then iscsi boot using iscsiadm is not supported. If you do have that
param then you need it to be 1.
> An "ls mod | fgrep iscsi" return:
>
> iscsi_boot_sysfs 16000 0
> iscsi_tcp 18534 1
> libiscsi_tcp 29211 1 iscsi_tcp
> libiscsi 57546 2 iscsi_tcp,libiscsi_tcp
> scsi_transport_iscsi 50417 4 qla4xxx,iscsi_tcp,libiscsi
> iscsi_trgt 117284 5
>
> My adapter is not yet connected to any target -- it doesn't even have a Phy installed yet. But I thought I should still see interface attributes, such as iface.initiatorname.
I think you need to have the boot targets configured.
qla4xxx_get_boot_info looks like it only exports boot info if that is done.
Info like the intiatorname that the card is setup with would be
displayed in a command like "iscsiadm -m host P 1". that command is more
generic.