From owner-freebsd-stable@FreeBSD.ORG Sun Sep 17 02:03:49 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 C992C16A403 for ; Sun, 17 Sep 2006 02:03:49 +0000 (UTC) (envelope-from jrhett@mail.meer.net) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70D8C43D4C for ; Sun, 17 Sep 2006 02:03:49 +0000 (GMT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.10/8.12.6) with ESMTP id k8H235j5039622; Sat, 16 Sep 2006 19:03:49 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k8H22p5T039718; Sat, 16 Sep 2006 19:02:51 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: (from jrhett@localhost) by mail.meer.net (8.13.3/8.13.3) id k8H22pSF039716; Sat, 16 Sep 2006 19:02:51 -0700 (PDT) (envelope-from jrhett) Date: Sat, 16 Sep 2006 19:02:51 -0700 From: Jo Rhett To: Michael Butler Message-ID: <20060917020251.GA38546@svcolo.com> Mail-Followup-To: Michael Butler , freebsd-stable References: <44FF4909.9020108@vwsoft.com> <44FF5B02.3090804@vwsoft.com> <44FF6FE6.4080602@protected-networks.net> <45091426.2090709@little-miracles.org> <45094021.70109@protected-networks.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45094021.70109@protected-networks.net> Organization: svcolo.com User-Agent: Mutt/1.5.9i Cc: freebsd-stable Subject: Re: gmirror RAID-1: rebuilding freezes machine 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, 17 Sep 2006 02:03:49 -0000 On Thu, Sep 14, 2006 at 07:42:25AM -0400, Michael Butler wrote: > I've been bitten by this - make sure that the first slice on the > mirrored partition does not start at offset 0. > > For example, this disk is mirrored on slice 2 .. > > imb@aaron:/home/imb> sudo bsdlabel mirror/gm0s2 > # /dev/mirror/gm0s2: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > ~ a: 524272 16 4.2BSD 2048 16384 32768 > ~ ^^^^^^^ > ~ c: 284655734 0 unused 0 0 # "raw" part .. > ~ d: 1048576 524288 4.2BSD 0 0 0 > ~ e: 1048576 1572864 4.2BSD 0 0 0 > ~ f: 282034294 2621440 4.2BSD 0 0 0 What is the problem with this? And how would one avoid it? I've got quite a few production systems with this: # bsdlabel mirror/gm0s1 # /dev/mirror/gm0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 4194304 0 4.2BSD 2048 16384 28552 b: 4194304 4194304 swap c: 586067202 0 unused 0 0 # "raw" part, don't edit d: 67108864 8388608 4.2BSD 2048 16384 28552 e: 188743680 75497472 4.2BSD 2048 16384 28552 f: 321826050 264241152 4.2BSD 2048 16384 28552 -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation