Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugins] iSCSI GUI and ISCSI Target

Featured Replies

thanks for the quick response

here is the status page. i have tried several variants in the meantime. i also had other error messages which always had to do with the password.

 

--------- STATUS----------

 

Active Sessions

alias: sid: 1 type: Normal session-state: LOGGED_IN

name: iqn.1991-05.com.microsoft:desktop-2fnbkjs (NOT AUTHENTICATED)

mapped-lun: 0 backstore: fileio/file1 mode: rw

address: 192.168.111.109 (TCP) cid: 1 connection-state: LOGGED_IN

 

Configuration

o- / ......................................................................................................................... [...]

o- backstores .............................................................................................................. [...]

| o- block .................................................................................................. [Storage Objects: 0]

| o- fileio ................................................................................................. [Storage Objects: 2]

| | o- file1 ......................................................... [/mnt/user/system/file1.img (25.0GiB) write-back activated]

| | | o- alua ................................................................................................... [ALUA Groups: 1]

| | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

| | o- file2 ......................................................... [/mnt/user/system/file2.img (30.0GiB) write-back activated]

| | o- alua ................................................................................................... [ALUA Groups: 1]

| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

| o- pscsi .................................................................................................. [Storage Objects: 0]

| o- ramdisk ................................................................................................ [Storage Objects: 0]

o- iscsi ............................................................................................................ [Targets: 3]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.6a5ba487bcda ........................................................... [TPGs: 1]

| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| | o- acls .......................................................................................................... [ACLs: 0]

| | o- luns .......................................................................................................... [LUNs: 2]

| | | o- lun0 ................................................... [fileio/file1 (/mnt/user/system/file1.img) (default_tg_pt_gp)]

| | | o- lun1 ................................................... [fileio/file2 (/mnt/user/system/file2.img) (default_tg_pt_gp)]

| | o- portals .................................................................................................... [Portals: 1]

| | o- 0.0.0.0:3260 ..................................................................................................... [OK]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.9371c38fe3eb ........................................................... [TPGs: 1]

| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| | o- acls .......................................................................................................... [ACLs: 1]

| | | o- iqn.2005-12.com.bosch:unit00075fb6cfdd ............................................................... [Mapped LUNs: 1]

| | | o- mapped_lun1 ................................................................................ [lun0 fileio/file2 (rw)]

| | o- luns .......................................................................................................... [LUNs: 1]

| | | o- lun0 ................................................... [fileio/file2 (/mnt/user/system/file2.img) (default_tg_pt_gp)]

| | o- portals .................................................................................................... [Portals: 1]

| | o- 0.0.0.0:3260 ..................................................................................................... [OK]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.bf9ddc703278 ........................................................... [TPGs: 1]

| o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| o- acls .......................................................................................................... [ACLs: 1]

| | o- iqn.1991-05.com.microsoft:desktop-2fnbkjs ............................................................ [Mapped LUNs: 1]

| | o- mapped_lun0 ................................................................................ [lun0 fileio/file1 (rw)]

| o- luns .......................................................................................................... [LUNs: 1]

| | o- lun0 ................................................... [fileio/file1 (/mnt/user/system/file1.img) (default_tg_pt_gp)]

| o- portals .................................................................................................... [Portals: 1]

| o- 0.0.0.0:3260 ..................................................................................................... [OK]

o- loopback ......................................................................................................... [Targets: 0]

o- vhost ............................................................................................................ [Targets: 0]

o- xen-pvscsi ....................................................................................................... [Targets: 0]

 

Edited by gpetr

  • Replies 480
  • Views 119.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • @gingerdude & @dreadu & @isvein please update the plugin to version 2022.11.06 and the issue should be fixed.

  • I just wanted to say thank you for the plugin. For the first time yesterday I was able to boot from efi using ipxe and then network boot with iscsi as the disk. The plugin is going to make experimenti

  • I have added zfs support.   Example command if you want to create a block device to be used for iSCSI    zfs create -V 1G zfs/vol1  

Posted Images

  • Author
1 hour ago, gpetr said:

thanks for the quick response

here is the status page. i have tried several variants in the meantime. i also had other error messages which always had to do with the password.

 

--------- STATUS----------

 

Active Sessions

