From owner-freebsd-stable@FreeBSD.ORG Thu Jul 21 19:36:49 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F91316A41F for ; Thu, 21 Jul 2005 19:36:49 +0000 (GMT) (envelope-from asym@rfnj.org) Received: from mail.rfnj.org (ns1.rfnj.org [66.180.172.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDFCC43D92 for ; Thu, 21 Jul 2005 19:36:24 +0000 (GMT) (envelope-from asym@rfnj.org) Received: by mail.rfnj.org (Postfix, from userid 65534) id 1045A214; Thu, 21 Jul 2005 15:36:12 -0400 (EDT) Received: from megalomaniac.rfnj.org (ool-45736df1.dyn.optonline.net [69.115.109.241]) by mail.rfnj.org (Postfix) with ESMTP id 7324B195; Thu, 21 Jul 2005 15:36:11 -0400 (EDT) Message-Id: <6.2.1.2.2.20050721153501.0390a668@mail.rfnj.org> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 21 Jul 2005 15:37:13 -0400 To: "Eli K. Breen" , freebsd-stable@freebsd.org From: asym In-Reply-To: <42DFF582.1050406@unixforge.net> References: <42DFF582.1050406@unixforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on rfnj.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=20.0 tests=none autolearn=failed version=3.0.4 Cc: Subject: Re: Machine Replication X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 19:36:49 -0000 At 15:20 7/21/2005, Eli K. Breen wrote: >All, > >Does anyone have a good handle on how to replicate (read: image) a freebsd >machine from one machine to an ostensibly similar machine? > >So far I've used countless variations and combinations of the following: > >dd (Slow, not usefull if the hardware isn't identical?) >tar (Doesn't replicate MBR) >rsync (No MBR support) >Norton Ghost (Doesn't support UFS/UFS2?) >G4U (little experience with this) I've found a combination of dd + tar works great, as documented. Stick the new drive in the box to be duplicated, use dd on the first (forget how many) sectors to copy the mbr and partition tables over, then use a tar pipe to copy from one drive to the other, preserving all perms and so forth. Barring that, commercial single-disk duplicators aren't THAT expensive. Hell you could just use a cheap raid card to raid-1 mirror the drive, then yank it out and toss it in another box, which I've done on occasion when pressed.