From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 13:51:18 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 2E1561065671; Mon, 25 Aug 2008 13:51:18 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) Received: from smtp.ulb.ac.be (mxout.ulb.ac.be [164.15.128.111]) by mx1.freebsd.org (Postfix) with ESMTP id 509508FC08; Mon, 25 Aug 2008 13:51:17 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkoBAIJMskikD30E/2dsb2JhbAAItR2Baw Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.ulb.ac.be with ESMTP; 25 Aug 2008 15:41:08 +0200 From: Julien Cigar To: Wojciech Puchar In-Reply-To: <20080825143507.A9361@wojtek.tensor.gdynia.pl> References: <48B186B3.4030803@stupar.homelinux.net> <20080825143507.A9361@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=utf-8 Date: Mon, 25 Aug 2008 17:50:41 +0200 Message-Id: <1219679441.2701.19.camel@frodon.be-bif.ulb.ac.be> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 8bit Cc: Ivan Voras , 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 13:51:18 -0000 Stupid question: can't you use growfs on the existing gmirror (after replace /dev/oneofdisk, resync, replace /dev/otherdisk, resync) ? Is it mandatory to create a *new* gmirror ? Thanks On Mon, 2008-08-25 at 14:37 +0200, Wojciech Puchar wrote: > >> 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. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: jcigar@ulb.ac.be @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52