NetBSD Problem Report #36873
From arnej@pvv.ntnu.no Fri Aug 31 14:27:57 2007
Return-Path: <arnej@pvv.ntnu.no>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 4282763B928
for <gnats-bugs@gnats.NetBSD.org>; Fri, 31 Aug 2007 14:27:57 +0000 (UTC)
Message-Id: <Pine.LNX.4.62.0708311625310.21246@decibel.pvv.ntnu.no>
Date: Fri, 31 Aug 2007 16:27:51 +0200 (CEST)
From: "Arne H. Juul" <arnej@pvv.ntnu.no>
To: gnats-bugs@NetBSD.org
Subject: boot takes a long time when there are offline "disks"
X-Send-Pr-Version: 3.95
>Number: 36873
>Category: kern
>Synopsis: boot takes a long time when there are offline "disks"
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 31 14:30:00 +0000 2007
>Last-Modified: Fri Aug 31 20:20:01 +0000 2007
>Originator: Arne H Juul
>Release: NetBSD 4.99.30
>Organization:
disorganized
>Environment:
System: NetBSD inngang 4.99.30 NetBSD 4.99.30 (GENERIC.MP) #6: Fri Aug 31 01:22:50 CEST 2007 root@inngang:/usr/obj/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:
My machine takes a looong time (> 5 minutes) to boot currently,
and I think I've found the reason:
I've got a standard new desktop machine with memory card
readers in front. These appear as SCSI disks attached via
USB, and since I don't have memory cards in them they show
up as "offline". But still, it takes a very long time
during boot - probably in findroot for the kernel to figure
out that these aren't the root disk it's looking for. It
should notice the "offline" and continue at once, I guess...
The workaround is simply to disconnect the cable that goes
to the card-readers and front USB connector.
>How-To-Repeat:
Actually, any offline SCSI disks might produce the same symptoms, I guess:
[...]
umass0 at uhub1 port 8 configuration 1 interface 0
umass0: Genesys Logic USB Storage, rev 2.00/96.02, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, STORAGE DEVICE, 9602> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, STORAGE DEVICE, 9602> disk removable
sd1: drive offline
sd2 at scsibus0 target 0 lun 2: <Generic, STORAGE DEVICE, 9602> disk removable
sd2: drive offline
[... at this point to boot process seems to hang ...]
findroot: unable to read block 266245176
opendisk: can't open dev sd0 (5)
opendisk: can't open dev sd1 (5)
opendisk: can't open dev sd2 (5)
opendisk: can't open dev sd0 (5)
opendisk: can't open dev sd1 (5)
opendisk: can't open dev sd2 (5)
opendisk: can't open dev sd0 (5)
opendisk: can't open dev sd1 (5)
opendisk: can't open dev sd2 (5)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
>Fix:
unknown.
>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: kern/36873: boot takes a long time when there are offline "disks"
Date: Fri, 31 Aug 2007 21:22:35 +0200
On Fri, Aug 31, 2007 at 02:30:00PM +0000, Arne H. Juul wrote:
> [...]
> System: NetBSD inngang 4.99.30 NetBSD 4.99.30 (GENERIC.MP) #6: Fri Aug 31 01:22:50 CEST 2007 root@inngang:/usr/obj/sys/arch/i386/compile/GENERIC.MP i386
> Architecture: i386
> Machine: i386
> >Description:
> My machine takes a looong time (> 5 minutes) to boot currently,
> and I think I've found the reason:
>
> I've got a standard new desktop machine with memory card
> readers in front. These appear as SCSI disks attached via
> USB, and since I don't have memory cards in them they show
> up as "offline". But still, it takes a very long time
> during boot - probably in findroot for the kernel to figure
> out that these aren't the root disk it's looking for. It
> should notice the "offline" and continue at once, I guess...
>
> The workaround is simply to disconnect the cable that goes
> to the card-readers and front USB connector.
> >How-To-Repeat:
>
> Actually, any offline SCSI disks might produce the same symptoms, I guess:
No, booting with offline drive (be they atapi, SCSI or USB) isn't a problem.
I think your reader is behaving in an unusual way.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: "Arne H. Juul" <arnej@pvv.ntnu.no>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/36873: boot takes a long time when there are offline "disks"
Date: Fri, 31 Aug 2007 22:15:05 +0200 (CEST)
> No, booting with offline drive (be they atapi, SCSI or USB) isn't a problem.
> I think your reader is behaving in an unusual way.
That's very possible of course, it was just a guess on my side from
reading the messages on the console :-)
Wouldn't it still make sense to skip offline drives when searching for
root disk? (if that is where the time goes, that's also just a guess on
my side of course...)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.