[stgt] tgtd crash when adding more than ~20 targets (and a way to reproduce)
Tomasz Chmielewski
mangoo at wpkg.org
Thu Sep 25 16:34:49 CEST 2008
Tomasz Chmielewski schrieb:
> tgtd will crash with more than ~20 targets.
>
> To reproduce, start this bash script:
>
> #!/bin/bash
>
> i=1
>
> while [ $i -ne 1024 ] ; do
> echo tgtadm --lld iscsi --op new --mode target --tid 1$i -T
> iqn.2007-02.com.example:test.break$i
> tgtadm --lld iscsi --op new --mode target --tid 1$i -T
> iqn.2007-02.com.example:test.break$i
> echo tgtadm --lld iscsi --op new --mode logicalunit --tid 1$i --lun 1
> -b /dev/sda
> tgtadm --lld iscsi --op new --mode logicalunit --tid 1$i --lun 1 -b
> /dev/sda
> [ $? -ne 0 ] && exit
> i=$((i+1))
> done
At least, it crashes on 32 bit.
BTW, this is quite strange, as I have one machine (x86_64) with 51 targets:
# tgtadm --op show --mode target | grep -c Target
51
Perhaps running an older tgt revision? Or 64 bit makes a difference
here? I have no way to check if there is any limit on 64 bit right now.
It also crashes when tgtd is started in the foreground.
--
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list