From owner-freebsd-questions@freebsd.org Sun Oct 2 20:20:52 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 1B6A4AF2E72 for ; Sun, 2 Oct 2016 20:20:52 +0000 (UTC) (envelope-from lokadamus@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 873BE20D for ; Sun, 2 Oct 2016 20:20:51 +0000 (UTC) (envelope-from lokadamus@gmx.de) Received: from [192.168.0.143] ([95.91.224.170]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MSuYT-1bR78R3pZt-00RpUD for ; Sun, 02 Oct 2016 22:20:43 +0200 Subject: Re: Clone a FBSD system with something in the likes of ghost References: <57EC9527.7020202@rcn.com> Cc: FreeBSD Questions From: "lokadamus@gmx.de" Message-ID: Date: Sun, 2 Oct 2016 22:20:41 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:OwU2H3jMI/dRmCBqtGWJgqe0fEqag7tlqODvSQ4DVWVxL3mIRtV 9/2+L5te5yht5aivRJeNXy58Kha0osPHbkNMBsOQ4otqcb0G04yx/ZEeAyMWq/TO+AZuxnw DWHdb3UQJ/H0qEDK5VeOtIrMmWDKmRdw0aBGfCoQhg3heMC2cYUtivFcqWiBNFY5/DZd+/T JwlM4CDintriIGM4zsmhw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Rn1lIX2oNts=:mG71SaQY7A7KyA1Ubgsf8o 4v7hd7KnkitmUFzw29aKe0gqE2ms5eY4VqbB0svBu0W9se+lIvUru+GGfkQy+yWgU7iVsu1Oc qKNqmxrfVepR437eG2Hlr2P9e2dDjdFi7RWulU/2jTLBg3AJSaWghZl6cAtQbJ3cClNkabETy BKE4RFEfLoMapIzZxap2k6tX3ckEnH8Sz1YDh4PT5gFsYvbgwMvOZrH44AS8Nz3UyPQtb86tB SbgAfVQDmwe3aJ1jWbNiaLcb42c1sYB6VAlQ3IM7ktJl4Twyg+vKnQ+4uGyHuVjKOhBQDja3Y /w+zEWZ5SiVu0h8sG8pr9urXYs16XHiB2+MEOpm1+hmFkpc8CtheG6MNlRfqFo875b1aqDkbf 7l4kpPZIaeinyyuXiRLR7cYPINZKN3Zu4wMk9BmFpw3Xpy8LjRu46BB0g2cUlETkHAqNBw8/w v4NR+FloBWXoKRGmh8VxXX0do1fRg/IJQ5Y/xnGGZmZx0N8MVUhkcIOsOuxaQZGq0htqWi+zs UOQG68QdVWKXVRxvuzNudLkiqtwJKSA7X/x1jqUYnSiWYEwedk7Za73D2nVsb6TxQSicsoVr9 h52FRJXwwbTI2axK1g9R48azMXSbnVIO2C6Duq8r6+A1kOH8cM2MQwIoMZNGvbcFEGY+eC8cY XREb/85t1AkswllAUx44sK+3RvksJzvNBibYOqzU8vok+U42q4ruFYGk0+wF5GJbns1EOMF6z +RtTOKsij9BlcXOH2Qmfu/QBNTYu2Z6qV0qy04uoZYe71mNKs4IJUuoP8vkOMVpXw3N/vgM5+ FQy+smS 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: Sun, 02 Oct 2016 20:20:52 -0000 At this point there are some similar products like norton ghost. One is http://www.netbsd.org/gallery/products.html#g4u The problem is always, that is can't boot, when it come from a hdd to a ssd. http://www.cyberciti.biz/datacenter/5-awesome-open-source-cloning-software/ and looking at goole for "clone disk" greetings, there are more things, that can but not must help you. ;( On 10/02/16 20:12, JD wrote: > By clone, you mean create a new disk with identical > content to the cloned disk? Including the boot blocks > of the cloned disk? > If so, dump and restore will only perform like a full backup. > The target (copy-to) disk will not be bootable. > If you want it bootable, then there is a simlpe procedure > 1. Obtain a new disk with sufficient capacity as close as possible > to size of the source disk. Not less than, though!! > 2. dd if= of=/dev/..... i.e. the new disk> > bs=128M conv=notrunc conv=fdatasync > > When finished, without error, > the new disk will be a bootable mirror of the original. > > HTH > > > On Thu, Sep 29, 2016 at 6:37 PM, Alejandro Imass > wrote: > >> 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 >> 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. >>> >>> >>> 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 >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions- >> unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >