iSCSI on a ZyXEL NAS?

Marvell Kirkwood based
barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Nov 05, 2016 6:53 pm

Give me link to your package and config file you have used. I will try to experiment.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Nov 05, 2016 7:51 pm

I sent theese files via a pm.

Is it a kernel problem again?

Thanks again! :)
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Nov 05, 2016 10:08 pm

Don't know for now. Will see tomorrow.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Nov 05, 2016 10:26 pm

Okay, good night! :)
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sun Nov 06, 2016 10:51 am

According to https://wiki.gentoo.org/wiki/ISCSI/Initiator, you need to load iscsi_tcp module before starting iscsid.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sun Nov 06, 2016 12:53 pm

This option doesn't exist in the NSA320S's GPL source:

CONFIG_ISCSI_TCP

But, as I read at this wiki, the open-iscsi is only for initiators and I want to create a target server. So I have to compile the tgt I think...
Last edited by MrDini on Sun Nov 06, 2016 8:25 pm, edited 1 time in total.
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sun Nov 06, 2016 3:03 pm

MrDini wrote:This option doesn't exist in the NSA320S's GPL source:CONFIG_ISCSI_TCP
Of course it doesn't exists in config, because the parent option is not set. You need to enable with command:

Code: Select all

make menuconfig

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sun Nov 06, 2016 4:05 pm

And there is no way, to configure the iscsi server without kernel replacing... :( This is a bit strange, because I am not at home.. So I will freeze this project and resume, when I cane home and have some time.
Last edited by MrDini on Sun Nov 06, 2016 8:23 pm, edited 1 time in total.
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sun Nov 06, 2016 5:46 pm

MrDini wrote:And there is no way, to configure the iscsi server without kernel replaceing... :( .
I have no clue, about what you are talking now.
As I said, to run iscsid, all you need is to build scsi drivers and load iscsi_tcp.ko module first. Proof of concept:

Code: Select all

modprobe iscsi_tcp

Code: Select all

lsmod

Code: Select all

Module                  Size  Used by
iscsi_tcp              12936  0
libiscsi_tcp           16668  1 iscsi_tcp
libiscsi               38812  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    34960  2 libiscsi,iscsi_tcp

Code: Select all

iscsid -c /ffp/etc/iscsi/iscsid.conf -i /ffp/etc/iscsi/initiatorname.iscsi -f -d 99
iscsid: sysfs_init: sysfs_path='/sys'
iscsid: in ctldev_open
iscsid: created NETLINK_ISCSI socket...
iscsid: InitiatorName=iqn.2005-03.org.open-iscsi:936f7ffca7af
iscsid: InitiatorName=iqn.2005-03.org.open-iscsi:936f7ffca7af
iscsid: InitiatorAlias=NSA310
iscsid: Max file limits 1024 1024
iscsid: current time 375188
iscsid: nothing on pend_list, deactivating alarm
iscsid: reaped pid 22481, reap_count now 0
iscsid: current time 375189
iscsid: nothing on pend_list, deactivating alarm
^Ciscsid: pid 22480 caught signal 2
iscsid: pid 22480 caught signal 15
iscsid: iscsid shutting down.
BTW. It seems you left adaptation to /ffp prefix to the end of the worklist.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sun Nov 06, 2016 8:30 pm

If the iscsi is disabled on kernel side, if I build the module manually, it will work in this case?

2. That's okay, but I haven't got the module itself... How did You compiled theese modules? Are You used a kernel embedded modules, or compiled the linux-iscsi with the kernel source?

3. Yes, I Cannot edit the pathes to ffp at the binaries, because it just have a makefile and a lot of wrong pathes. :x

BTW: I corrected my previous posts, because theese contained a lot of mistypeing... :roll:

Off: why I Cannot remove the uvcvideo driver using rmmod -f uvcvideo if the camera detached and nothing uses the module?
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sun Nov 06, 2016 8:55 pm

1. Don't know for sure. Should work I think.

Code: Select all

KERNEL Enabling the iSCSI driver: CONFIG_INET=y, CONFIG_BLK_DEV_SD=y, CONFIG_SCSI_LOWLEVEL=y, CONFIG_ISCSI_TCP=M and CONFIG_SCSI_ISCSI_ATTRS=M
[*] Networking support  --->
   Networking options  --->
      [M] TCP/IP networking 

Device Drivers  --->
  SCSI device support  --->
     <*> SCSI disk support
     [*] SCSI low-level drivers  --->
       <M> iSCSI Initiator over TCP/IP
         SCSI Transports --->
       {M} iSCSI Transport Attributes
In mine case, everything was enabled except iSCSI Initiator over TCP/IP and iSCSI Transport Attributes. Enabling iSCSI Initiator over TCP/IP build as module automatically enabled iSCSI Transport Attributes.

2. I used NSA310 Zyxel GPL source.

3. Buggy uvcvideo driver. Try:

Code: Select all

modprobe -rf
but I doubt if that will help.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sun Nov 06, 2016 9:02 pm

As far, as I remeber, in my config, the whole scsi disabled by default... :x
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sun Nov 06, 2016 9:18 pm

So what? Enable as in diagram above and build modules. If you want to quick test, I have uploaded scsi-modules-2.6.31.8-arm-1.txz to slacker repo.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sun Nov 06, 2016 9:41 pm

Okay, will try it, but as I said, I am not at home and my VPN connection is So slow for compiling. And the kernel not compiles directly on my nas, only on my ubuntu desktops Can build it...

BTW: Your package with the modules works really cool! :) Wow, how Can i thank it for You?

There is just one headache remained, and this is the path correction of the whole open-iscsi, but I also wrote this thing to my to-do list, So I will do sg with the source tomorrow!
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sun Nov 06, 2016 9:46 pm

And just for interest:

Code: Select all

root@NSA320S:~# rmmod -f iscsi_tcp
rmmod: ERROR: could not remove module iscsi_tcp: Device or resource busy
root@NSA320S:~# modprobe -r iscsi_tcp
root@NSA320S:~# lsmod
Module                  Size  Used by
iscsi_tcp              12936  0
libiscsi_tcp           16668  1 iscsi_tcp
libiscsi               38812  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    34960  2 libiscsi,iscsi_tcp
snd_usb_audio          62920  0
snd_hwdep               6860  1 snd_usb_audio
snd_usb_lib            15844  1 snd_usb_audio
snd_rawmidi            18816  1 snd_usb_lib
snd_seq_device          5824  1 snd_rawmidi
snd_pcm                62448  1 snd_usb_audio
snd_page_alloc          7040  1 snd_pcm
snd_timer              18436  1 snd_pcm
snd                    42160  6 snd_timer,snd_pcm,snd_seq_device,snd_rawmidi,snd_hwdep,snd_usb_audio
soundcore               5052  1 snd
bsd_comp                5916  0
pppoe                  11604  0
pppox                   2812  1 pppoe
ppp_deflate             5112  0
ppp_async               8908  0
ppp_synctty             7452  0
ecb                     2868  0
ppp_mppe                6904  0
ppp_generic            24148  7 ppp_mppe,ppp_synctty,ppp_async,ppp_deflate,pppox,pppoe,bsd_comp
slhc                    5656  1 ppp_generic
tntfs                 394012  0
ntfs                   97812  0
But the iscsid didn't started, and I have Your latest kmod package installed.
Thanks nas-central the lot of help! :)

Post Reply