From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 20 04:52:55 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9DE982F5 for ; Wed, 20 Feb 2013 04:52:55 +0000 (UTC) (envelope-from seanwbruno@gmail.com) Received: from mail-da0-f45.google.com (mail-da0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 77139FD8 for ; Wed, 20 Feb 2013 04:52:55 +0000 (UTC) Received: by mail-da0-f45.google.com with SMTP id w4so3347186dam.32 for ; Tue, 19 Feb 2013 20:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:from:reply-to:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer; bh=Z5qAMfrmmGaNTG96rgOLSxOQthMt1LtvnoGy+nmTdfg=; b=1GpkMuk3+MljAtf3SH/KiX036gtuzxAYjF/9l9ySXia10gKzO1JpEEbdsEE82h9D19 IMKZoVT3jHCkcYcnbY8aQD7TDBSU90wA5TyiQbZFowBSbDx7Smlaphg865wiyS7YK6nD mYjR4TmxYnzCH9z9QB8KW3CYAzkvKEe0ddl9jgpfvBVywVaDsDXbjzpyaVMJ5DkTvy1r 1AIgm40nZFdJ6Nibt/C6O3Fls/pYFVyqqbaxsooXeybbTyjptFqshpSRq4i/uLFTXN/y KnibsBOFBZT7/pR8/JVqJ6Gs09OZny0s16VdIWllH3uwjXk8kNB8q6UNX6Z/rDZ5a6qI saVQ== X-Received: by 10.68.224.169 with SMTP id rd9mr448437pbc.199.1361335974978; Tue, 19 Feb 2013 20:52:54 -0800 (PST) Received: from [192.168.1.210] (c-71-202-40-63.hsd1.ca.comcast.net. [71.202.40.63]) by mx.google.com with ESMTPS id i6sm109802670paw.19.2013.02.19.20.52.52 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 19 Feb 2013 20:52:53 -0800 (PST) Subject: Re: sparc64 zfsroot/gmirror? From: Sean Bruno To: Kurt Lidl In-Reply-To: <20130220035936.GA62301@pix.net> References: <1361318589.3815.12.camel@powernoodle.corp.yahoo.com> <20130220035936.GA62301@pix.net> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-maQmYNqessROBPEk0Q5h" Date: Tue, 19 Feb 2013 20:52:51 -0800 Message-ID: <1361335971.2816.3.camel@powernoodle> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2013 04:52:55 -0000 --=-maQmYNqessROBPEk0Q5h Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2013-02-19 at 22:59 -0500, Kurt Lidl wrote: > On Tue, Feb 19, 2013 at 04:03:09PM -0800, Sean Bruno wrote: > > I'm restoring some of the sparc64 machines for freebsd.org and had a > > question with regards to what to do about the / > >=20 > > Since it wasn't obvious how to setup zfs root things I setup something > > that looks like this: > >=20 > > =3D> 0 71087625 da0 VTOC8 (33G) > > 0 385560 1 freebsd-ufs (188M) > > 385560 70702065 2 freebsd-zfs (33G) > >=20 > > =3D> 0 71087625 da1 VTOC8 (33G) > > 0 385560 1 freebsd-ufs (188M) > > 385560 70702065 2 freebsd-zfs (33G) > >=20 > >=20 > > Where everything *except* /boot is in the mirrored zpool. > >=20 > > I can reinstall the system trivially, and am looking for suggestions. >=20 > I wrote up a script to do the heavy lifting for installing > a completely zfs system on a sparc64 machine. >=20 > http://www.pix.net/ftp/pub/freebsd/sparc_zfs_setup.txt >=20 > The 12GB space for zfs is appropriate for a 18Gb disk, and allows > the remainder of the disk space to accommodate a 4Gb-ish swap space, > for crash dumps. The swap is placed at the end of the disk, since > that's the slowest part to access. >=20 > -Kurt >=20 Ah, I see I'm completely overthinking it. =46rom your script: gpart bootcode -p /boot/zfsboot ${disk} dd if=3D/boot/zfsloader of=3D/dev/${disk}a bs=3D512 oseek1024 conv=3Dnotrunc,sync That's what I was missing hence my silly layout. Sean --=-maQmYNqessROBPEk0Q5h Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAABAgAGBQJRJFajAAoJEBkJRdwI6BaHAKUH+wSn714n9/zEMLrFQ78AYiNH HpF+IPYThNp9E0/llLZTf5QAGYFiHPLZnok5/F5SBIbPeSNJVwnquRiiWmTld23E rohiyVaQgcrtrLDvTs2hthrY+jaF1+KCTRKPf+DlFjKKII8nXdsEe0VY7Z/wTAxZ O/eHmm+ttmaMReCL96mF3mvvRfTgiyOdF7YQ6A5pmpijqq/8fBHmPNOVbVdbXDTi hKgxEYllw8uk/4M2exLVmojj1LbRlS1/d1OsGYlrcn5VBTijZWaacQvwF+HuyWr0 UmeOfMX9aF1jSLYMSZbiAFv9gSG6qYxeMrTg8ns3gJAkL72B/77OWRzZJ/7OIKU= =V48Q -----END PGP SIGNATURE----- --=-maQmYNqessROBPEk0Q5h--