Re: iSCSI does not create device in /dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Christophe,

Thanks for your answer.


> Also be sure to correctly configure the ACLs for your iSCSI target. You
> have two options :
>
> 1/ Explicitly set the list of initiators that can login to the target.
>    To do that, you create a ACL under the target with `targetcli`. This
>    is what you did with ACL "iqn.2015-06.com.foobar:www.test.com". The
>    ACL should match the content of /etc/iscsi/initiatorname.iscsi on
>    the initiator machine.


The file /etc/iscsi/initiatorname.iscsi on my server machine 10.0.0.60
is as follows:

InitiatorName=iqn.1994-05.com.redhat:168be03a7484


Therefore I issued the following commands on targetcli:

/iscsi/iqn.20...t01/tpg1/acls> create iqn.1994-05.com.redhat:168be03a7484
Created Node ACL for iqn.1994-05.com.redhat:168be03a7484
Created mapped LUN 0.
/iscsi/iqn.20...t01/tpg1/acls> cd iqn.1994-05.com.redhat:168be03a7484/
/iscsi/iqn.20...:168be03a7484> set auth userid=foo
Parameter userid is now 'foo'.
/iscsi/iqn.20...:168be03a7484> set auth password=bar
Parameter password is now 'bar'.
/iscsi/iqn.20...:168be03a7484> exit


However, I still have an authentication error when I try to connect
via iscsiadm:

iscsiadm -m node --targetname "iqn.2015-06.com.foobar:target01"
--portal "10.0.0.60:3260" --login

Logging in to [iface: default, target:
iqn.2015-06.com.foobar:target01, portal: 10.0.0.60,3260] (multiple)
iscsiadm: Could not login to [iface: default, target:
iqn.2015-06.com.foobar:target01, portal: 10.0.0.60,3260].
iscsiadm: initiator reported error (24 - iSCSI login failed due to
authorization failure)
iscsiadm: Could not log into all portals


Any idea on how to proceed?

Here's the guides I have been following:
http://www.server-world.info/en/note?os=CentOS_7&p=iscsi
http://linux-iscsi.org/wiki/Targetcli
http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-iscsi-howto.html
but they are very fragmentary and incomplete.  For instance, there's
no mention of the fact that the ACL has to match
/etc/iscsi/initiatorname.iscsi.  I am very disappointed to find that
there's a general lack of documentation for iSCSI.  If you could point
me to some decent docs, I will be very grateful.

Thanks again,


Dan
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux