All the iSCSI solutions for Raspbian
Posted: Thu Oct 31, 2019 3:42 pm
Hello
I'm running a Pi4 and wanted to mount an iSCSI share to it from a FreeNAS server. Problem is, no discovery produces any results from iSCSI shares that clearly are there and work with other systems and solutions.
So I figured out that I should study the issue by setting up my Pi3 as an iSCSI server. Problem is, there seems to be two solutions to do that. One is tgt, another is iscsitarget.
With the latter one, the kernel modules fail to compile:
I've been unable to figure out if I really have two kernels installed or just one. What is the difference between 4.19.66+ and 4.19.66-v7+, or are they somehow versions of the same? Their headers are from the same package. And in /boot there's kernel.img and kernel7.img, both about 5 MB in size. uname -r gives 4.19.66-v7+.
I will try tgt next.
I'm running a Pi4 and wanted to mount an iSCSI share to it from a FreeNAS server. Problem is, no discovery produces any results from iSCSI shares that clearly are there and work with other systems and solutions.
So I figured out that I should study the issue by setting up my Pi3 as an iSCSI server. Problem is, there seems to be two solutions to do that. One is tgt, another is iscsitarget.
With the latter one, the kernel modules fail to compile:
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 71.0 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://raspbian.mirror.constant.com/raspbian stretch/main armhf iscsitarget-dkms all 1.4.20.3+svn502-2 [71.0 kB]
Fetched 71.0 kB in 0s (76.9 kB/s)
(Reading database ... 88326 files and directories currently installed.)
Preparing to unpack .../iscsitarget-dkms_1.4.20.3+svn502-2_all.deb ...
------------------------------
Deleting module version: 1.4.20.3+svn502
completely from the DKMS tree.
------------------------------
Done.
Unpacking iscsitarget-dkms (1.4.20.3+svn502-2) over (1.4.20.3+svn502-2) ...
Setting up iscsitarget-dkms (1.4.20.3+svn502-2) ...
Creating symlink /var/lib/dkms/iscsitarget/1.4.20.3+svn502/source ->
/usr/src/iscsitarget-1.4.20.3+svn502
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.19.66-v7+ -C /lib/modules/4.19.66-v7+/build M=/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.66-v7+ (armv7l)
Consult /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/make.log for more information.
Removing old iscsitarget-1.4.20.3+svn502 DKMS files...
------------------------------
Deleting module version: 1.4.20.3+svn502
completely from the DKMS tree.
------------------------------
Done.
Loading new iscsitarget-1.4.20.3+svn502 DKMS files...
It is likely that 4.19.66-v7+ belongs to a chroot's host
Building for 4.19.66+ and 4.19.66-v7+
Building initial module for 4.19.66+
Error! Bad return status for module build on kernel: 4.19.66+ (armv7l)
Consult /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/make.log for more information.
I will try tgt next.