From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 12:37:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D6E61065687; Mon, 25 Aug 2008 12:37:32 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6C8298FC16; Mon, 25 Aug 2008 12:37:30 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m7PCbNMa009386; Mon, 25 Aug 2008 14:37:23 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m7PCbNnQ009383; Mon, 25 Aug 2008 14:37:23 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 25 Aug 2008 14:37:23 +0200 (CEST) From: Wojciech Puchar To: Ivan Voras In-Reply-To: Message-ID: <20080825143507.A9361@wojtek.tensor.gdynia.pl> References: <48B186B3.4030803@stupar.homelinux.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Cloning a gmirrored hard drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 12:37:32 -0000 >> Hi! >> >> My situation: I have a server with FBSD 7 installed with two 40 GB disks >> in RAID 1 (gmirror) config. >> Now I have noticed the lack of space on the drive so I am thinking to >> change these disks for two 160 GB. >> What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all.