Hi,
Im trying to setup a iscsi server with AL but it have some issues with
install the kernel module:
storage:/etc# apk add iscsitarget-grsec
(1/4) Installing mkinitfs (2.0_rc7-r0)
(2/4) Installing linux-firmware (2.6.32.9-r3)
(3/4) Installing linux-grsec (2.6.32.9-r3)
ERROR: Failed to extract lib/modules/2.6.32.9-grsec/modules.alias:
Read-only file system
ERROR: linux-grsec-2.6.32.9-r3: Read-only file system
Executing busybox-1.16.0-r7.trigger
depmod: can't open 'modules.dep': Read-only file system
storage:/etc# /etc/init.d/ietd start
* net.core.rmem_max (112640) is lower than recommended 1048576
* net.core.rmem_default (112640) is lower than recommended 1048576
* net.core.wmem_max (112640) is lower than recommended 1048576
* net.core.wmem_default (112640) is lower than recommended 1048576
* net.ipv4.tcp_mem:min (45408) is lower than recommended 1048576
* net.ipv4.tcp_mem:default (60544) is lower than recommended 1048576
* net.ipv4.tcp_mem:max (90816) is lower than recommended 1048576
* net.ipv4.tcp_rmem:min (4096) is lower than recommended 1048576
* net.ipv4.tcp_rmem:default (87380) is lower than recommended 1048576
* net.ipv4.tcp_wmem:min (4096) is lower than recommended 1048576
* net.ipv4.tcp_wmem:default (16384) is lower than recommended 1048576
* Loading iSCSI-Target modules - iscsi_trgt...
modprobe: module iscsi_trgt not found in modules.dep
[!!]
* Starting iSCSI Enterprise Target...
[!!]
* ERROR: ietd failed to start
I guess im missing a step here?
-carlo
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Sat, Apr 17, 2010 at 11:56 AM, Carlo Landmeter <clandmeter@gmail.com> wrote:
> Hi,>> Im trying to setup a iscsi server with AL but it have some issues with> install the kernel module:>> storage:/etc# apk add iscsitarget-grsec> (1/4) Installing mkinitfs (2.0_rc7-r0)> (2/4) Installing linux-firmware (2.6.32.9-r3)> (3/4) Installing linux-grsec (2.6.32.9-r3)> ERROR: Failed to extract lib/modules/2.6.32.9-grsec/modules.alias:> Read-only file system
This sounds like you are trying to install on a run-from-ram setup
which uses modloop. I think iscsitarget is on the modloop (cramfs
image) already so you dont need install the package.
> ERROR: linux-grsec-2.6.32.9-r3: Read-only file system> Executing busybox-1.16.0-r7.trigger> depmod: can't open 'modules.dep': Read-only file system> storage:/etc# /etc/init.d/ietd start> * net.core.rmem_max (112640) is lower than recommended 1048576> * net.core.rmem_default (112640) is lower than recommended 1048576> * net.core.wmem_max (112640) is lower than recommended 1048576> * net.core.wmem_default (112640) is lower than recommended 1048576> * net.ipv4.tcp_mem:min (45408) is lower than recommended 1048576> * net.ipv4.tcp_mem:default (60544) is lower than recommended 1048576> * net.ipv4.tcp_mem:max (90816) is lower than recommended 1048576> * net.ipv4.tcp_rmem:min (4096) is lower than recommended 1048576> * net.ipv4.tcp_rmem:default (87380) is lower than recommended 1048576> * net.ipv4.tcp_wmem:min (4096) is lower than recommended 1048576> * net.ipv4.tcp_wmem:default (16384) is lower than recommended 1048576> * Loading iSCSI-Target modules - iscsi_trgt...> modprobe: module iscsi_trgt not found in modules.dep
hum... looks like 1.10.1 is broken. The iscsi_trgt.ko is in wrong location.
You can workaround it with: insmod /lib/modules/extra/iscsi/iscsi_trgt.ko
If you add it to issue tracker I'll verify its fixed in 1.10.2
whenever that is released.
thanks!
--
Natanael Copa
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Mon, Apr 19, 2010 at 11:10 AM, Natanael Copa <natanael.copa@gmail.com> wrote:
[...]
>> ERROR: linux-grsec-2.6.32.9-r3: Read-only file system>> Executing busybox-1.16.0-r7.trigger>> depmod: can't open 'modules.dep': Read-only file system>> storage:/etc# /etc/init.d/ietd start>> * net.core.rmem_max (112640) is lower than recommended 1048576>> * net.core.rmem_default (112640) is lower than recommended 1048576>> * net.core.wmem_max (112640) is lower than recommended 1048576>> * net.core.wmem_default (112640) is lower than recommended 1048576>> * net.ipv4.tcp_mem:min (45408) is lower than recommended 1048576>> * net.ipv4.tcp_mem:default (60544) is lower than recommended 1048576>> * net.ipv4.tcp_mem:max (90816) is lower than recommended 1048576>> * net.ipv4.tcp_rmem:min (4096) is lower than recommended 1048576>> * net.ipv4.tcp_rmem:default (87380) is lower than recommended 1048576>> * net.ipv4.tcp_wmem:min (4096) is lower than recommended 1048576>> * net.ipv4.tcp_wmem:default (16384) is lower than recommended 1048576>> * Loading iSCSI-Target modules - iscsi_trgt...>> modprobe: module iscsi_trgt not found in modules.dep>> hum... looks like 1.10.1 is broken. The iscsi_trgt.ko is in wrong location.
Natanael, that location was discussed together when I built open-iscsi.
iirc, we decided to move custom/modified kernel modules to "extra" dir
in order to prevent "overwriting" vanilla kernel modules.
Let me know if you think I should move open-iscsi modules too.
leo
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
I'm a little bit confused now. If i want to run iscsi target, should i
install iscsitarget-grsec?
When i dont install iscsitarget-grsec i can still see the module
inside: /lib/modules/extra/iscsi/
I guess this means the iscsi module is included in the default grsec
kernel and i dont need iscsitarget-grsec apk?
The supplied init'd script of iscsitarget depends on modprobe finding
iscsi_trgt.ko but because it cannot it will fail to start/stop even if
i load it manually.
Is there an easy way to make modprobe find iscsi_trgt.ko? so my init.d
script will work.
-carlo
On Mon, Apr 19, 2010 at 11:10 AM, Natanael Copa <natanael.copa@gmail.com> wrote:
> On Sat, Apr 17, 2010 at 11:56 AM, Carlo Landmeter <clandmeter@gmail.com> wrote:>> Hi,>>>> Im trying to setup a iscsi server with AL but it have some issues with>> install the kernel module:>>>> storage:/etc# apk add iscsitarget-grsec>> (1/4) Installing mkinitfs (2.0_rc7-r0)>> (2/4) Installing linux-firmware (2.6.32.9-r3)>> (3/4) Installing linux-grsec (2.6.32.9-r3)>> ERROR: Failed to extract lib/modules/2.6.32.9-grsec/modules.alias:>> Read-only file system>> This sounds like you are trying to install on a run-from-ram setup> which uses modloop. I think iscsitarget is on the modloop (cramfs> image) already so you dont need install the package.>>> ERROR: linux-grsec-2.6.32.9-r3: Read-only file system>> Executing busybox-1.16.0-r7.trigger>> depmod: can't open 'modules.dep': Read-only file system>> storage:/etc# /etc/init.d/ietd start>> * net.core.rmem_max (112640) is lower than recommended 1048576>> * net.core.rmem_default (112640) is lower than recommended 1048576>> * net.core.wmem_max (112640) is lower than recommended 1048576>> * net.core.wmem_default (112640) is lower than recommended 1048576>> * net.ipv4.tcp_mem:min (45408) is lower than recommended 1048576>> * net.ipv4.tcp_mem:default (60544) is lower than recommended 1048576>> * net.ipv4.tcp_mem:max (90816) is lower than recommended 1048576>> * net.ipv4.tcp_rmem:min (4096) is lower than recommended 1048576>> * net.ipv4.tcp_rmem:default (87380) is lower than recommended 1048576>> * net.ipv4.tcp_wmem:min (4096) is lower than recommended 1048576>> * net.ipv4.tcp_wmem:default (16384) is lower than recommended 1048576>> * Loading iSCSI-Target modules - iscsi_trgt...>> modprobe: module iscsi_trgt not found in modules.dep>> hum... looks like 1.10.1 is broken. The iscsi_trgt.ko is in wrong location.>> You can workaround it with: insmod /lib/modules/extra/iscsi/iscsi_trgt.ko>> If you add it to issue tracker I'll verify its fixed in 1.10.2> whenever that is released.> thanks!>> --> Natanael Copa>
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Mon, Apr 19, 2010 at 11:46 AM, Leonardo Arena <rnalrd@gmail.com> wrote:
> On Mon, Apr 19, 2010 at 11:10 AM, Natanael Copa <natanael.copa@gmail.com> wrote:>> [...]>>>> ERROR: linux-grsec-2.6.32.9-r3: Read-only file system>>> Executing busybox-1.16.0-r7.trigger>>> depmod: can't open 'modules.dep': Read-only file system>>> storage:/etc# /etc/init.d/ietd start>>> * net.core.rmem_max (112640) is lower than recommended 1048576>>> * net.core.rmem_default (112640) is lower than recommended 1048576>>> * net.core.wmem_max (112640) is lower than recommended 1048576>>> * net.core.wmem_default (112640) is lower than recommended 1048576>>> * net.ipv4.tcp_mem:min (45408) is lower than recommended 1048576>>> * net.ipv4.tcp_mem:default (60544) is lower than recommended 1048576>>> * net.ipv4.tcp_mem:max (90816) is lower than recommended 1048576>>> * net.ipv4.tcp_rmem:min (4096) is lower than recommended 1048576>>> * net.ipv4.tcp_rmem:default (87380) is lower than recommended 1048576>>> * net.ipv4.tcp_wmem:min (4096) is lower than recommended 1048576>>> * net.ipv4.tcp_wmem:default (16384) is lower than recommended 1048576>>> * Loading iSCSI-Target modules - iscsi_trgt...>>> modprobe: module iscsi_trgt not found in modules.dep>>>> hum... looks like 1.10.1 is broken. The iscsi_trgt.ko is in wrong location.>> Natanael, that location was discussed together when I built open-iscsi.> iirc, we decided to move custom/modified kernel modules to "extra" dir> in order to prevent "overwriting" vanilla kernel modules.>> Let me know if you think I should move open-iscsi modules too.
i think we need put them in /lib/modules/<abi_release>/extra instead
of /lib/modules/extra.
Mailing kernel puts its stuff in /lib/modules/<abi_release>/kernel
The main problem now is the missing <abi_release> element in the path
rather than the trailing "extra".
that said, we were talking about switching to other iscsi target
implementation, right?
--
Natanael Copa
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Mon, Apr 19, 2010 at 1:26 PM, Natanael Copa <natanael.copa@gmail.com> wrote:
> i think we need put them in /lib/modules/<abi_release>/extra instead> of /lib/modules/extra.>> Mailing kernel puts its stuff in /lib/modules/<abi_release>/kernel>> The main problem now is the missing <abi_release> element in the path> rather than the trailing "extra".
Sounds good!
>> that said, we were talking about switching to other iscsi target> implementation, right?
Yes. Discussion was ongoing here: http://redmine.alpinelinux.org/issues/278
SCST looks like a valid alternative to ISCSITARGET:
http://scst.sourceforge.net/target_iscsi.html
I just didn't have time to start making an APKBUILD for it.
leo
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---