#StackBounty: #backup #iscsi #synology-diskstation How to connect to iscsi target with iscsiadm from Synology through SSH

Bounty: 150

Since we want to back up our Synology NAS internally with a rotation system, I’m trying to connect to an iscsi target on my tandberg/overland Quickstation 4 from my Synology NAS (SA3400). I’ve tried using iscsiadm from the command line through SSH since i cannot find a GUI solution for this, but haven’t had any luck so far.

When I try to discover using the following command:

sudo iscsiadm -m discovery --type sendtargets --portal

I get the following output:

iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Cannot perform discovery. Initiatorname required.
iscsiadm: Discovery process to failed to create a discovery session.
iscsiadm: Could not perform SendTargets discovery.


I got feedback from synology support; they apologize any inconvenience caused and doesn’t want to provide any documentation for their system other than what they have on their website. No help from them.

I managed to discover the target (I had to run iscsid as sudo su), but I’m stuck because I cannot find a way to get the iscsi_tcp driver to start.
depmod -a doesn’t work, and modprobe iscsi_tcp doesn’t do anything as far as I can see, lsmod | grep iscsi returns iscsi_target_mod and iscsi_core_mod only.

Basically, modprobe seems to be totally stripped of functionality on the Synology.

When I try to load the modules with insmod:
insmod /usr/lib/modules/iscsi_tcp.ko I get the following error:
insmod: ERROR: could not insert module /usr/lib/modules/libiscsi_tcp.ko: Unknown symbol in module

When I try to log in to the target, I get the following:

Logging in to [iface: default, target: iqn.SomeTargetName, portal:,3260]
iscsiadm: Could not login to [iface: default, target: iqn.SomeTargetName, portal:,3260]:
iscsiadm: initiator reported error (12 - iSCSI driver not found. Please make sure it is loaded, and retry the operation)

I’m soon giving up on trying, it is a shame that Synology is unwilling to support such a basic need as this.

So my question now is:

Is there a solution out there, where I can connect to a target from Synology (most likely through the CLI) and make it persistently logged in and mounted in DSM, even after updates and restarts?

Note: the IP is obfuscated.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.