From owner-freebsd-geom@FreeBSD.ORG Sun Jun 3 07:58:27 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BCF616A421 for ; Sun, 3 Jun 2007 07:58:27 +0000 (UTC) (envelope-from mwm-dated-1181713764.0cdc64@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id A1A1A13C457 for ; Sun, 3 Jun 2007 07:58:26 +0000 (UTC) (envelope-from mwm-dated-1181713764.0cdc64@mired.org) Received: (qmail 1518 invoked by uid 1001); 3 Jun 2007 05:49:24 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sun, 03 Jun 2007 01:49:24 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18018.22116.95145.341499@bhuda.mired.org> Date: Sun, 3 Jun 2007 01:49:24 -0400 To: freebsd-geom@freebsd.org X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Subject: WARNING: Expected rawoffset 0, found 63 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@freebsd.org, mwm-dated-1181281647.6bff1f@mired.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 07:58:27 -0000 Hello, I'm changing the way I'm mirror my system disk on an amd64 system running 6-STABLE (from late april). In paticular, I want to mirror the root partition instead of the entire disk, and have this setup for that: bhuda% gmirror list gm0s1a Geom name: gm0s1a State: COMPLETE Components: 2 Balance: split Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 2799177281 Providers: 1. Name: mirror/gm0s1a Mediasize: 1073741312 (1.0G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: ad2s1a Mediasize: 1073741824 (1.0G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 2288219402 2. Name: ad3s1a Mediasize: 1073741824 (1.0G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 2796645801 Neither ad[23] nor ad[23]s1 is mirrored. Things seem to be working fine. However, on boot I get a pair of the warnings listed in the subject line. Setting kern.geom.debugflags to 1 in loader.conf and rebooting, I find the following interesting bit of output: mbr_taste(MBR,mirror/gm0s1a) g_slice_spoiled(0xffffff0000b56280/mirror/gm0s1a) g_wither_geom(0xffffff0000b75900(mirror/gm0s1a)) bsd_taste(BSD,mirror/gm0s1a) WARNING: Expected rawoffset 0, found 63 g_slice_config(mirror/gm0s1a, 0, 0) ... g_slice_config(mirror/gm0s1a, 7, 1) g_slice_conf_hot(mirror/gm0s1a, idx: 0, off: 512, len: 276) g_gpt_taste(GPT,mirror/gm0s1a) g_slice_spoiled(0xffffff0000b56580/mirror/gm0s1a) g_wither_geom(0xffffff0000b95800(mirror/gm0s1a)) Um, ok, there is a BSD label on mirror/gm0s1a, because there's a BSD label on ad[23]s1, which has the same starting sector as ad[23]s1a, which are where gm0s1a is getting blocks. But that label has already been attached (twice, actually - once from ad2s1 and once from ad3s1). In fact, when we taste those, it fails as expected: bsd_taste(BSD,ad2s1a) g_slice_spoiled(0xffffff0000b98280/ad2s1a) g_wither_geom(0xffffff0000bdb200(ad2s1a)) It looks like the 'partitions' inside gm0s1a are destroyed before we finish booting, as the devices certainly aren't there after we boot. Which leads to my two questions: 1) Can this warning be ignored? If it's from a geom that indeed vanishes later, that should be the case. 2) Is this a bug? Or maybe an undesirable behavior that should be documented? Thanks, http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.