alias: sid: 1 type: Normal session-state: LOGGED_IN

name: iqn.1991-05.com.microsoft:desktop-2fnbkjs (NOT AUTHENTICATED)

mapped-lun: 0 backstore: fileio/file1 mode: rw

address: 192.168.111.109 (TCP) cid: 1 connection-state: LOGGED_IN

 

Configuration

o- / ......................................................................................................................... [...]

o- backstores .............................................................................................................. [...]

| o- block .................................................................................................. [Storage Objects: 0]

| o- fileio ................................................................................................. [Storage Objects: 2]

| | o- file1 ......................................................... [/mnt/user/system/file1.img (25.0GiB) write-back activated]

| | | o- alua ................................................................................................... [ALUA Groups: 1]

| | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

| | o- file2 ......................................................... [/mnt/user/system/file2.img (30.0GiB) write-back activated]

| | o- alua ................................................................................................... [ALUA Groups: 1]

| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

| o- pscsi .................................................................................................. [Storage Objects: 0]

| o- ramdisk ................................................................................................ [Storage Objects: 0]

o- iscsi ............................................................................................................ [Targets: 3]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.6a5ba487bcda ........................................................... [TPGs: 1]

| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| | o- acls .......................................................................................................... [ACLs: 0]

| | o- luns .......................................................................................................... [LUNs: 2]

| | | o- lun0 ................................................... [fileio/file1 (/mnt/user/system/file1.img) (default_tg_pt_gp)]

| | | o- lun1 ................................................... [fileio/file2 (/mnt/user/system/file2.img) (default_tg_pt_gp)]

| | o- portals .................................................................................................... [Portals: 1]

| | o- 0.0.0.0:3260 ..................................................................................................... [OK]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.9371c38fe3eb ........................................................... [TPGs: 1]

| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| | o- acls .......................................................................................................... [ACLs: 1]

| | | o- iqn.2005-12.com.bosch:unit00075fb6cfdd ............................................................... [Mapped LUNs: 1]

| | | o- mapped_lun1 ................................................................................ [lun0 fileio/file2 (rw)]

| | o- luns .......................................................................................................... [LUNs: 1]

| | | o- lun0 ................................................... [fileio/file2 (/mnt/user/system/file2.img) (default_tg_pt_gp)]

| | o- portals .................................................................................................... [Portals: 1]

| | o- 0.0.0.0:3260 ..................................................................................................... [OK]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.bf9ddc703278 ........................................................... [TPGs: 1]

| o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| o- acls .......................................................................................................... [ACLs: 1]

| | o- iqn.1991-05.com.microsoft:desktop-2fnbkjs ............................................................ [Mapped LUNs: 1]

| | o- mapped_lun0 ................................................................................ [lun0 fileio/file1 (rw)]

| o- luns .......................................................................................................... [LUNs: 1]

| | o- lun0 ................................................... [fileio/file1 (/mnt/user/system/file1.img) (default_tg_pt_gp)]

| o- portals .................................................................................................... [Portals: 1]

| o- 0.0.0.0:3260 ..................................................................................................... [OK]

o- loopback ......................................................................................................... [Targets: 0]

o- vhost ............................................................................................................ [Targets: 0]

o- xen-pvscsi ....................................................................................................... [Targets: 0]

 

You need to add this as a this iqn.2005-12.com.bosch:unit00075fb6cfdd

 

In this section.

 

image.png

as the initiator name and then create a lun mapping for it to the storage.

thank you, it works now.

i had not followed the order of the steps ... that was the problem

one more question about this log message:

 

Dec 21 16:44:40 S2023 kernel: Did not receive response to NOPIN on CID: 1, failing connection for I_T Nexus iqn.2005-12.com.bosch:unit00075fb6cfdd,i,0x00075f030502,iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.28ca126f2942,t,0x01
Dec 21 16:44:41 S2023 kernel: Unable to locate key "X-com.bosch.BVIPInitiatorType".
Dec 21 16:44:41 S2023 kernel: ISCSI_FLAG_CMD_READ or ISCSI_FLAG_CMD_WRITE set when Expected Data Transfer Length is 0 for CDB: 0x00, Fixing up flags


