From mikeh@soda.csua.berkeley.edu  Sun Jan 21 02:15:33 2001
Return-Path: <mikeh@soda.csua.berkeley.edu>
Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8A4A637B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 21 Jan 2001 02:15:33 -0800 (PST)
Received: (from mikeh@localhost)
	by soda.csua.berkeley.edu (8.11.0/8.11.1) id f0LAFXn89491;
	Sun, 21 Jan 2001 02:15:33 -0800 (PST)
	(envelope-from mikeh)
Message-Id: <200101211015.f0LAFXn89491@soda.csua.berkeley.edu>
Date: Sun, 21 Jan 2001 02:15:33 -0800 (PST)
From: mikeh@CSUA.Berkeley.EDU
Reply-To: mikeh@CSUA.Berkeley.EDU
To: FreeBSD-gnats-submit@freebsd.org
Subject: /stand/sysinstall fdisk/label can't access over 20 drives
X-Send-Pr-Version: 3.2

>Number:         24503
>Category:       conf
>Synopsis:       /stand/sysinstall fdisk/label can't access over 20 drives
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    schweikh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 21 02:20:00 PST 2001
>Closed-Date:    Mon May 14 13:53:42 PDT 2001
>Last-Modified:  Mon May 14 13:58:18 PDT 2001
>Originator:     Mike Howard
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
UC Berkeley Computer Science Undergraduate Organization
>Environment:

- UC Berkeley 
- soda.csua.berkeley.edu FreeBSD 4.2-BETA #0: Wed Nov 15 02:45:28 PST 2000 i386
- 22 SCSI disks (da0 - da21) on 5 SCSI busses (ahc0 - ahc4)
- http://www.csua.berkeley.edu/computing/hardware/soda-mark-vi.html

>Description:

- Even with all proper /dev entries present, sysinstall displays only the
  first 20 devices, rendering it impossible to access da20+.

    lqqqqqqqqqqqqqqqqqqqqqqqqqq Select Drive(s) qqqqqqqqqqqqqqqqqqqqqqqqqqk
    x Please select the drive, or drives, on which you wish to perform    x
    x this operation.  If you are attempting to install a boot partition  x
    x on a drive other than the first one or have multiple operating      x
    x systems on your machine, you will have the option to install a boot x
    x manager later.  To select a drive, use the arrow keys to move to it x
    x and press [SPACE].  To de-select it, press [SPACE] again.           x
    x                                                                     x
    x Select OK or Cancel to leave this menu.                             x
    x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
    x x                         [ ] da0   da0                           x x
    x x                         [ ] da1   da1                           x x
    x x                         [ ] da2   da2                           x x
    x x                         [ ] da3   da3                           x x
    x x                         [ ] da4   da4                           x x
    x x                         [ ] da5   da5                           x x
    x x                         [ ] da6   da6                           x x
    x x                         [ ] da7   da7                           x x
    x x                         [ ] da8   da8                           x x
    x x                         [ ] da9   da9                           x x
    x x                         [ ] da10  da10                          x x
    x x                         [ ] da11  da11                          x x
    x x                         [ ] da12  da12                          x x
    x x                         [ ] da13  da13                          x x
    x x                         [ ] da14  da14                          x x
    x x                         [ ] da15  da15                          x x
    x x                         [ ] da16  da16                          x x
    x x                         [ ] da17  da17                          x x
    x x                         [ ] da18  da18                          x x
    x x                         [ ] da19  da19                          x x
    x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
    tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
    x                       [  OK  ]       Cancel                         x
    mqqq[ Press F1 for important information regarding disk geometry! ]qqqj

- Reproduced on another (4.2-STABLE) machine with even more disks (30);
  it listed only ad0 and da0-da18.


>How-To-Repeat:

- On a computer with more than 20 harddrives, run /stand/sysinstall.
- Go do post-install Configuration, then Fdisk or Label
- Attempt to access the 21st device.


>Fix:




>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: schweikh 
State-Changed-When: Sun May 6 07:45:36 PDT 2001 
State-Changed-Why:  
It appears the culprit is in /usr/src/lib/libdisk/libdisk.h, 
#define MAX_NO_DISKS 20 
I'll see if we can bump this number to 32 without breaking anything. 


Responsible-Changed-From-To: freebsd-bugs->schweikh 
Responsible-Changed-By: schweikh 
Responsible-Changed-When: Sun May 6 07:45:36 PDT 2001 
Responsible-Changed-Why:  
I'm working on libdisk anyway. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24503 
State-Changed-From-To: analyzed->closed 
State-Changed-By: schweikh 
State-Changed-When: Mon May 14 13:53:42 PDT 2001 
State-Changed-Why:  
Bumped max no of disks to 32 in libdisk. Another magic number, hmm. 
Would anyone consider it silly to bump this number even further to 
max-no-of-scsi controllers * max-channels-per controller * 15 disks 
per channel? Does anyone know of systems with > 32 disks? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24503 
>Unformatted:
