From owner-freebsd-current@FreeBSD.ORG Thu Nov 12 20:45:00 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5969310656A9 for ; Thu, 12 Nov 2009 20:45:00 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id EBD6E8FC1D for ; Thu, 12 Nov 2009 20:44:59 +0000 (UTC) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id nACKiwOk008276 for ; Thu, 12 Nov 2009 14:44:58 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Thu, 12 Nov 2009 14:44:58 -0600 (CST) From: "Sean C. Farley" To: freebsd-current@FreeBSD.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-2.9 required=4.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: Subject: geometry/media size does not match label messages X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2009 20:45:00 -0000 I have an existing system running stable/7 and am preparing to upgrade it to stable/8 (as of r199085). The system has two slices mirrored. Upon booting from a Fixit disc, there are messages I see with stable/8 but not stable/7: GEOM: ad4s3: geometry does not match label (255h,63s != 16h,63s). GEOM: ad4s3: media size does not match label. GEOM: ad6s3: geometry does not match label (255h,63s != 16h,63s). GEOM: ad6s3: media size does not match label. This also occurs when having mirrored two freshly created slices (within VirtualBox), so it is not an existing issue seen from a newer kernel branch. I have a script[1] to perform the creation from the Fixit disc to show how I built the system. >From what I understand, these messages are due to the order GEOM tastes providers. Since mirrored slices may actually be from different drives and not match, I can see why the labels may not match. Should/could the tasting be adjusted to prevent these messages from appearing assuming everything is valid? It looks valid, yes? The swap slices using gpart or bsdlabel: Geom name: ad4s2 fwheads: 16 fwsectors: 63 last: 8388575 first: 0 entries: 8 scheme: BSD bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 8322 sectors/unit: 8388576 ... 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 8388576 0 unused 0 0 # "raw" part, don't edit h: 8388560 16 swap Here is the slice from the mirror (or ad[46]s3 if preferred): Geom name: mirror/slice0 fwheads: 255 fwsectors: 63 last: 75497434 first: 0 entries: 8 scheme: BSD bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 4699 sectors/unit: 75497435 ... 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 4194304 16 4.2BSD 0 0 0 b: 4194304 4194320 4.2BSD 0 0 0 c: 75497435 0 unused 0 0 # "raw" part, don't edit d: 8388608 8388624 4.2BSD 0 0 0 e: 58720203 16777232 4.2BSD 0 0 0 Sean 1. http://people.freebsd.org/~scf/Install-gmirror-MBR.txt -- scf@FreeBSD.org