From owner-freebsd-geom@FreeBSD.ORG Wed Apr 9 10:41:09 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 235AC1065675 for ; Wed, 9 Apr 2008 10:41:09 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id D7D8E8FC27 for ; Wed, 9 Apr 2008 10:41:08 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DDA2519E023; Wed, 9 Apr 2008 12:41:07 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 4267619E019; Wed, 9 Apr 2008 12:41:01 +0200 (CEST) Message-ID: <47FC9D51.5080107@quip.cz> Date: Wed, 09 Apr 2008 12:41:21 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: hv References: <47FBE9CC.6050903@diff.org> <47FBF2C1.4040806@quip.cz> <76AE05BD-B56F-4811-8F6B-64A20F02CBF7@tuebingen.mpg.de> In-Reply-To: <76AE05BD-B56F-4811-8F6B-64A20F02CBF7@tuebingen.mpg.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: disklabel and gm0 (gmirror) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2008 10:41:09 -0000 hv wrote: [...] > why not just using gmirror to break and recreate the mirror, something > like this: > > 1) remove one disk (it's a mirror!) > 2) recreate the label on this disk, newfs it and copy everything over > from the remaining mirror disk. > 3) if you booted off the mirror, you need to adjust fstab to boot from > the disk 1) and reboot, then destroy the mirror. > 4 recreate the mirror on the disk from 1), if you want to boot from > the mirror, re-adjust the fstab and reboot > 5) insert the second disk into the recreated mirror in 4) > > see gmirror(8), hope this helps. Yes, it is one of the possible ways of "backup all your data"... :) And another way could be - remove one drive (provider) from gmirror, data remains on it. Recreate the label on gmirror gm0 + newfs Copy data from previously removed provider Reinsert provider in to new gmirror [and do some steps with fstab + reboot if needed] I feel myself safer if data is backuped off the machine where I play with disks / newfs / gmirror etc. Miroslav Lachman