From owner-freebsd-stable@FreeBSD.ORG Thu Sep 14 20:27:05 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 E4C9316A403 for ; Thu, 14 Sep 2006 20:27:05 +0000 (UTC) (envelope-from jared@little-miracles.org) Received: from mail-ihug.icp-qv1-irony1.iinet.net.au (ihug-mail.icp-qv1-irony1.iinet.net.au [203.59.1.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35EC343D45 for ; Thu, 14 Sep 2006 20:27:04 +0000 (GMT) (envelope-from jared@little-miracles.org) Received: from 203-206-67-174.dyn.iinet.net.au (HELO eternity.thanhandjared.net) ([203.206.67.174]) by mail-ihug.icp-qv1-irony1.iinet.net.au with ESMTP; 15 Sep 2006 04:27:03 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.09,166,1157299200"; d="scan'208"; a="644578295:sNHT22317328" Received: from [192.168.0.1] (seduction.thanhandjared.net [192.168.0.1]) by eternity.thanhandjared.net (Postfix) with ESMTP id 64BD2B827; Fri, 15 Sep 2006 06:30:24 +1000 (EST) Message-ID: <4509BB15.3020105@little-miracles.org> Date: Fri, 15 Sep 2006 06:27:01 +1000 From: Jared Ring User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: Michael Butler References: <44FF4909.9020108@vwsoft.com> <44FF5B02.3090804@vwsoft.com> <44FF6FE6.4080602@protected-networks.net> <45091426.2090709@little-miracles.org> <45094021.70109@protected-networks.net> In-Reply-To: <45094021.70109@protected-networks.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 14 Sep 2006 20:27:06 -0000 I traced the problem back to BIOS booting off ad0 instead of ad1. Because ad0 was still a perfectly functioning drive BIOS didnt complain about booting off it. Once the kernel started and gmirror loaded it proceeded to use ad1, but the kernel was loaded from ad0, which was the old, broken one. I noticed my first partition does start at offset 0 though, is this going to come and bite me in the future? J Michael Butler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Jared Ring wrote: > | I have cvsup'd today to make sure I get the updated g_mirror.c, have > | rebuilt world and kernel, installed both. however when i rebuild the > | degraded drive the same thing happens. > | > | during the rebuild the good drive is reading, but the dirty drive is not > | gettin written to according to gstat. > > 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 > > Michael > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (FreeBSD) > > iD8DBQFFCUAhQv9rrgRC1JIRAnPHAJ9AMnr1PzCfqJBx99zs6BhWSHI4NwCggUpo > aI3LrwU8cHDmyLZpKB98EKw= > =QPtF > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"