From owner-freebsd-geom@FreeBSD.ORG Tue Jul 18 14:53:23 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9E6B16A4DE for ; Tue, 18 Jul 2006 14:53:23 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 445A243D4C for ; Tue, 18 Jul 2006 14:53:23 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k6IErMBQ051195; Tue, 18 Jul 2006 09:53:22 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44BCF5E9.5070001@centtech.com> Date: Tue, 18 Jul 2006 09:53:29 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: "R. B. Riddick" References: <20060718143446.22346.qmail@web30304.mail.mud.yahoo.com> In-Reply-To: <20060718143446.22346.qmail@web30304.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1600/Sat Jul 15 10:03:46 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-geom@freebsd.org Subject: Re: geom_stripe error X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 14:53:23 -0000 On 07/18/06 09:34, R. B. Riddick wrote: > --- Eric Anderson wrote: >>> 157622337536/131072 appr. 1202563 >>> 1202563 is congruent with 3 (modulo 32). >>> 158778490880/131072 appr. 1211383 >>> 1211383 % 32 = 23 >> So the offset is the number of records (16K based on stripe size in this >> case) offset, and not bytes? I was thinking bytes, which would make it >> drive number 5: >> > Hmm... > > I think the offsets in the log messages are in _bytes_. The stripe size is 128k > _bytes_. So the 157622337536-th byte is in the 1202563-rd stripe from the point > of view of the geom_stripe and the [1202563/32]-th stripe on the underlying > disk and the disk# should be [1202563%32]. > > I dont see why/where ur 16k come into the computation... Oh - simple PEBKAC bug. :) Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------