From owner-freebsd-questions@FreeBSD.ORG Thu Aug 31 19:31:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4892016A4DA for ; Thu, 31 Aug 2006 19:31:00 +0000 (UTC) (envelope-from efinleywork@efinley.com) Received: from postmaster.etv.net (postmaster.etv.net [208.14.190.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id E811743D49 for ; Thu, 31 Aug 2006 19:30:59 +0000 (GMT) (envelope-from efinleywork@efinley.com) Received: from work.efinley.com ([205.161.203.55] helo=elliotdevelop) by postmaster.etv.net with smtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GIsFd-000Kjk-88; Thu, 31 Aug 2006 13:30:58 -0600 Message-ID: <0b1301c6cd33$fb77dac0$37cba1cd@emerytelcom.com> From: "Elliot Finley" To: "David Robillard" References: <226ae0c60608311017j1a4bea9cg6dbaa12414d74716@mail.gmail.com> <0a7c01c6cd26$a76b5b80$37cba1cd@emerytelcom.com> <226ae0c60608311108l263442b6j122835ba73ff645c@mail.gmail.com> Date: Thu, 31 Aug 2006 13:30:18 -0600 Organization: Emery Telcom MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Cc: Jonathan McKeown , FreeBSD Questions Mailing List Subject: Re: Mirroring: gvinum or gmirror? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Elliot Finley List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 19:31:00 -0000 ----- Original Message ----- From: "David Robillard" To: "Elliot Finley" Cc: "Jonathan McKeown" ; "FreeBSD Questions Mailing List" Sent: Thursday, August 31, 2006 12:08 PM Subject: Re: Mirroring: gvinum or gmirror? > On 8/31/06, Elliot Finley wrote: > >> ad0: 4112MB at ata0-master UDMA33 > >> ad3: 4028MB at ata1-slave UDMA33 > >> > > > Then make sure you install FreeBSD on the bigger one (i.e. here that > > > would be ad0) then setup gmirror. If you do the oposite, you will have > > > a "Consumers too small" error when you try to bring the mirror > > > together. > > > > I could be wrong, but that seems backwards. > > I know, that's also what I thought before I had the problem. (hence > the Tip of Day!) > > It's quite easy to understand when you think about it. Let's say we > have the same disk drives as above in which ad0 is bigger then ad3. > > So you install the OS on the smaller ad3 disk first. Then you setup > gmirror on the bigger disk ad0. You then dump(8) the OS from ad3 onto > the broken mirror gm0 which is made up of ad0. Next you reboot on gm0 > (hence on ad0). You clear ad3 which is not used anymore and try to > `sudo gmirror insert gm0 /dev/ad3` = WRONG! Well yes, if you do it this way, you are correct. Why not just install the OS on the smaller drive, skip the dump step and just use the installed drive as the first drive in your mirror. That's how I've been doing it and it works great. I've got a write-up of the steps required to do this if you or anyone else needs them. I also routinely disconnect one of the drives in my mirror before a major upgrade to the OS or ports so that if I mess it up, I can boot back to the previous state. I have a write-up of the steps needed to do this remotely over ssh (again, if you or anyone else needs them). Elliot