From owner-freebsd-questions@FreeBSD.ORG Thu Jan 9 15:22:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24518CB1 for ; Thu, 9 Jan 2014 15:22:20 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CCEA91FC0 for ; Thu, 9 Jan 2014 15:22:19 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id s09FM5s2024761; Thu, 9 Jan 2014 08:22:05 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id s09FM5ih024758; Thu, 9 Jan 2014 08:22:05 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 9 Jan 2014 08:22:05 -0700 (MST) From: Warren Block To: Olivier Nicole Subject: Re: Server Hang In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 09 Jan 2014 08:22:05 -0700 (MST) Cc: eras mus , "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 15:22:20 -0000 On Thu, 9 Jan 2014, Olivier Nicole wrote: >> Is it possible to take such a mirror copy of such a hard disk so that i >> can replace it as a hot swap. I request all of your expertise. How to do >> hot swap?please shed some light on it. > > Not only it's possible, but it is really simple, just tar(1) each file > system one at a time to the new hard disk. But the disk must be partitioned and formatted first, and bootcode installed. For the partition information, gpart's backup and restore commands will help. This may also be useful, particularly the part on MBR: http://www.wonkity.com/~wblock/docs/html/disksetup.html tar will work, but dump and restore will get every attribute. This article talks about dump/restore with examples, and other options: http://www.wonkity.com/~wblock/docs/html/backup.html