~alpine/devel

5 3

[alpine-devel] iscsi issue

Carlo Landmeter <clandmeter@gmail.com>
Details
Message ID
<o2k1b2623ac1004170256lc61c6193p1a3e1571df9b2766@mail.gmail.com>
Sender timestamp
1271498168
DKIM signature
missing
Download raw message
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
---
Details
Message ID
<j2y95408c821004190210r5b2f7465qb673f0f6de3dd84c@mail.gmail.com>
In-Reply-To
<o2k1b2623ac1004170256lc61c6193p1a3e1571df9b2766@mail.gmail.com> (view parent)
Sender timestamp
1271668240
DKIM signature
missing
Download raw message
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
---
Leonardo Arena <rnalrd@gmail.com>
Details
Message ID
<y2m9334be8a1004190246l1f02c408j30cba774946d0bf5@mail.gmail.com>
In-Reply-To
<j2y95408c821004190210r5b2f7465qb673f0f6de3dd84c@mail.gmail.com> (view parent)
Sender timestamp
1271670365
DKIM signature
missing
Download raw message
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
---
Carlo Landmeter <clandmeter@gmail.com>
Details
Message ID
<p2r1b2623ac1004190403ga0e02b46wac560eab3acc524b@mail.gmail.com>
In-Reply-To
<j2y95408c821004190210r5b2f7465qb673f0f6de3dd84c@mail.gmail.com> (view parent)
Sender timestamp
1271675039
DKIM signature
missing
Download raw message
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
---
Details
Message ID
<s2j95408c821004190426hf7b546b4z96d3e5e06166dbd5@mail.gmail.com>
In-Reply-To
<y2m9334be8a1004190246l1f02c408j30cba774946d0bf5@mail.gmail.com> (view parent)
Sender timestamp
1271676388
DKIM signature
missing
Download raw message
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
---
Leonardo Arena <rnalrd@gmail.com>
Details
Message ID
<k2y9334be8a1004190436ob4a5617bv73f2f1da25b9a9@mail.gmail.com>
In-Reply-To
<s2j95408c821004190426hf7b546b4z96d3e5e06166dbd5@mail.gmail.com> (view parent)
Sender timestamp
1271677013
DKIM signature
missing
Download raw message
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
---
Reply to thread Export thread (mbox)