[Plugin] iSCSI Initiator


ich777

Recommended Posts

11 hours ago, watevriwanabi said:

Thanks

As far as I can tell you are connected to the Target:

Feb 17 16:37:30 Server kernel: scsi host8: iSCSI Initiator over TCP/IP
Feb 17 16:37:30 Server root: Logging in to [iface: default, target: iqn.2004-04.com.qnap:ts-433:iscsi.backup.634ac9, portal: 192.168.0.7,3260]
Feb 17 16:37:30 Server root: Login to [iface: default, target: iqn.2004-04.com.qnap:ts-433:iscsi.backup.634ac9, portal: 192.168.0.7,3260] successful.
Feb 17 16:37:30 Server  iscsid: Connection1:0 to [target: iqn.2004-04.com.qnap:ts-433:iscsi.backup.634ac9, portal: 192.168.0.7,3260] through [iface: default] is operational now

 

Are you sure that you've assigned a disk on the Target to the LUN and configured everything properly on the Target? At least the connection seems to be working fine.

 

However I would recommend that you install the plugin Unassigned Devices and check if you see the the disk afterwards there.

Link to comment
22 hours ago, ich777 said:

Are you sure that you've assigned a disk on the Target to the LUN and configured everything properly on the Target?

I'm not completely sure I have the target configured correctly, but I think I do. I attached of screenshot if that helps.

 

 

22 hours ago, ich777 said:

I would recommend that you install the plugin Unassigned Devices and check if you see the the disk afterwards there.

I installed the plugin, "No Unassigned Disks available"

iscsi.png

Link to comment
5 hours ago, watevriwanabi said:

I'm not completely sure I have the target configured correctly, but I think I do. I attached of screenshot if that helps.

I think there is something missing on your Target but I even don't know what software that is from where you posted a screenshot.

 

Are you sure that the Initiator name is in the ACL from the Target? From my perspective it can be only a little miss configuration since even the Target shows that your Initiator (Unraid) is connected.

Link to comment
  • 1 month later...
2 hours ago, syq7970 said:

Can I do some retry/reconnet config after ISCSI Server is down or reboot?

Currently not because that‘s not how iSCSI should be used but I will take a look at it and report back to implent a Reconnect button.

Please give me a few days.

  • Like 1
Link to comment
On 3/25/2023 at 3:32 PM, syq7970 said:

Can I do some retry/reconnet config after ISCSI Server is down or reboot?

Can you give me a bit more context on that? No matter what I try, even if my target is now offline for a day it still reconnects to it when it becomes available again.

Link to comment
On 3/28/2023 at 4:14 PM, ich777 said:

Can you give me a bit more context on that? No matter what I try, even if my target is now offline for a day it still reconnects to it when it becomes available again.

May be you can try use ISCSI plugin and ISCSI initiator plugin on the same unraid server.

Create a ISCSI target by ISCSI plugin, then use ISCSI initiator connect to localhost target, after this, reboot unraid server, ISCSI initiator always show "no active session" untill I recreate connection manually.

 

Link to comment
33 minutes ago, syq7970 said:

ISCSI initiator always show "no active session" untill I recreate connection manually.

Ah okay, now I get it, the issue is that the target is not available at boot.

I can maybe change the plugin with a extra setting to take that into account but this is very problematic and a niche use case.

 

Anyways I've updated the plugin and you have now a reconnect button.

  • Thanks 1
Link to comment
  • 4 months later...
  • 3 weeks later...

I was successfully using this in the past, few months ago I turned off my Unraid and now it doesnt want to reconnect the LUN. Though the iSCSI session seems to be active

 

 

image.thumb.png.efd02b915c865b66e401216a83519116.png

 

 

 

image.thumb.png.25d7c0e689f59b65287f414a553eb121.png

 

Also the target (QNAP) shows the initiator is connected:

 

image.thumb.png.8b4e3136e6ed73c1d8030675cb87b2f0.png

 

What could be the problem?

Link to comment
2 hours ago, rezo said:

I was successfully using this in the past, few months ago I turned off my Unraid and now it doesnt want to reconnect the LUN. Though the iSCSI session seems to be active

What did you do exactly? Did you upgrade to a newer Unraid version?

 

Do no devices appear in Unraid itself?

Link to comment

So I booted it up and it was not appearing then I did upgrade (both Unraid and the plug-in) in hope that it will resolve the problem. But at the end it didn’t, the LUN doesn’t appear under array at all. The weird thing is that I cannot even see the block device in dmesg

Link to comment
4 minutes ago, ich777 said:

What happens when you select your target and click reconnect?

Nothing 

image.thumb.png.35636cf652da81439518b2575fac6d7e.png

 

 

 

 

root@rezo-unraid:~# dmesg
....
[   74.947923] NFSD: Using UMH upcall client tracking operations.
[   74.947927] NFSD: starting 90-second grace period (net f0000000)
[  128.354302] scsi host13: iSCSI Initiator over TCP/IP
root@rezo-unraid:~#

Link to comment

@rezo I've now tried it and I can see the block device on the Initiator side:

grafik.thumb.png.5fcced22beee998e026ca9353dc7ad0c.png

 

I'm also on rc18 to compare apples to apples (also the Initiator side):
grafik.thumb.png.73932135f43c787fe35b6395b11f4590.png

 

 

And this is on the Target side:
grafik.thumb.png.c5bb2a68658e45fbc94f4e3867339ca6.png

 

 

There must have changes something on the QNAP side, maybe try to recreate the Target and also everything on the Initiator side.

Link to comment

Indeed, I created a brand new LUN and Im able to attach.... Shit, I need to do a recovery somehow, crappy QNAP

 

3 hours ago, ich777 said:

 

@rezo I've now tried it and I can see the block device on the Initiator side:

grafik.thumb.png.5fcced22beee998e026ca9353dc7ad0c.png

 

I'm also on rc18 to compare apples to apples (also the Initiator side):
grafik.thumb.png.73932135f43c787fe35b6395b11f4590.png

 

 

And this is on the Target side:
grafik.thumb.png.c5bb2a68658e45fbc94f4e3867339ca6.png

 

 

There must have changes something on the QNAP side, maybe try to recreate the Target and also

everything on the Initiator side.

 

 

  • Like 1
Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.