From owner-freebsd-current@FreeBSD.ORG Fri Sep 25 21:49:15 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7AC5106566C for ; Fri, 25 Sep 2009 21:49:15 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.freebsd.org (Postfix) with ESMTP id 3665B8FC16 for ; Fri, 25 Sep 2009 21:49:14 +0000 (UTC) Received: by yxe14 with SMTP id 14so7714352yxe.7 for ; Fri, 25 Sep 2009 14:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=PQRgCD2ukO4w/gKDSvd/YMYKnaw1A5/RYcYME82/+Ww=; b=Kfxn4Ufnz+3lT9wrytVjeQiSYmoMQf7A19Ohr5t0HXGD4WH2wZo5mCCdEaD+u6Yf7z l6zecIMHnR5Tgye2qR2gfJuDldD8OQKlCxCK6RtyD8RzzVxEVGjkRuUq97U9MXwuCHN3 QO4SJwBAStaCCmiqqYF1LiOBeDzrJQbI/bpio= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=FKAorod0R1/6h9GMNCQRp/hSAKjr35dBADp0ktnYY9g7bnGEIfHU3Xl1p5dtnZnRZd ZtLgg1Vu2hpI5OskhHQfoeskmMRC9yzjVtvK6KVmraG8dnnOmbtsCypvMI1NXl6oNIVD onstJqKCK+dGmWvLhSAJqfoQohy90OwSwkqsU= MIME-Version: 1.0 Sender: artemb@gmail.com Received: by 10.90.158.2 with SMTP id g2mr995461age.92.1253915354370; Fri, 25 Sep 2009 14:49:14 -0700 (PDT) In-Reply-To: References: <20090925154125.GD48707@roberto-al.eurocontrol.fr> Date: Fri, 25 Sep 2009 14:49:14 -0700 X-Google-Sender-Auth: 12f6195928154b44 Message-ID: From: Artem Belevich To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Ollivier Robert , dfr@freebsd.org, freebsd-current@freebsd.org Subject: Re: Booting off raidz *mostly* work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 21:49:16 -0000 Our bootloader implementation does not know how to read gang blocks. Compare the code from OpenSolaris' variant of grub with what we have and find the differences: Search for zio_read_data here: http://bitbucket.org/osunix/osunix-gate/src/1cca4617b3a8/usr/src/grub/grub-= 0.97/stage2/fsys_zfs.c And compare with our zio_read here: http://fxr.watson.org/fxr/source/boot/zfs/zfsimpl.c?im=3Dexcerpts#L900 We seem to be missing gang block check. That would explain why zfsboot works only sometimes. If all the files are written using regular blocks, then we're OK. However, some time later (i.e. during upgrade or after an edit), some data can end up written to disk in a gang block and that would make zfsboot choke. --Artem On Fri, Sep 25, 2009 at 1:57 PM, Stefan Bethke wrote: > Am 25.09.2009 um 17:41 schrieb Ollivier Robert: > >> According to Ollivier Robert: >>> >>> By popular demand: >>> http://www.keltia.net/howtos/zfsboot >> >> I've succeeded in booting off raidz! >> >> There is a remaining issue with /boot/loader getting zfs errors at boot >> time >> resulting in loader.conf not being read. After setting the various >> variables >> manually (vm.kmem_size, vfs.root.mountfrom) and loading zfs, it works... >> >> http://static.keltia.net/download/raidz-boot.png >> >> I've updated the howto to reflect that. >> >> Any help in tackling the last issue is welcome. > > In my various experiments, I sometimes got a setup that would load many, = but > not all files. =A0However, re-running the script to re-create the zpool, = or > copying files to the filesystem would make any successive reboots not wor= k > anymore. > > > Stefan > > -- > Stefan Bethke =A0 Fon +49 151 14070811 > > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >