From owner-freebsd-questions@FreeBSD.ORG Thu Jun 23 09:07:12 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE9EA1065672 for ; Thu, 23 Jun 2011 09:07:12 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id A7F2B8FC17 for ; Thu, 23 Jun 2011 09:07:12 +0000 (UTC) Received: by yxl31 with SMTP id 31so869204yxl.13 for ; Thu, 23 Jun 2011 02:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=uI5Q+tGs3sSTzRXAz1MUQer617ibWhcs3xIP/d+Tj5I=; b=qxtPh2YNgrnrdvf2xwCc9v46f7EiDq3zhIfAOQYsuB1BiZyhIbZNAuE/T3eR1ptU5T RtLNsZ0jncjSMamLECodc/AiNn5vGQimomAcjBKLiYr9bwwErXw0YtUFzZ2//4tV2HnL kS877te7Xt/MhxqEWtTDYU+D5eQ6eQa5EZp8o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=M1Z7SnzpRpgXpRtqikgqAH9VZm+aPZODccfrVWgnq6qEF+55d53R89tP2UweQr9irA mzwJYLjbbKXTYdfQZzBswWNMHybvMc4QsqTtOFvGX0caxIphcakxAuGqX3DyuxX1z211 kwShoQ7MzrSZypP/ipVson4CuC46H53/P4Z2M= MIME-Version: 1.0 Received: by 10.236.179.40 with SMTP id g28mr1973290yhm.105.1308820031576; Thu, 23 Jun 2011 02:07:11 -0700 (PDT) Received: by 10.236.102.178 with HTTP; Thu, 23 Jun 2011 02:07:11 -0700 (PDT) In-Reply-To: <2596CDD6-593A-4A46-A14E-3BBBAC1AD57E@my.gd> References: <4E00EA98.1090805@nagual.nl> <4E00FDC0.3090808@infracaninophile.co.uk> <2596CDD6-593A-4A46-A14E-3BBBAC1AD57E@my.gd> Date: Thu, 23 Jun 2011 10:07:11 +0100 Message-ID: From: krad To: Damien Fleuriot Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-questions@freebsd.org" Subject: Re: FreeBSD ZFS system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 09:07:13 -0000 On 23 June 2011 02:38, Damien Fleuriot wrote: > > > On 22 Jun 2011, at 22:22, krad wrote: > > > On 21 June 2011 21:23, Matthew Seaman >wrote: > > > >> On 21/06/2011 20:01, Dick Hoogendijk wrote: > >>> I'd like to install FreeBSD (pcbsd) on a (zfs) mirror > >>> In OpenSolaris you can install directly to the zfs mirror, but how's > >>> this in this situation> After all, an UFS partitin is also created. How > >>> can I get the equivalent of an OpenSolaris mirrored install for a > >>> FreeBSD system? > >> > >> http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror > >> > >> Cheers > >> > >> Matthew > >> > >> -- > >> Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > >> Flat 3 > >> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > >> JID: matthew@infracaninophile.co.uk Kent, CT11 9PW > >> > >> > > > > its dead easy to do retrospective as well no need to rebuild or ditch > the > > pcbsd install method. > > > > X = current boot drive > > Y = blank drive > > z = zfs partition/slice eg s1d, p3 etc > > > > gpart backup /dev/X | gpart restore /dev/Y > > > > Hey that's pretty cool, does this work to copy from a small disk to a > bigger one like dump does, or do the partitions have to be the same size ? > > > > gpart bootcode -b /zfsboot/pmbr -p /zfsboot/(gpt)*zfsboot -i 1 /dev/Y > > zpool attach /dev/Xz /dev/Yz > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > it should work, however I have never done it in practice. a quick test on my openindiana box shows it does # zfs create -V 1G rpool/test2 # zfs create -V 2G rpool/test3 # zpool create test rpool/test2 # zpool create test /dev/zvol/dsk/rpool/test2 # zpool attach test /dev/zvol/dsk/rpool/test2 /dev/zvol/dsk/rpool/test3 # zpool status test pool: test state: ONLINE scan: resilvered 82K in 0h0m with 0 errors on Thu Jun 23 10:05:43 2011 config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 /dev/zvol/dsk/rpool/test2 ONLINE 0 0 0 /dev/zvol/dsk/rpool/test3 ONLINE 0 0 0 errors: No known data errors #