Dec 21 16:47:29 S2023 kernel: Did not receive response to NOPIN on CID: 1, failing connection for I_T Nexus iqn.2005-12.com.bosch:unit00075fb6cfdd,i,0x00075f030501,iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.28ca126f2942,t,0x01
Dec 21 16:47:31 S2023 kernel: Unable to locate key "X-com.bosch.BVIPInitiatorType".
Dec 21 16:47:31 S2023 kernel: ISCSI_FLAG_CMD_READ or ISCSI_FLAG_CMD_WRITE set when Expected Data Transfer Length is 0 for CDB: 0x00, Fixing up flags


Dec 21 17:31:48 S2023 kernel: Did not receive response to NOPIN on CID: 1, failing connection for I_T Nexus iqn.2005-12.com.bosch:unit00075fb6cfdd,i,0x00075f030502,iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.28ca126f2942,t,0x01
Dec 21 17:31:49 S2023 kernel: Unable to locate key "X-com.bosch.BVIPInitiatorType".
Dec 21 17:31:49 S2023 kernel: ISCSI_FLAG_CMD_READ or ISCSI_FLAG_CMD_WRITE set when Expected Data Transfer Length is 0 for CDB: 0x00, Fixing up flags


can i ignore it ? or is there something wrong?

39 minutes ago, gpetr said:

can i ignore it ? or is there something wrong?

What Initiator are you using exactly and how is it configured?

This should not harm anything since it says:

40 minutes ago, gpetr said:

Fixing up flags

 

this is the satus:

 

------------------------------------------------------------------------------------------------------------------------------

 

 

Active Sessions

alias: sid: 125 type: Normal session-state: LOGGED_IN

name: iqn.2005-12.com.bosch:unit00075fb6cfdd (NOT AUTHENTICATED)

mapped-lun: 0 backstore: fileio/file20 mode: rw

address: 192.168.111.92 (TCP) cid: 1 connection-state: LOGGED_IN

 

Configuration

o- / ......................................................................................................................... [...]

o- backstores .............................................................................................................. [...]

| o- block .................................................................................................. [Storage Objects: 0]

| o- fileio ................................................................................................. [Storage Objects: 2]

| | o- file20 ............................................................... [/mnt/user/file20.img (4.0GiB) write-back activated]

| | | o- alua ................................................................................................... [ALUA Groups: 1]

| | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

| | o- file30 ............................................................. [/mnt/user/file30.img (1.0GiB) write-back deactivated]

| | o- alua ................................................................................................... [ALUA Groups: 1]

| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]

| o- pscsi .................................................................................................. [Storage Objects: 0]

| o- ramdisk ................................................................................................ [Storage Objects: 0]

o- iscsi ............................................................................................................ [Targets: 1]

| o- iqn.2003-01.org.linux-iscsi.s2023.x8664:sn.28ca126f2942 ........................................................... [TPGs: 1]

| o- tpg1 ............................................................................................... [no-gen-acls, no-auth]

| o- acls .......................................................................................................... [ACLs: 1]

| | o- iqn.2005-12.com.bosch:unit00075fb6cfdd ............................................................... [Mapped LUNs: 1]

| | o- mapped_lun0 ............................................................................... [lun0 fileio/file20 (rw)]

| o- luns .......................................................................................................... [LUNs: 1]

| | o- lun0 ........................................................ [fileio/file20 (/mnt/user/file20.img) (default_tg_pt_gp)]

| o- portals .................................................................................................... [Portals: 1]

| o- 0.0.0.0:3260 ..................................................................................................... [OK]

o- loopback ......................................................................................................... [Targets: 0]

o- vhost ............................................................................................................ [Targets: 0]

o- xen-pvscsi ....................................................................................................... [Targets: 0]

5 hours ago, gpetr said:

iqn.2005-12.com.bosch:unit00075fb6cfdd (NOT AUTHENTICATED)

What kind of machine is this Initiator?

It seems that it sends requests that the Target can't handle and that's why you see those messages.

 

Maybe these are proprietary requests that this BOSCH machine is using, maybe try to look on the Initiator side and see if you can deactivate them.

is a video surveillance camera without setting option at the initiator

On 12/22/2023 at 11:09 PM, gpetr said:

is a video surveillance camera without setting option at the initiator

