From owner-freebsd-stable@FreeBSD.ORG Fri Jul 22 00:57:48 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 111AC16A48E for ; Fri, 22 Jul 2005 00:57:48 +0000 (GMT) (envelope-from craig@feniz.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB1BD43DC4 for ; Fri, 22 Jul 2005 00:57:21 +0000 (GMT) (envelope-from craig@feniz.gank.org) Received: by ion.gank.org (mail, from userid 1001) id C80AC2AA51; Thu, 21 Jul 2005 19:57:17 -0500 (CDT) Date: Thu, 21 Jul 2005 19:57:15 -0500 From: Craig Boston To: "Eli K. Breen" Message-ID: <20050722005715.GA67419@nowhere> Mail-Followup-To: Craig Boston , "Eli K. Breen" , freebsd-stable@freebsd.org References: <42DFF582.1050406@unixforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42DFF582.1050406@unixforge.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org 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: Fri, 22 Jul 2005 00:57:49 -0000 On Thu, Jul 21, 2005 at 12:20:34PM -0700, Eli K. Breen wrote: > dd (Slow, not usefull if the hardware isn't identical?) I use dd a lot for this type of thing and don't see how it could possibly be slower than any other method that duplicates the entire raw drive. Make sure to give it a "bs=1m" option as reading/writing the disk in 512 byte chunks is a lot slower than larger blocks. If your disks have a lot of free space, copying the filesystem using dump/restore can be faster, but it's not an *exact* bit-for-bit copy. The resulting filesystem is functionally equivalent though, so it's probably the best way for duplicating UFS(2) filesystems. You do have to partition manually, but you would probably want to do that if the new drive was a different size anyway. Craig