From owner-freebsd-geom@FreeBSD.ORG Wed Aug 16 12:52:00 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59A8116A509 for ; Wed, 16 Aug 2006 12:52:00 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from home.quip.cz (grimm.quip.cz [213.220.192.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D76C643D49 for ; Wed, 16 Aug 2006 12:51:59 +0000 (GMT) (envelope-from 000.fbsd@quip.cz) Received: from [192.168.1.2] (qwork.quip.test [192.168.1.2]) by home.quip.cz (Postfix) with ESMTP id 95B3279F8; Wed, 16 Aug 2006 14:51:57 +0200 (CEST) Message-ID: <44E314ED.3050305@quip.cz> Date: Wed, 16 Aug 2006 14:51:57 +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: cs, cz, en, en-us MIME-Version: 1.0 To: Danny Carroll References: <44E30387.5000203@dannysplace.net> In-Reply-To: <44E30387.5000203@dannysplace.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@FreeBSD.org Subject: Re: Mirror MBR? 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, 16 Aug 2006 12:52:00 -0000 Danny Carroll wrote: > Hello all. > > I had a question about gmirror. I am using Ralf S Engelschall's > mirroring solution at http://people.freebsd.org/~rse/mirror/ > > I used solution one, since I am sure that I will never be using any > different disks. It's a pizzabox server, and I don't expect data growth > so the current disks are fine. > > My main question is about the MBR. I dont see anywhere in the doc where > I should put a new boot record on the disk after doing: > > dd if=/dev/zero of=/dev/ad0 bs=512 count=79 > > Does this mean that the MBR from the mirror gets put onto this first disk? > > I ask because, I need to know what should happen when I need to replace > a disk. > > I know that after replacing the disk I should probably have to do > something like this: (Assume ad0 is the new disk) > > gmirror configure -a gm0 > gmirror insert gm0 /dev/ad1 > > But does that guarantee me that if ad0 fails, then I still have a > bootable system (assuming bios knows to boot of ad1). I am using gmirror from this HowTo: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html After disk replacement (done today), I made just two commands: gmirror forget gm0 gmirror insert -v gm0 ad6 First command is to "forget about old (not available) disk drive", the second adds new disk in to mirror gm0 and start autosynchronization (configure -a is default, so is not needed) Gmirror can boot from any drive, I think MBR is on both drives. Miroslav Lachman