From owner-freebsd-geom@FreeBSD.ORG Thu Sep 13 00:22:57 2007 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 DA0A516A419 for ; Thu, 13 Sep 2007 00:22:57 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext11.nokia.com (smtp.nokia.com [131.228.20.170]) by mx1.freebsd.org (Postfix) with ESMTP id 57D2013C45D for ; Thu, 13 Sep 2007 00:22:56 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh108.NOE.Nokia.com (esebh108.ntc.nokia.com [172.21.143.145]) by mgw-ext11.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l8CNwKJC018050; Thu, 13 Sep 2007 02:58:21 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh108.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 02:58:20 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 07:58:17 +0800 Received: from [172.30.10.65] ([172.30.10.65]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 09:58:16 +1000 Message-ID: <46E87D0C.5000300@nokia.com> Date: Thu, 13 Sep 2007 09:58:04 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: ext n j References: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> In-Reply-To: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Sep 2007 23:58:16.0129 (UTC) FILETIME=[C91CCB10:01C7F598] X-Nokia-AV: Clean Cc: freebsd-geom@freebsd.org Subject: Re: Gmirror on a partition of a slice 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: Thu, 13 Sep 2007 00:22:57 -0000 Hi, I didn't think it was possible to mirror just a partition (as opposed to a slice). As far as I know, you can mirror a whole disk or a slice, but not a BSD partition. Has this changed? Why don't you just mirror the slice? Regards, Dave ext n j wrote: > Hello, > > I've originally sent this mail to -questions, but -geom is probably > the better place to ask for pointers to any help regarding installing > gmirror on a partition of a slice. Here's the problem. > > Using http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > and http://people.freebsd.org/~rse/mirror/ as pointers, as well as > handbook and man pages, I tried to set up gmirror on a partition of a > slice the following way (using identical 1Gb disks da0 & da1): > > 1) install FreeBSD on 1st disk /dev/da0s1a > > 2) create slice on 2nd disk fdisk -BI /dev/da1 > > 3) bsdlabel -w -B /dev/da1s1 > > 4) edit BSD label to create a ~500 Mb partition for gmirror > a: 1000000 16 4.2BSD 2048 16384 8 > c: 2097120 0 unused 0 0 # "raw" part > > 5) gmirror label -h -n -b round-robin gm0 /dev/da1s1a to create mirror > > 6) fdisk -BI /dev/mirror/gm0 to create a slice in gm0 > > 7) bsdlabel -w -B /dev/mirror/gm0s1 to create root partition > a: 995951 16 4.2BSD 2048 16384 8 > c: 995967 0 unused 0 0 # "raw" part > > 8) newfs, mount, dump/restore to /dev/mirror/gm0s1a, modify fstab, > loader.conf, create boot.config to boot off mirror > > 9) reboot > > ... and at that point I get "Not ufs" and "No /boot/loader". Any kind > of input, be it a link to some material on the web or a proper > sequence of command is much appreciated. I've googled a lot and > haven't found any examples/howtos/tutorials on how to set up what I'm > trying to do. > > Thanks, >