From owner-freebsd-fs@FreeBSD.ORG Thu Mar 8 13:13:56 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21F4D106564A for ; Thu, 8 Mar 2012 13:13:56 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: from mail.ultra-secure.de (mail.ultra-secure.de [78.47.114.122]) by mx1.freebsd.org (Postfix) with ESMTP id 708C58FC13 for ; Thu, 8 Mar 2012 13:13:54 +0000 (UTC) Received: (qmail 31583 invoked by uid 89); 8 Mar 2012 13:13:48 -0000 Received: by simscan 1.4.0 ppid: 31575, pid: 31580, t: 0.5370s scanners: attach: 1.4.0 clamav: 0.97.3/m:54/d:14611 Received: from unknown (HELO suse2.iptech.internal) (rainer@ultra-secure.de@212.71.117.70) by mail.ultra-secure.de with ESMTPA; 8 Mar 2012 13:13:48 -0000 Date: Thu, 8 Mar 2012 14:13:47 +0100 From: Rainer Duffner To: Martin Simmons Message-ID: <20120308141347.50b06ea5@suse2.iptech.internal> In-Reply-To: <201203081135.q28BZmVJ027236@higson.cam.lispworks.com> References: <4F583C63.60809@contactlab.com> <201203081135.q28BZmVJ027236@higson.cam.lispworks.com> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: FreeBSD 9 and gmirror /geom raid X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2012 13:13:56 -0000 Am Thu, 8 Mar 2012 11:35:48 GMT schrieb Martin Simmons : > >>>>> On Thu, 08 Mar 2012 05:58:11 +0100, Davide D'Amico said: > > > > Il 08/03/12 00:02, Freddie Cash ha scritto: > > > On Wed, Mar 7, 2012 at 6:14 AM, Davide D'Amico > > > wrote: > > >> Hi, I have a server DELL R210 with two sata drives: > > >> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 > > >> ada0: ATA-8 SATA 2.x device > > >> ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > > >> ada0: Command Queueing enabled > > >> ada0: 238418MB (488281250 512 byte sectors: 16H 63S/T 16383C) > > >> ada0: Previously was known as ad4 > > >> ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 > > >> ada1: ATA-8 SATA 2.x device > > >> ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > > >> ada1: Command Queueing enabled > > >> ada1: 238418MB (488281250 512 byte sectors: 16H 63S/T 16383C) > > >> ada1: Previously was known as ad6 > > >> > > >> Previously (8.x) - when I didn't use a hw raid - I used to > > >> install freebsd in a drive (i.e. ad4), boot from it and then: > > >> > > >> # sysctl kern.geom.debugflags=16 > > >> # gmirror label -v -b round-robin data ad4 > > >> # gmirror insert data ad6 > > >> // Modification to /etc/fstab > > >> // reboot > > >> > > >> How could accomplish to the same task with 9.0-RELEASE? > > > http://people.freebsd.org/~rse/mirror/ > > > > > Hi Freddie, and thanks for your link. > > > > I followed that procedure until 9.0-RELEASE but the new installer > > uses GPT as the default partition schema, which seems incompatible > > with gmirror. > > > > I noticed in the handbook > > (http://www.freebsd.org/doc/handbook/geom-mirror.html): > > "The following procedure is also incompatible with the default > > installation settings of FreeBSD 9./X/which use the newGPTpartition > > scheme. GEOM will overwriteGPTmetadata, causing data loss and > > possibly an unbootable system." > > > > So I think that the old procedure is no more useful. > > I think the problem with the old procedure is that it mirrors the > whole disk. This fails because both gmirror and GPT store data in the > last few blocks of the disk. > > If you create gmirror(s) at the GPT partition level instead, then it > should be safe. maybe like this: http://blather.michaelwlucas.com/archives/1071 Haven't tried it, but I may need it at some point...