From owner-freebsd-questions@FreeBSD.ORG Thu Feb 27 06:03:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ADC06275 for ; Thu, 27 Feb 2014 06:03:15 +0000 (UTC) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 675981A3D for ; Thu, 27 Feb 2014 06:03:15 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 8EF0F65F; Thu, 27 Feb 2014 01:03:00 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute2.internal (MEProxy); Thu, 27 Feb 2014 01:03:00 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=f-m.fm; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= kzqjlU1o8fLJsQ8XTGRcE2pMkNM=; b=ErlQffsMn3dTLH98kezZA/Y+/rxylsUE qKdAr5CUjwuoLQLiyp1K8hamFo8z1Z7hfhGduvFseq3xlTDRRcvbVoaAK5x2p6JA smUcufj9mnW3CpO1GoEuEFH82S0svzQEg4RERvCcrD6ILidV14Su7iAisHyyfY2a 5jH7WTenZtY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=kzqjlU1o8fLJsQ8XTGRcE2pMkNM=; b=u37 197BjRE9v/d3DpdKxC0kXvzxg/frhu9HXDP1dVpcEluTQ4XuFZ72n8YVtzYlpQRs V+o9DAhH8mySUP1F9t5F1dreXu2bZ6eLgbA0TRcc5i6OzX5NuvucvHg532jJfG1W hPQj+tYebHtf6Fa0viHrM4XvW0vPi4tZbAXfcG0k= Received: by web4.nyi.mail.srv.osa (Postfix, from userid 99) id AD175105330; Thu, 27 Feb 2014 01:02:59 -0500 (EST) Message-Id: <1393480979.30572.88371385.2463FFA1@webmail.messagingengine.com> X-Sasl-Enc: qqmToi9OX613hESRCveIVLxLaI6THcqHMBIYP8ul3fAn 1393480979 From: Ross Penner To: Darren Pilgrim , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-4527a23f In-Reply-To: <53092660.1050004@bluerosetech.com> References: <1393099869.20690.86558389.02245411@webmail.messagingengine.com> <53092660.1050004@bluerosetech.com> Subject: Re: Fresh installation on top of a old system in ZFS Date: Wed, 26 Feb 2014 22:02:59 -0800 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 06:03:15 -0000 On Sat, 22 Feb 2014, at 02:36 PM, Darren Pilgrim wrote: > On 2/22/2014 12:11 PM, Ross Penner wrote: > > I'm hoping to get some guidance on the best way to create a fresh > > FreeBSD install using my existing drives partitioned with ZFS. > > > > The old set up is with two drives of different sizes. The smaller one is > > mirrored with a partition of equal size on the larger drive to create > > one pool which is the root and boot partition. A second pool is made of > > the remaining space on the larger drive mounted at /tank/ > > > > I booted the USB image of FreeBSD 10 and I couldn't see an obvious way > > to use my old partitions as the base for the new system. Any advice that > > could be offered would be really appreciated! > > What does your ZFS dataset structure look like? If your root is not the > base dataset, you can install the new OS in parallel, change the bootfs > and mountpoints and boot into the new OS leaving the old one untouched. > For example, on a system that's been upgraded from 9.x to 10.x: > > # zfs list -o name,mountpoint > NAME MOUNTPOINT > tank none > tank/home /home > tank/logs /var/log > tank/mail /var/mail > tank/osroot9 none > tank/osroot9/tmp none > tank/osroot9/usr none > tank/osroot9/usr/local none > tank/osroot9/usr/obj none > tank/osroot9/usr/src none > tank/osroot9/var none > tank/osroot9/var/empty none > tank/osroot9/var/tmp none > tank/osroot10 / > tank/osroot10/tmp /tmp > tank/osroot10/usr /usr > tank/osroot10/usr/local /usr/local > tank/osroot10/usr/obj /usr/obj > tank/osroot10/usr/src /usr/src > tank/osroot10/var /var > tank/osroot10/var/empty /var/empty > tank/osroot10/var/tmp /var/tmp > tank/ports /usr/ports > tank/db/postgresql /usr/local/pgsql > tank/samba /samba > tank/www /usr/local/www > I think I need to add some clarity about my setup. I had a mini-itx all in one system that died on me. I bought a replacement system and attached the same harddrives. The system boots and the ZFS filesystems are available. I have two zpools. zroot which is mounted root and tank which was mounted at /tank. I'm trying to follow this (http://freebsdwiki.net/index.php/ZFS,_booting_from) guide, but my importing my zpools instead of creating them. The pools function fine when I boot off the harddrives, but I can't seem to import them from the shell. 'zpool import -f -o altroot=/mnt zroot' returns errors saying that none of the file systems are loaded. The same happens for tank. Can anybody offer any insight? Thanks