Discussion:
CVS commit: src/sys/dev/scsipi
(too old to reply)
T K Spindler (moof)
2024-11-22 20:44:57 UTC
Permalink
> Modified Files:
> src/sys/dev/scsipi: scsiconf.c
>
> Log Message:
> The code tried to limit number of LUNs per target to 3, but would
> only default to a single LUN when that limit is exceeded.
>
> With the limit removed, more LUNs will be attached (up to the limit
> imposed by the host adapter driver).
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.305 -r1.306 src/sys/dev/scsipi/scsiconf.c

Alas, even with this change, on NetBSD 10 (haven't yet tried booting
with -current), it's still insufficient for the disks on the same
target from attaching except for the first one; they do still show
up in `scsictl sd0 reportluns all`, though - four on one target,
eight on the other.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Michael van Elst
2024-11-23 20:59:14 UTC
Permalink
On Fri, Nov 22, 2024 at 12:44:57PM -0800, T K Spindler (moof) wrote:

> Alas, even with this change, on NetBSD 10 (haven't yet tried booting
> with -current), it's still insufficient for the disks on the same
> target from attaching except for the first one; they do still show
> up in `scsictl sd0 reportluns all`, though - four on one target,
> eight on the other.

Seems to work here.

tazz: {2} sudo scsictl sd6 reportluns
Password:
/dev/rsd6: lun 0
/dev/rsd6: lun 1
/dev/rsd6: lun 2
/dev/rsd6: lun 3
/dev/rsd6: lun 4
/dev/rsd6: lun 5
/dev/rsd6: lun 6

tazz: {4} sudo scsictl sd12 reportluns
/dev/rsd12: lun 0
/dev/rsd12: lun 1
/dev/rsd12: lun 2
/dev/rsd12: lun 3
/dev/rsd12: lun 4
/dev/rsd12: lun 5
/dev/rsd12: lun 6

scsibus4 at iscsi0: 1 target, 16 luns per target
sd6 at scsibus4 target 0 lun 0: <NetBSD, AmigaImages, 0000> disk fixed
sd6: fabricating a geometry
sd6: 32768 MB, 32768 cyl, 64 head, 32 sec, 512 bytes/sect x 67108864 sectors
sd6: fabricating a geometry
sd6: 4194304 trailing sectors not covered by disklabel
dk13 at sd6: "dummy/a", 614400 blocks at 512, type: ffs
dk14 at sd6: "dummy/b", 4198400 blocks at 614912, type: swap
dk15 at sd6: "dummy/e", 43520000 blocks at 4813312, type: ffs
dk16 at sd6: "dummy/f", 2048000 blocks at 48333312, type: ffs
dk17 at sd6: "dummy/g", 12533248 blocks at 50381312, type: ffs
sd7 at scsibus4 target 0 lun 1: <NetBSD, AmigaImages, 0000> disk fixed
sd7: fabricating a geometry
sd7: 10240 MB, 10240 cyl, 64 head, 32 sec, 512 bytes/sect x 20971520 sectors
sd7: fabricating a geometry
dk18 at sd7: "Hardfile/a", 3200000 blocks at 512, type: ffs
dk19 at sd7: "Hardfile/b", 16384000 blocks at 3200512, type: swap
dk20 at sd7: "Hardfile/e", 1387008 blocks at 19584512, type: ffs
sd8 at scsibus4 target 0 lun 2: <NetBSD, AmigaImages, 0000> disk fixed
sd8: fabricating a geometry
sd8: 10240 MB, 10240 cyl, 64 head, 32 sec, 512 bytes/sect x 20971520 sectors
sd8: fabricating a geometry
dk21 at sd8: "work/d", 20971008 blocks at 512, type: ffs
sd9 at scsibus4 target 0 lun 3: <NetBSD, AmigaImages, 0000> disk fixed
sd9: fabricating a geometry
sd9: 8192 MB, 8192 cyl, 64 head, 32 sec, 512 bytes/sect x 16777216 sectors
sd9: fabricating a geometry
sd10 at scsibus4 target 0 lun 4: <NetBSD, AmigaImages, 0000> disk fixed
sd10: fabricating a geometry
sd10: 8192 MB, 8192 cyl, 64 head, 32 sec, 512 bytes/sect x 16777216 sectors
sd10: fabricating a geometry
sd6: 4194304 trailing sectors not covered by disklabel
sd11 at scsibus4 target 0 lun 5: <NetBSD, AmigaImages, 0000> disk fixed
sd6: 4194304 trailing sectors not covered by disklabel
sd11: fabricating a geometry
sd11: 8192 MB, 8192 cyl, 64 head, 32 sec, 512 bytes/sect x 16777216 sectors
sd11: fabricating a geometry
sd12 at scsibus4 target 0 lun 6: <NetBSD, AmigaImages, 0000> disk fixed
sd12: fabricating a geometry
sd12: 8192 MB, 8192 cyl, 64 head, 32 sec, 512 bytes/sect x 16777216 sectors
sd12: fabricating a geometry
sd6: async, 8-bit transfers, tagged queueing
sd7: async, 8-bit transfers, tagged queueing
sd8: async, 8-bit transfers, tagged queueing
sd9: async, 8-bit transfers, tagged queueing
sd10: async, 8-bit transfers, tagged queueing
sd11: async, 8-bit transfers, tagged queueing
sd12: async, 8-bit transfers, tagged queueing


--
Michael van Elst
Internet: ***@serpens.de
"A potential Snark may lurk in every tree."

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
T K Spindler (moof)
2024-11-24 04:32:43 UTC
Permalink
On Sat, Nov 23, 2024 at 09:59:14PM +0100, Michael van Elst wrote:
> On Fri, Nov 22, 2024 at 12:44:57PM -0800, T K Spindler (moof) wrote:
>
> > Alas, even with this change, on NetBSD 10 (haven't yet tried booting
> > with -current), it's still insufficient for the disks on the same
> > target from attaching except for the first one; they do still show
> > up in `scsictl sd0 reportluns all`, though - four on one target,
> > eight on the other.
>
> Seems to work here.

It *does* work in -current for me as well, so I'll take that as a win.

[ 2.027910] sd11 at scsibus0 target 2 lun 3: <Seagate, ST31500341AS, R001> disk fixed


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...