rufus Posted March 31, 2016 Posted March 31, 2016 Hello, I'm using the armbian trusty image with legacy kernel and try to setup an iscsi target server with it. Actually I tried to build my own kernel with the instruction list and the tools of armbian and activated the iscsi target in the kernel configure. In compile.sh I set kernel configure to yes and then I start compiling. Maybe you can tell me how to do it in the right way? Thanks and greetings
zador.blood.stained Posted March 31, 2016 Posted March 31, 2016 iSCSI target support will be included in next sun7i legacy kernel release. Meanwhile are there issues with kernel build process or with freshly built kernel?
rufus Posted April 1, 2016 Author Posted April 1, 2016 Cool - I will be very happy if you include it in the next release. No there is no error message while compiling or booting. The default Kernel and the own compiled Kernel run without any problems May be I have to edit this file lib/config/linux-sunxi7-default.config and add something like CONFIG_ISCSI_TRGT=m ??? Thanks for your fast reply
zador.blood.stained Posted April 2, 2016 Posted April 2, 2016 My changes were merged to main branch recently, so now you should be able to just build the kernel without touching default configuration.
rufus Posted April 3, 2016 Author Posted April 3, 2016 Hey thanks for this fast reaction. Seem to me, that there are some errors in the headers file of the Kernel. When you install the iscsitarget and iscsitarget-dkms you get the errors wihch are contained in the make.txt I'm very sorry that I can't fix the fault by my self and would like to donate your work. Can I donate you over this arbian project or do you have another account for that? Thanks very much make.txt
zador.blood.stained Posted April 3, 2016 Posted April 3, 2016 Hm. What are you trying to compile and why? Now iSCSI target modules should be present in kernel compiled with Armbian build script. Please read documentation about compiling kernel by yourself... or you can try installing this precompiled kernel (please make backups before): https://www.dropbox.com/sh/vicmqsbqnj9tkio/AACrOdK_Vu3dHAQIqiNYIkW-a?dl=0 I'm very sorry that I can't fix the fault by my self and would like to donate your work. Can I donate you over this arbian project or do you have another account for that? If you want to donate/contribute, just use link on armbian.com
rufus Posted April 4, 2016 Author Posted April 4, 2016 Hm - with your precompiled and my self compiled kernel still the same error. I tried now with fresh trusty and deb jessie. I installed the packages with dpkg -i linux-* - thats correct right? Reboot the system and still get the error Why I was using the dkms package - was just because I still getting the error "module iscsi_trgt not found" and tried to compile the kernel with that again. By compiling my own kernel I caught an error with the new DVBT Card, so I excluded that driver - because I don't need it. Please tell me what I did wrong?
zador.blood.stained Posted April 4, 2016 Posted April 4, 2016 Please tell me what I did wrong? Did you try modprobe iscsi_target_mod This module should be located in /lib/modules/3.4.111-sun7i/kernel/drivers/target/iscsi
rufus Posted April 5, 2016 Author Posted April 5, 2016 modprobe iscsi_target_mod is sucessfull - I can see the module when I use lsmod, but the iscsitarget cannot start because of the before mentioned error. Which iscsi server do you use, maybe they use different modules
zador.blood.stained Posted April 5, 2016 Posted April 5, 2016 iscsi_target_mod is controlled by "targetcli" utility from package with the same name. iscsitarget-dkms requires full kernel source tree for building (if I understand it correctly), which is not provided in Armbian images ATM. Edit: I checked compilation myself, looks like iscsitarget-dkms sources in trusty aren't compatible with this kernel version.
rufus Posted April 6, 2016 Author Posted April 6, 2016 I installed and tested targetcli Now I get these errors when I run the targetcli and try to create an iblock device: Unable to load target_core_iblockUnable to load target_core_fileUnable to load target_core_pscsiUnable to load target_core_stgt
zador.blood.stained Posted April 6, 2016 Posted April 6, 2016 I added missing modules to kernel config and tested targetcli command on Debian Wheezy - runs without any errors for me. I had to mount configfs by mount -t configfs configfs /sys/kernel/config but this may be wheezy specific I updated kernel packages here, please try installing new kernel.
rufus Posted April 6, 2016 Author Posted April 6, 2016 Hey, thank you very much - now it's working the mount configfs is nesesary for trusty too. Ok the throughput is just 20 MB/s with the onboard sata controller - I will further test that. Donation ist coming
zador.blood.stained Posted April 6, 2016 Posted April 6, 2016 the mount configfs is nesesary for trusty too. Then you can add a line in /etc/fstab configfs /sys/kernel/config configfs defaults 1 1 (from targetcli documentation) Ok the throughput is just 20 MB/s with the onboard sata controller - I will further test that. Raw CPU power is probably the main bottleneck, though you may want to check "top" output, especially 3rd line with CPU load details, and "htop" output to check if both CPU cores are loaded or only one. Edit: I'm assuming that by "throughput" you mean sequential read/write speed.
Recommended Posts