I really can't help there since this seems like something proprietary what a "nomral" Target can't understand, if everything is working you have to ignore this message.

Thank you 

Hello :)
 

The way I have it now is a single 8TB drive using Unassigned Drives plugin and using it with the iscsi plugin as an block device over dedicated 2.5gig nic to my w10 desktop. This is working just as expected and full speed.


Then I have tried an fileio (diskimage) on my 2*500GB sata ssd zfs-mirror pool, same connection, here I get max 54MB write and 250-300 read


Also tried an fileio on an zfs drive in the array, same connection, here I get 6MB write and 2-300MB read.

In both cases, if I transfer smaller files, they gets copied instant, I think this is the files may first just get dumped into ram.


The way slower for the array drive makes sense as its part of the unraid array and so parity is written at the same time too, but what else this is telling me as the write speeds are way slower than expected in both cases is that iscsi fileio has a massive overhead.


Does this seems correct or may it be something missing on my side?

31 minutes ago, isvein said:

Then I have tried an fileio (diskimage) on my 2*500GB sata ssd zfs-mirror pool, same connection, here I get max 54MB write and 250-300 read

This is expected and was discussed multiple times in this thread.

 

32 minutes ago, isvein said:

Also tried an fileio on an zfs drive in the array, same connection, here I get 6MB write and 2-300MB read.

For ZFS it would be better to create a subvolume share that subvolume on the pool and then format it correctly on the initiator side.

 

34 minutes ago, isvein said:

fileio has a massive overhead.

Exactly.

6 hours ago, ich777 said:

For ZFS it would be better to create a subvolume share that subvolume on the pool and then format it correctly on the initiator side.

 

Thank you!
Hmm that I'm not sure how to do.


Edit:
Found out how to make an zvol :)
Did the same test again, the zvol on the array works just as bad, it even crashed the iscsi as my w10 desktop suddenly reconnected, but Im pretty sure this is NOT the intended way to use an zvol so it makes sense.

The one on the ssd mirror on the other hand worked just fine!
Saturated the 2.5gig nic so this works just as I hoped for :D

Edited by isvein

  • 2 weeks later...
On 6/5/2023 at 5:36 PM, MrOz said:

Ok, I figured out what I needed to do to get that command to run. I was too tired to see it correctly. It does show "not supported"

 

What settings can I change to fix this?

Did you ever figure out how to get this working? Trying to do the same setup for a lab setup and coming across the same issue.

I spent some time getting this to work from a Unraid server to a Windows computer and thought I would type out some instructions even just for my own benefit when I go to do this again and forgot how it works. 

This is for using a File IO setup.

 

1. From the File IO tab

- Select the path for the share to store the image file

- type a name for the file

- select size - Example 2000g being 2TB

- Select Write back as True

 

2. On the initiators tab

- use the Create Target -> Leave the name blank and it will auto assign a name. I could never get it to work with my own name. -> hit add target

 

3. On windows computer open iSCSI Initiator

- On the Configuration tab -> copy the initiator Name -  Will be something like: iqn.1991-05.com.microsoft:*computername*

 

4. Back on unraid on the initiators tab

- for Create IQN, select the target created in setup 2.

- Enter the Initiator name copied from the windows computer

- select add IQN

 

5. Create LUN

- Choose the IQN created then select the fileIO created in step 1

- Select add LUN

 

6. Add Mapping

- Select the Target again, and the Initiator name of the Windows PC.

- For Lun Map number use "0" if there is only one Lun created, if you have more then one then use 1,2 etc.

- For Lun or Backstore name, it will be fileio;*fileioname*  -> for example mine was fileio;ISCSI-2

- I leave Write protect as false, just as default.

- Select add Map

 

*pro tip, when selecting some of these options if I double clicked the line it would bring up some of the available name options.  for example fileio;ISCSI-2 for the LUN name.

 

7. back on the windows computer

- On the target tab enter the IP as target and hit Quick connect.

* Note it will sometimes it will auto find the targets

- Select the name of the target from the list

- Click connect

- I leave the next window as default, and click okay.

 

8. Format the drive

- In disk Management, initialize the disk, create a volume and format the disk.

 

Feel free to add to this or change as needed.

 

 

 

