>On 11/13/2013 01:12 AM, majianpeng wrote: >> Hi all: >> >> Os: ubuntu 13.10 >> iscsiadm version 2.0-873 >> >> When login a target, the error message are: >> Logging in to [iface: default, target: kedacom.com, portal: >> 172.16.123.64,3260] (multiple) >> iscsiadm: Could not login to [iface: default, target: kedacom.com, portal: >> 172.16.123.64,3260]. >> iscsiadm: initiator reported error (24 - iSCSI login failed due to >> authorization failure) >> >> I reviewed the code found the iscsi name from iscsi-name or iscsiadm is >> different. >> >> iscsi-name don't check /etc/iscsi/initiatorname.iscsi. >> But iscsid get iscsi-name from initiatorname.iscsi. >> So if we use name by iscsi-name and then use iscsiadm to login, it will fail. >> >> Target will print those message: >> [ 1615.908301] iSCSI Initiator Node: iqn.1993-08.org.debian:01:6b36811dac8a >> is not authorized to access iSCSI target portal group: 1. >> [ 1615.908376] iSCSI Login negotiation failed. >> >> So i think iscsi-name firtly check /etc/iscsi/initiatorname.iscsi. If this >> file have valid iscsiname,it print this. >> > >iscsi-iname is only used to create a name to put in >/etc/iscsi/initiatorname.iscsi if the distro or user wanted runs it >because they do not have their own naming scheme. So for example I think >fedora/RHEL when you first install/run iscsi will run iscsi-iname and >take the name it prints and put it in /etc/iscsi/initiatorname.iscsi.
Ok, but from the name of iscsi-iname, i think this command tell the iscsi name of this machine. But it not. Maybe we change the name of iscsi-iname. Jianpeng Ma Thanks! -- 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/groups/opt_out.