From owner-svn-src-all@FreeBSD.ORG Fri May 22 23:28:50 2009 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CF99106566B; Fri, 22 May 2009 23:28:50 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 42EA78FC15; Fri, 22 May 2009 23:28:49 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 1DDCF5C024; Sat, 23 May 2009 07:28:48 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id CDE8655CDA85; Sat, 23 May 2009 07:28:47 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id vl7MlNxpnldK; Sat, 23 May 2009 07:27:53 +0800 (CST) Received: from charlie.delphij.net (adsl-76-237-33-62.dsl.pltn13.sbcglobal.net [76.237.33.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id AA0FE55CDA7D; Sat, 23 May 2009 07:27:46 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=DCTKw0+uJfyUPVLjYC4uNhhoN0U/5m9Xb6VorJ00JxbhceUYAcS8cbm3FN7TDNybD pWC4DE425xzf3SOVNhpUw== Message-ID: <4A1734DC.6080203@delphij.net> Date: Fri, 22 May 2009 16:27:24 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090408) MIME-Version: 1.0 To: Doug Rabson References: <200905161048.n4GAmKRh057122@svn.freebsd.org> In-Reply-To: <200905161048.n4GAmKRh057122@svn.freebsd.org> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: svn commit: r192194 - in head/sys: boot/i386/zfsboot boot/zfs cddl/boot/zfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 23:28:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Doug, Doug Rabson wrote: > Author: dfr > Date: Sat May 16 10:48:20 2009 > New Revision: 192194 > URL: http://svn.freebsd.org/changeset/base/192194 > > Log: > Add support for booting from raidz1 and raidz2 pools. > > Modified: > head/sys/boot/i386/zfsboot/zfsboot.c > head/sys/boot/zfs/zfsimpl.c > head/sys/cddl/boot/zfs/README > head/sys/cddl/boot/zfs/zfsimpl.h > head/sys/cddl/boot/zfs/zfssubr.c I think this commit has broken booting from mirrored zpool when raidz2 pool is exist. In my setup it was 4 disks: [lixin@stortank] /usr/src/sys> gpart show => 34 1953525101 da0 GPT (932G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-zfs (1.0G) 2097314 4194304 3 freebsd-swap (2.0G) 6291618 1947233517 4 freebsd-zfs (929G) => 34 1953525101 da1 GPT (932G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-zfs (1.0G) 2097314 4194304 3 freebsd-swap (2.0G) 6291618 1947233517 4 freebsd-zfs (929G) => 34 1953525101 da2 GPT (932G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-zfs (1.0G) 2097314 4194304 3 freebsd-swap (2.0G) 6291618 1947233517 4 freebsd-zfs (929G) => 34 1953525101 da3 GPT (932G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-zfs (1.0G) 2097314 4194304 3 freebsd-swap (2.0G) 6291618 1947233517 4 freebsd-zfs (929G) Where da?p2 are in a mirrored zpool and da?p4 are in a raid-z2 pool: pool: startpoint state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM startpoint ONLINE 0 0 0 mirror ONLINE 0 0 0 da0p2 ONLINE 0 0 0 da1p2 ONLINE 0 0 0 da2p2 ONLINE 0 0 0 da3p2 ONLINE 0 0 0 errors: No known data errors pool: stortank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM stortank ONLINE 0 0 0 raidz2 ONLINE 0 0 0 label/disk0 ONLINE 0 0 0 label/disk1 ONLINE 0 0 0 label/disk2 ONLINE 0 0 0 label/disk3 ONLINE 0 0 0 It looks like that the gptzfsboot can recognize the mirrored 'startpoint' pool and load loader correctly (when I specify loader.old, it worked just fine) but the loader can not. I've tried to Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoXNNsACgkQi+vbBBjt66BrYACguD5mHU4PyUUINe1eJf69G6Vv HL4An1I0fwokIF/Sc4fKCAgz3xH5Gwzq =YgBz -----END PGP SIGNATURE-----