2 hours ago, Asus750 said:

This is for using a File IO setup.

2 hours ago, Asus750 said:

Feel free to add to this or change as needed.

I would recommend using a whole block device, so to speak a whole disk instead of a image (FileIO) since write speeds will be much higher on a physical block device, this would be my only advice.

I'm getting relatively high disk response time / latency.

Using zvol method (not fileIO) on single zfs 16TB HDD over 1G ethernet.

The connection speed is around 100mb/s, which is expected, but when copying steam games from local drive shows high latency jumping between 200~2000ms and mostly stay around 1500-2000ms.

I don't know if this is normal and haven't tested SSD performance.

 

Update: Tried coping video file and latency rests at consistent 500ms, but can it be further reduced?

 

Snipaste_2024-01-13_02-32-11.png

Edited by nyavana
Info Update

  • 1 month later...

Hi

 

I am using unraid as a iSCSI target, it's all working well, but I get a lot of spam in syslog about a target that no longer exists

 

[Feb13 22:24] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000018] iSCSI Login negotiation failed.
[  +3.119366] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000036] iSCSI Login negotiation failed.
[  +3.120303] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000017] iSCSI Login negotiation failed.
[  +3.127358] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000015] iSCSI Login negotiation failed.
[  +3.126596] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000017] iSCSI Login negotiation failed.
[  +3.118739] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000017] iSCSI Login negotiation failed.
[  +3.120283] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000019] iSCSI Login negotiation failed.
[  +3.126219] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000017] iSCSI Login negotiation failed.
[  +3.122541] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000018] iSCSI Login negotiation failed.
[  +3.121738] Unable to locate Target IQN: iqn.2003-01.org.linux-iscsi.s4-unraid2.x8664:sn.dc57c3200b87 in Storage Node
[  +0.000018] iSCSI Login negotiation failed.

 

I just double checked the initiators and none are trying to connect to that, so IDK what's going on

3 hours ago, fr500 said:

I am using unraid as a iSCSI target, it's all working well, but I get a lot of spam in syslog about a target that no longer exists

Can you please post your Diagnostics?

This is the log from the Initiator as far as a can tell correct?

 

Could it be the case that your NIC is reconnecting at times? Please also check if you have a old config somewhere on your Initiator. Just to double check, the IQN matches the one on the Target correct?

Hey, thanks for your response

 

At the moment the client (initiator) is off, and I'm still getting the spam, so it can't be the initiator...

 

I'm getting these messages every minute. The initiator name in the message is the random initiator name that was created at some point when I was still figuring out how to make iscsi work.

 

 

 

 

s4-unraid-diagnostics-20240214-1007.zip

Derp... no nevermind, just remembered a few months ago I setup an ESXi box for iSCSI to test and it was trying to connect to this very server.

6 hours ago, fr500 said:

Derp... no nevermind, just remembered a few months ago I setup an ESXi box for iSCSI to test and it was trying to connect to this very server.

Glad that you've figured it out, I just remembered to go through your Diagnostics but seems not to be necessary anymore... :)

  • 2 weeks later...

Hello, 

I did everything as Asus750 wrote. Few times. 
 

The problem is that Windows recognizes the new disk, but it cannot be formatted. A message pops up:

 

The operation could not be completed because the Disk Management console view is out of date. Refresh the view using refresh. If the problem persists, restart the console. Disk Management or restart the computer.

 

Unraid logs: 

iSCSI Login negotiation failed.

Unable to locate Target IQN:

cmd exceeds last lba 1 (lba 0, sectors 16)

 

I have no idea what could be wrong. Can you help me? Diagnostics in attachment. 

sowia-diagnostics-20240229-1556.zip

20 minutes ago, Gobblerpl said:

iSCSI Login negotiation failed.

Seems like something is configured wrong, can you provide screenshots from Unraid and from Windows?

On 2/29/2024 at 4:18 PM, ich777 said:

Seems like something is configured wrong, can you provide screenshots from Unraid and from Windows?


Work now. I think fileIO size was too low. When I tried 1000G now everything works. 

Thank you :)
 

How does ISCSI perform in terms of data security? If one of the disks in Unraid fails, will I be able to rebuild and remount the ISCSI image?

Edited by Gobblerpl

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.