From owner-freebsd-questions@FreeBSD.ORG Tue Jan 23 05:36:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24DB216A400 for ; Tue, 23 Jan 2007 05:36:39 +0000 (UTC) (envelope-from jwm-freebsd-questions@sentinelchicken.net) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id D464213C4A7 for ; Tue, 23 Jan 2007 05:36:38 +0000 (UTC) (envelope-from jwm-freebsd-questions@sentinelchicken.net) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 23 Jan 2007 00:36:35 -0500 X-IronPort-AV: i="4.13,223,1167627600"; d="scan'208"; a="394826587:sNHT26753704" Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id IDR08470; Tue, 23 Jan 2007 00:36:32 -0500 (EST) Received: from 207-172-209-180.c3-0.bkl-ubr2.sbo-bkl.ma.static.cable.rcn.com (HELO sentinelchicken.net) ([207.172.209.180]) by smtp01.lnh.mail.rcn.net with SMTP; 23 Jan 2007 00:36:33 -0500 Received: (qmail 11760 invoked from network); 23 Jan 2007 05:36:32 -0000 Received: from unknown (HELO crichton.skepsi.net) (10.0.0.101) by aeryn.skepsi.net with SMTP; 23 Jan 2007 05:36:32 -0000 Received: (nullmailer pid 11757 invoked by uid 1000); Tue, 23 Jan 2007 05:36:31 -0000 Date: Tue, 23 Jan 2007 00:36:31 -0500 From: Jason Morgan To: Jonathan Horne Message-ID: <20070123053631.GD5367@sentinelchicken.net> References: <200701222211.05393.freebsd@dfwlp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701222211.05393.freebsd@dfwlp.com> User-Agent: Mutt/1.5.12-2006-07-14 X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A09020A.45B59EE1.0027,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 Cc: freebsd-questions@freebsd.org Subject: Re: gmirror setup 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: Tue, 23 Jan 2007 05:36:39 -0000 On Mon, Jan 22, 2007 at 10:11:05PM -0600, Jonathan Horne wrote: > i just set up my first gmirror raid1, and... it was really simple. too > simple. "ok... what did i skip or do wrong?", was my first thought. I thought the exact same thing. My previous experience was with vinum and, while it was great 4 years ago (props to grog), the simplicity of geom for simple setups was greatly needed. > i follow the doc from onlamp.com: > > http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=1 > > i did have one giant deviation tho, and im wondering if it really makes a > difference. the article depicts creating the gmirror immediately following > initial operating system install, but i did my example on a fully functioning > system. other than that, i have 2 identical disks, and things seem to be > working: > > castor# gmirror status > Name Status Components > mirror/gm0 DEGRADED ad0 > ad1 (33%) > > im sure im seeing less than the best performance since im using but a single > ide channel, but other than that, is it feasible to insert an identical disk, > and setup the gmirror at anytime a freebsd'er likes? Whether or not this is the *right* way to do it or not, I am not sure, but I can tell you that this is basically what I did on two servers about 6 months ago and I've had no problems. I even had a drive failure. When I plugged the new one in, it rebuilt correctly and has been running well since. > also, the doc didnt mention it, but if you do use to differing disk sizes, > obviously the smaller one should be ad0? and other than that, is there any > difference in setting up gmirror if the second disk is larger? Yes, make the first disk the smaller one. I don't believe there is a difference in setup, but the extra space on the second drive (say, ad2) will be wasted. Cheers, Jason