This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Target name enumeration bug ?

iSCSI over TCP/IP.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
dannyboy1121
NewUser
NewUser
Posts: 10
Joined: 26 Feb 2014 21:31
Status: Offline

Target name enumeration bug ?

Post by dannyboy1121 »

9.2.0.1 - Shigawire (revision 943)

1 - Set up a volume based lun and and associated target named LUN1
2 - Using iscsiadm from linux host, run discovery against N4F box - LUN1 displayed
3 - Repeat the process and call the target name anything alphabetically / numerically preceding the original target name (e.g. AAA ---> LUN0)
4 - Using iscsiadm tools from linux host, run a discovery against the N4F box - targets all returned as LUN1 (i.e. now 2 x iSCSI LUNs - both LUN1 .. NOT LUN1 and AAA).
5 - Change the target name on N4F box for second LUN to anything after LUN1 (i.e. LUN2 ----> ZZZ) and apply
6 - On linux host, run discovery again. Now LUNs are properly enumerated with their correct names.

Is this a known bug? I can't be the first to find this.

User avatar
apollo567
Site Admin
Site Admin
Posts: 675
Joined: 23 Jun 2012 06:37
Location: Ludwigshafen, Germany
Status: Offline

Re: Target name enumeration bug ?

Post by apollo567 »

Did you test it with the latest version of N4F ?
my NAS and its development until today: viewtopic.php?f=63&t=39&sid=039fed830cf ... 4d0abe4a04

dannyboy1121
NewUser
NewUser
Posts: 10
Joined: 26 Feb 2014 21:31
Status: Offline

Re: Target name enumeration bug ?

Post by dannyboy1121 »

Not yet. I'll upgrade and test this weekend.

DataX
NewUser
NewUser
Posts: 6
Joined: 26 Dec 2014 05:13
Status: Offline

Re: Target name enumeration bug ?

Post by DataX »

I'm also seeing this issue with the latest N4F, 9.3.0.2 rev1213.

Not sure if this is a N4F issue or something specific to istgt, however if an additional target is alphabetically listed before the first target created, the iSCSI command returned gives both targets the same name.

I verified this with WireShark. The first target I created was named 'esx01' and in both cases the SendTargets=All command is sent. When the 2nd target is named 'esx02', the iSCSI response is as expected and both targets are listed. When I change the target name to 'esx00' (or anything that would be listed before 'esx01'), the iSCSI response still responds with two targets, but lists them both as 'esx01'.
You do not have the required permissions to view the files attached to this post.

DataX
NewUser
NewUser
Posts: 6
Joined: 26 Dec 2014 05:13
Status: Offline

Re: Target name enumeration bug ?

Post by DataX »

So after hours of searching, troubleshooting and finally deciding to post, I find a solution 5 minutes later. Figures.

viewtopic.php?p=9892#p9892

I would absolutely agree with the poster and suggest the addition of a prompt to restart istgt after adding a new/non-alphabetical target.

Post Reply

Return to “iSCSI (Internet Small Computer Systems Interface)”