From owner-freebsd-stable@FreeBSD.ORG Mon Mar 26 13:38:58 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C6E616A401 for ; Mon, 26 Mar 2007 13:38:58 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 1125E13C48A for ; Mon, 26 Mar 2007 13:38:57 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7cee.q.ppp-pool.de [89.53.124.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id 14F0D128829; Mon, 26 Mar 2007 15:07:51 +0200 (CEST) Received: from [192.168.16.3] (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id DA33F3F4E8; Mon, 26 Mar 2007 15:07:41 +0200 (CEST) Message-ID: <4607C59B.6000901@vwsoft.com> Date: Mon, 26 Mar 2007 15:07:39 +0200 From: Volker User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Joe Kelsey References: <4606E163.9000506@zircon.seattle.wa.us> In-Reply-To: <4606E163.9000506@zircon.seattle.wa.us> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: stable@freebsd.org Subject: Re: gmirror Issues 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: Mon, 26 Mar 2007 13:38:58 -0000 On 12/23/-58 20:59, Joe Kelsey wrote: > I am having a real hard time with gmirror. > I recently bought two new 400G SATA disks and I want to mirror them. I > think I am following the directions, but I am not sure. > > I generally do the following steps: > > edit /boot/loader.conf to add geom_mirror_load. > reboot into single-user > gmirror label -v -b round-robin gm0 ad4s1 ad6s1 > bsdlabel -w mirror/gm0 > bsdlabel -e mirror/gm0 > newfs mirror/gm0a Joe, check what `bsdlabel mirror/gm0' gives right after editing the partitioning information and re-check that info after a reboot. There might be an issue... Check if bsdlabel complains about partition c not being sized well. Could you please try to `gmirror unload' before doing anything and a `gmirror load' right after labeling the mirror? Or just try a reboot after labeling the mirror. If that does make a difference, it's a sign I've been right with my last week's experience. If you're still getting into trouble, you may want to zero out the first sectors of the disk using `dd'. When creating a 400 gig mirror, it will take a long time for the mirror to complete and you're mirroring waste in the first step. I would recommend to create the mirror with just one consumer, create the partitions, newfs and then insert the 2nd consumer into the mirror. Just to make sure, I would check the status of the mirror using `gmirror status' and wait until its state is COMPLETE before doing anything else. BTW, do you really want to use a dangerously dedicated disk (by using gm0X) without any slices? HTH, Volker