From owner-freebsd-questions@freebsd.org Fri Sep 30 00:37:47 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 490DFC00412 for ; Fri, 30 Sep 2016 00:37:47 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-ua0-x234.google.com (mail-ua0-x234.google.com [IPv6:2607:f8b0:400c:c08::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 11AF9E9 for ; Fri, 30 Sep 2016 00:37:47 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: by mail-ua0-x234.google.com with SMTP id l16so62385884uaa.1 for ; Thu, 29 Sep 2016 17:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yabarana-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lW+o0Kch4PQgGYT5aU3mSf/F8ezeOr17rPtS8uxpqM8=; b=UN/FHE5w62Pmo6nBRP4Ppd7Q6qz3v/W3OWuhEvSK/71AOaB75JXRKsk4S2qeEVcS02 melOtj3xQnFmRpHyd1g9doXUW/7z+mpPIHDkQNwbbF7sMvmAEZ9fkvQueujuAcDqX++b 3bP4xqrS8w80IRadXmgqOdyz4r5w3RQDwmPA0sn3AT6+A4oC4YCtnrECKT9Nrc8ZBR0W lDqZbVViXUzjIa6eQPQkf7zLTk4+GloppXzmHLQF9g0QeBjTW/2FNf2exJqp8T9Xmc8J 8zsISs4lnbaNSiOCXaqzQ+Hp0BDy2AjHHEhbXLnz3mApewRiMNneCkx7bb2Z8oJSi2vI TVlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lW+o0Kch4PQgGYT5aU3mSf/F8ezeOr17rPtS8uxpqM8=; b=HJN5K3rdH8546hF3KgDyhuajA8oi/eHAc5nVoA2KOZh2koKUQsPn5Ip+UjkZBdojXk P8ePKzXwYFB7XeZC4I9MSA1mLvr8WTui7lpUGzu+pH2pmurgugWmX8hHuvgwX7lIJXPU /rM524QkYyExZjI/U/0O2np87uKEwcPLVHg3E7YjeHJHqujzT4ogPbgYSW7LDA2AjGG1 WOGJr8Ou5VPF238R1fIi4jnFwQM4rsnfA6+xONsYjzquRauNp0gc9X8wofO8xmJ5/h8j 0NxrX9z/Vz2F4gJxaAgpLzZPwZYhxSLtAa4ccHu/eyq1CkxLSQzbjxmdeO4Hg88+QVDw n7vQ== X-Gm-Message-State: AA6/9RmWXCA0JaaQ7Ff/rFXkx2DWopNcmTI/k8YuZmt+vUuOwbUTfa3CT/Aj6Z4Y5zH/qWzskz5nkT7M1GLafg== X-Received: by 10.159.48.135 with SMTP id j7mr3286527uab.171.1475195866007; Thu, 29 Sep 2016 17:37:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.139.130 with HTTP; Thu, 29 Sep 2016 17:37:45 -0700 (PDT) In-Reply-To: References: <57EC9527.7020202@rcn.com> From: Alejandro Imass Date: Thu, 29 Sep 2016 20:37:45 -0400 Message-ID: Subject: Re: Clone a FBSD system with something in the likes of ghost To: Warren Block Cc: Robert Huff , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Fri, 30 Sep 2016 00:37:47 -0000 On Thu, Sep 29, 2016 at 1:10 AM, Warren Block wrote: > > On Thu, 29 Sep 2016, Robert Huff wrote: > >> 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 h= ard >>> drives and want to migrate to a ZFS mirror. >>> >>> Pardon my ignorance but would there be a way to just copy my system fro= m >>> 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 bootea= ble >>> 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 wa= nt >>> 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 rest= ore; there may be an example in the Handbook. > > > I have not tried it, but I think restore(8) should work when writing to a= ZFS system. > > So dump(8) on the original UFS piped to restore(8) on ZFS, presumably in = a dataset or multiple datasets. > > http://www.wonkity.com/~wblock/docs/html/backup.html > > After it is on ZFS, dump(8) cannot be used, but zfs send and zfs recv are= similar. Or rsync, or tar, or clonehd, or other things. The options with= them are the trick. It takes a lot to get rsync to make a serious copy of= a non-trivial filesystem with links and flags. Thanks for your suggestions! I will look into dump and restore. Thanks again! Alejandro Imass