From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 06:41:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFAED106568C for ; Wed, 1 Oct 2008 06:41:23 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id B36FB8FC1B for ; Wed, 1 Oct 2008 06:41:22 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m916fIoC007340; Wed, 1 Oct 2008 08:41:18 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m916fIgY007337; Wed, 1 Oct 2008 08:41:18 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 1 Oct 2008 08:41:18 +0200 (CEST) From: Wojciech Puchar To: Andrew Falanga In-Reply-To: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> Message-ID: <20081001083751.M7317@wojtek.tensor.gdynia.pl> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "freebsd-questions@freebsd.org" Subject: Re: Setting up gmirror X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2008 06:41:24 -0000 > Hi, > > I've just finished setting up a new web server, and if I get my DNS > stuff correct hopefully an e-mail server too, for my church. > Originally, the intention was to use RAID1 on the MOBO. However, the do not ever use "hardware" RAID0/1/10 on motherboard. first it's not hardware, it's purely software, second there is nothing to be accelerated by hardware on RAID0/1/10. use gmirror/gstripe/gconcat everywhere. > make any mention of gmirror(8). It seems like gmirror is rather easy gmirror is easy to set up and works excellent. > Identical drive models so their sizes are the same. Is this the > command, from gmirror(8), the one I'll want to use? > > Create a mirror on disk with valid data (note that the last sector of the > disk will be overwritten). Add another disk to this mirror, so it will > be synchronized with existing disk: > > gmirror label -v -b round-robin data da0 add -s like -s 1048576 to prevent splitting one request on 2 disks. except this - all right. > gmirror insert data da1 > Though in my case, da0 and da1 will be ad4 and ad5. This seems to be > the one I'm looking for, I'm just scared of wiping out more than I > bargain for. assuming you already have system on say ad4, make gmirror on ad5, copy everything, make sure it's bootable (bsdlabel -B ...), boot from it, if all works, add ad4 to the mirror effectively overwriting things. add in loader.conf vfs.root.mountfrom="ufs:mirror/dataa" - assuming your system is on partition a of your mirror. HINT - you DO NOT have to mirror whole drive. you may mirror a partition(s), living some of them unmirrored.