From owner-freebsd-stable@FreeBSD.ORG Sun Jun 25 18:13:43 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 500FC16A401 for ; Sun, 25 Jun 2006 18:13:43 +0000 (UTC) (envelope-from mikej@rogers.com) Received: from smtp105.rog.mail.re2.yahoo.com (smtp105.rog.mail.re2.yahoo.com [206.190.36.83]) by mx1.FreeBSD.org (Postfix) with SMTP id AF27143D5D for ; Sun, 25 Jun 2006 18:13:40 +0000 (GMT) (envelope-from mikej@rogers.com) Received: (qmail 48533 invoked from network); 25 Jun 2006 18:13:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=cyQTBXCkekvxLOst2KhRx6/pJuCp6CHA+ADmmHUeVpBahqkCcyKypWCIg/UDtl0xoS8OOI7Q80Y+Z+54VRPBuhDtl/5rm38GBAlGfsqp0HOj1MuenztoFfMitbvARDUP6UJuu5KIgCbbQGFt2HNHD6Fm1QBuRqFU5nb8WWA5G2k= ; Received: from unknown (HELO ?70.31.50.218?) (mikej@rogers.com@70.31.50.218 with plain) by smtp105.rog.mail.re2.yahoo.com with SMTP; 25 Jun 2006 18:13:39 -0000 Message-ID: <449ED26B.20706@rogers.com> Date: Sun, 25 Jun 2006 14:14:03 -0400 From: Mike Jakubik User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Matthew Seaman References: <449ECDD1.8070407@sh.cvut.cz> <449ED0BF.90001@infracaninophile.co.uk> In-Reply-To: <449ED0BF.90001@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: =?ISO-8859-1?Q?V=E1clav_Haisman?= , freebsd-stable@freebsd.org Subject: Re: Setting up GEOM mirror X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 18:13:43 -0000 Matthew Seaman wrote: > Václav Haisman wrote: > >> Hi, >> I want to set up GEOM mirror of whole existing partitioned 250G disk. >> The procedure described at >> seems to be rather long/complicated. I thought about using this: >> >> # Boot into single user, then... >> # First change fstab. >> cp -p /etc/fstab /etc/fstab.orig >> sed -e 's/dev\/ad0/dev\/mirror\/gm0/g' /etc/fstab >> # Then create the mirror. >> gmirror label -v -b split -s 2048 mymirror ad0 >> gmirror insert -h mymirror ad2 >> # Reboot into the new World order. >> shutdown -r now >> >> Will this work or is it wrong? I appreciate any comment to this. >> > > http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > The problem with these instructions is that they don't take in to account the last sector. You may very well end up writing the metadata on the file system.