From owner-freebsd-questions@freebsd.org Thu Sep 29 04:14:40 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BB6EC00461 for ; Thu, 29 Sep 2016 04:14:40 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 09BCC13B4 for ; Thu, 29 Sep 2016 04:14:39 +0000 (UTC) (envelope-from roberthuff@rcn.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=UPOfJ2Xy c=1 sm=1 tr=0 a=k07S35oj1O1ZFC27G8aSog==:117 a=k07S35oj1O1ZFC27G8aSog==:17 a=IkcTkHD0fZMA:10 a=sfndV9UqyVujLf2vpwwA:9 a=QEXdDO2ut3YA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: cm9iZXJ0aHVmZkByY24uY29t Authentication-Results: smtp02.rcn.cmh.synacor.com header.from=roberthuff@rcn.com; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.mail=roberthuff@rcn.com; spf=neutral; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.user=roberthuff; auth=pass (PLAIN) Received-SPF: neutral (smtp02.rcn.cmh.synacor.com: 209.6.197.105 is neither permitted nor denied by domain of rcn.com) Received: from [209.6.197.105] ([209.6.197.105:1091] helo=[192.168.1.117]) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.23.54417 r(Core:3.6.23.0)) with ESMTPA id 59/CE-61435-7259CE75; Thu, 29 Sep 2016 00:14:31 -0400 Subject: Re: Clone a FBSD system with something in the likes of ghost To: freebsd-questions@freebsd.org References: From: Robert Huff Message-ID: <57EC9527.7020202@rcn.com> Date: Thu, 29 Sep 2016 00:14:31 -0400 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 04:14:40 -0000 On 9/28/2016 10:43 PM, Alejandro Imass wrote: > I have a beautiful running server (dozens of jails and intricate > configuration) on a single small and aging hard drive. I bought 2 new hard > drives and want to migrate to a ZFS mirror. > > Pardon my ignorance but would there be a way to just copy my system from > the old drive to the new ZFS array? > > I was thinking of something like this: 1) install the two new drives in the > server and boot with old drive via an USB enclosure. 2) Create a booteable > ZFS array and somehow copy an identical image of my current system onto the > array. > > Am I dreaming or are there actual ways of doing this? I really don't want > to re-install and configure everything. Just want to move an identical copy > of my system to the new hard drives on a ZFS mirror. The canonical - and correct - method involves dump piped to restore; there may be an example in the Handbook. Respectfully, Robert Huff