From owner-freebsd-stable@FreeBSD.ORG Thu Jun 16 00:58:21 2011 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 8BD871065670 for ; Thu, 16 Jun 2011 00:58:21 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 73A9F8FC1D for ; Thu, 16 Jun 2011 00:58:21 +0000 (UTC) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 47730304C; Wed, 15 Jun 2011 17:58:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=anubis; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:mime-version:to: subject:references:in-reply-to:openpgp:content-type:content-transfer-encoding; b=bDks+NvyWX7EMtFfKnLPNMr7i6xxjUajzTBhqH7rmHTa5+vNL55FPN12Zero5Rxbd 0zWPz1Fy1vrOX4HrrGiRfnb2IExYPyKKIgMoh34fFK/UqnGq8T9MyegN0CNZK1LRZEy VnTbWj4GdfLrL8BKwGTC6BjLV/3fPhh3xqwItvQ= Message-ID: <4DF9552C.6080806@delphij.net> Date: Wed, 15 Jun 2011 17:58:20 -0700 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: In-Reply-To: OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: ZFS boot inside on the second partition inside a slice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2011 00:58:21 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06/15/11 17:42, Zhihao Yuan wrote: > Hi, > > I configured my disk layout according to > http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition > > But I swapped the order of the freebsd-zfs and freebsd-swap. The 4.0G > freebsd-swap partition appears first inside the slice. > After that, I write zfsboot on both ada0s2 and ada0s2b, but the boot0 > gives me a "Read error". Where did your second slice start? There can be a lot of reasons why it gives Read error. I personally recommend using GPT scheme instead of MBR, as you have a dedicated partition for gptzfsboot, which is much cleaner than this approach. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBCAAGBQJN+VUrAAoJEATO+BI/yjfBpksH/2ZswQ+ogdDpYwvhRIjJaqLs NEl8FtC2Ua+c3F2sNwrLK5a/fn/LL+jPAXndvuQdxOaz41Iqtnt8w1i9Dz5ATkva T+i0fnRVwXFqjrlRTWK+ODtNtrhI2/7ECAIfOOLNhaiJnPRrJJgvxJ6V5W+/N+l7 Lt4yMp6hGbhO/9Yp2UoaQuUThOTz+dKNZGECd1nLT+ooHbTPhBvjii080hHowNl6 Ef+JBaEng2NbRJPxYWrRwz6R7A44RDXvrKzn5w/TuUa+4fYrS25EZxygzIh3xjFX 2ILP25yabJ+Vw5o8bFCsJ3ExbEfq0PnfROHanRSdTjMDra27dGY9JZKyytE+Ykc= =D5+X -----END PGP SIGNATURE-----