Dual LUN presentation on double TPG

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

 



On my Target box, i've configured 2 TPG's, one with authentication and
several lun's with the address 0.0.0.0:3260. This all works fine.

To accomodate a different use case, i've added a secondary tpg without
authentication. I've mapped a single LUN and set it to listen on
0.0.0.3261.

Now, if i login from a client the client gets two portals:

iscsiadm -m discovery -t st -p <ip>:3261
gives me:

===
<ip>:3261,1 <iqn>:<serial>
<ip>:3261,2 <iqn>:<serial>
===

At first, this didn't bother me, this might be because LIO presents
both portals on all ports but refuses the login.

But it gets weirder, if i tell iscsiadm to login, it can login to
both, and gets a lun from both:

===
iscsiadm -m node -p <ip>:3261 -l

Logging in to: [iface: default, target: iqn, portal: <ip>,3261] (multiple)
Logging in to: [iface: default, target: iqn, portal: <ip>,3261] (multiple)
Login to [iface: default, target: <iqn>, portal: <ip>,3261] successful.
Login to [iface: default, target: <iqn>, portal: <ip>,3261] successful.
===
(notice 2 of the same portal ports and iqn's...)

After this lsblk gives me two disk devices.

Is this expected behaviour in my current setup? I tried adding a
second iqn, but that gave me all kinds of weird errors...

Thanks in advance!

- Thijs
--
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