From owner-freebsd-geom@FreeBSD.ORG Wed Apr 9 09:47:31 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 C3E6B106564A for ; Wed, 9 Apr 2008 09:47:31 +0000 (UTC) (envelope-from hv@tuebingen.mpg.de) Received: from mailgw.tuebingen.mpg.de (mailgw.tuebingen.mpg.de [192.124.27.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0E5E08FC38 for ; Wed, 9 Apr 2008 09:47:30 +0000 (UTC) (envelope-from hv@tuebingen.mpg.de) X-IronPort-AV: E=Sophos;i="4.25,628,1199660400"; d="scan'208,217";a="2200398" Received: from cmh.local (HELO tuebingen.mpg.de) ([10.3.6.123]) by mailgate.local with ESMTP; 09 Apr 2008 11:36:55 +0200 Received: from adminx.local (account henry.vogt [10.3.7.25] verified) by tuebingen.mpg.de (CommuniGate Pro SMTP 5.1.12) with ESMTPSA id 3346670 for freebsd-geom@freebsd.org; Wed, 09 Apr 2008 11:36:55 +0200 Message-Id: <76AE05BD-B56F-4811-8F6B-64A20F02CBF7@tuebingen.mpg.de> From: hv To: freebsd-geom@freebsd.org In-Reply-To: <47FBF2C1.4040806@quip.cz> Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 9 Apr 2008 11:36:55 +0200 References: <47FBE9CC.6050903@diff.org> <47FBF2C1.4040806@quip.cz> X-Mailer: Apple Mail (2.919.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 09:47:31 -0000 Am 09.04.2008 um 00:33 schrieb Miroslav Lachman: > Ferruccio Zamuner wrote: > >> # disklabel /dev/mirror/gm0 >> # /dev/mirror/gm0: >> 8 partitions: >> # size offset fstype [fsize bsize bps/cpg] >> a: 2089984 79 4.2BSD 0 0 0 >> b: 2910000 2090063 unused 0 0 c: =20 >> 463459122 63 unused 0 0 # "raw" part, =20 >> don't edit >> d: 10000000 5000063 4.2BSD 0 0 0 >> e: 10000000 15000063 4.2BSD 0 0 0 >> f: 15000000 25000063 4.2BSD 0 0 0 >> g: 423459058 40000063 4.2BSD 0 0 0 >> partition c: partition extends past end of unit >> disklabel: partition c doesn't start at 0! >> disklabel: partition c doesn't cover the whole unit! >> disklabel: An incorrect partition c may cause problems for standard =20= >> system utilities >> ... > > Backup all your data (if gm0 is not empty) and start with new =20 > standard label: > bsdlabel -w /dev/mirror/gm0 > Then open the label for editing: > bsdlabel -e /dev/mirror/gm0 > and add you new partitions, but don't touch the line with c: partition > ... why not just using gmirror to break and recreate the mirror, something =20= like this: 1) remove one disk (it's a mirror!) 2) recreate the label on this disk, newfs it and copy everything over =20= from the remaining mirror disk. 3) if you booted off the mirror, you need to adjust fstab to boot from =20= the disk 1) and reboot, then destroy the mirror. 4 recreate the mirror on the disk from 1), if you want to boot from =20 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. Regards -- Henry Vogt (Fon: ++49-7071-601-511, Fax: -826) Campus Max-Planck-Institute, Spemannstr. 32-41, T=FCbingen, Germany