From owner-freebsd-stable@FreeBSD.ORG Tue Jun 8 19:28:39 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15C221065679 for ; Tue, 8 Jun 2010 19:28:39 +0000 (UTC) (envelope-from alteriks@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 918718FC1F for ; Tue, 8 Jun 2010 19:28:38 +0000 (UTC) Received: by fxm20 with SMTP id 20so3940215fxm.13 for ; Tue, 08 Jun 2010 12:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=dYKYRfHLC4TpGh6tfs35nJTlS4yqQeCC6g/By2NQPfA=; b=hHZ4dSaLAxeXQLRdXHrFOfG1ZMRb2IU29aYqtGoXgSSDbT+MoY3S1zLPnAIB4dupoe HzTt6KF9niQ4vtt20RvQ842xfuQD8MfAKz4zq1iu0hMlDd5wZ/2FdZ1smOaQP5yEe0p2 vt23EgPko7wL9E/AeN+BhijsehOseo8TGV2Ss= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=KMxC7d0C5byT0MSHr4yQTrpMYbgLELXM606NAdX7qCgpD+2Ke1KkpFbq8Izj47eAmf B301vVIgV8EEgf9JuKiISH+he6DjR3/6rlfLy9rgent9oSB+ZOPskZ/NLX4dOqc8i/st YHaf0pAfMWX9s/se0tsDHr2wyBtEknVp+X8BU= Received: by 10.239.185.20 with SMTP id a20mr1193147hbh.12.1276025317161; Tue, 08 Jun 2010 12:28:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.161.146 with HTTP; Tue, 8 Jun 2010 12:28:17 -0700 (PDT) In-Reply-To: <201006041009.47004.kdajka@new.agora.pl> References: <684e57ec1003221341s241c6d4fl9f2afa411c55d697@mail.gmail.com> <201006041009.47004.kdajka@new.agora.pl> From: Krzysztof Dajka Date: Tue, 8 Jun 2010 21:28:17 +0200 Message-ID: To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Booting after make installworld takes ages [Was Re: Can't boot after make installworld] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2010 19:28:39 -0000 On Fri, Jun 4, 2010 at 10:09 AM, Krzysztof Dajka wrote: > On Sunday, 21 of March 2010 20:15:29 Krzysztof Dajka wrote: > > Hi, I'm having problem with upgrading my FreeBSD to RELENG_8. Building > > world and kernel went smoothly I can boot with new kernel, but after > 'make > > installworld' I could boot my system. My system prints only: > > BTX loader 1.00 BTX version is 1.01 > > Console: internal video/keyboard > > BIOS drive C: is disk0 > > BIOS drive D: is disk1 > > BIOS drive E: is disk2 > > BIOS drive F: is disk3 > > | > > And freezes... > > > > I had a problem in march with booting after 'makeinstall' as stated above. > It seems that I was impatient prejudged facts. > For few months I was running newer kernel than world. After all I decided > to upgrade whole system yesterday. After 'make > installkernel', booting to new kernel went as usual. After 'make > installworld' and rebooting it hangs at: > > > BIOS drive C: is disk0 > > BIOS drive D: is disk1 > > BIOS drive E: is disk2 > > BIOS drive F: is disk3 > > | > > After waiting 50 seconds it started booting. During this time my usb flash > drive, which contains only bootcode blinked as > crazy. I remembered that Dan Naumov told me > > > The ZFS bootloader has been changed in 8-STABLE compared to > > 8.0-RELEASE. Reinstall your boot blocks. > > So this time I did: > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 > > But this didn't help, booting is still painfully slow. > -- > I have done few test and narrowed problem to probing usb devices. I have taken following steps: 1) I prepared installed bootcode to 3 devices - 512MB Kingston flash drive - 32MB SD Card - 1MB file (created with dd, mounted with mdconfig, added gpt partition and freebsd-boot slice) booted over pxe 2) All devices had newest bootcode, booting from every device was terrible slow, but sd card was significantly slower than others. 3) I played with my zpool # zpool offline zroot gpt/disk2 4) reboot 5) I booted with every device. Booting from both devices connected to usb bus, was slow. Booting over pxe from 1MB 'drive' with bootcode was very fast as it should be. 6) Booting over pxe with any device attached to usb bus was again slow! 7) I did: #zpool online zroot gpt/disk2 And rebooted over pxe. Still fast. I noticed that /boot/zfs/zpool.cache was updated after puting offline gpt/disk2, but I can't remember if it was updated after upgrading kernel and world.