From owner-freebsd-geom@FreeBSD.ORG Tue Jul 18 16:52:38 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 3C4D316A4DA for ; Tue, 18 Jul 2006 16:52:38 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4D4743D49 for ; Tue, 18 Jul 2006 16:52:37 +0000 (GMT) (envelope-from biancalana@gmail.com) Received: by py-out-1112.google.com with SMTP id b29so1950113pya for ; Tue, 18 Jul 2006 09:52:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iBU/Kkb+Ix2TiadoWWweCE+uJJPRoZG7nKZfxF++mAXqqWgU+oJJOLQDMBIhNzwyBo1XGKRUERQHpcB9+2fKJH8Yc/nEaSmoAncB5oa8yNcU76DmkHUX+2olZmBjefJtqvjdxY0EcOsBDn2L94iYSpWnFsRoT6XkztN4mBQLGG4= Received: by 10.35.61.14 with SMTP id o14mr5760483pyk; Tue, 18 Jul 2006 09:52:36 -0700 (PDT) Received: by 10.35.43.7 with HTTP; Tue, 18 Jul 2006 09:52:35 -0700 (PDT) Message-ID: <8e10486b0607180952l2839925ci20fd3e64a80a5f27@mail.gmail.com> Date: Tue, 18 Jul 2006 13:52:35 -0300 From: "Alexandre Biancalana" To: freebsd-geom@freebsd.org In-Reply-To: <44BCF5E9.5070001@centtech.com> MIME-Version: 1.0 References: <20060718143446.22346.qmail@web30304.mail.mud.yahoo.com> <44BCF5E9.5070001@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 16:52:38 -0000 Here is the script used to create the stripe: #!/bin/ksh stripe_name=data gconcat label -v concat1 /dev/ad1s1g /dev/ad3s1g gconcat label -v concat0 /dev/ad0s2g /dev/ad1s2a /dev/ad2s1g /dev/da3s1d disks="/dev/ad0s2a /dev/ad0s2b /dev/ad0s2d /dev/ad0s2e /dev/ad0s2f" disks="$disks /dev/ad1s1a /dev/ad1s1b /dev/ad1s1d /dev/ad1s1e /dev/ad1s1f" disks="$disks /dev/ad2s1a /dev/ad2s1b /dev/ad2s1d /dev/ad2s1e /dev/ad2s1f" disks="$disks /dev/ad3s1a /dev/ad3s1b /dev/ad3s1d /dev/ad3s1e /dev/ad3s1f" disks="$disks /dev/da0s1a /dev/da0s1b" disks="$disks /dev/da1s1a /dev/da1s1b" disks="$disks /dev/da2s1a /dev/da2s1b" disks="$disks /dev/da3s1a /dev/da3s1b" disks="$disks /dev/da4s1a /dev/da4s1b" disks="$disks /dev/concat/concat0 /dev/concat/concat1" echo "Clearing disks...." gstripe destroy $stripe_name gstripe clear $disks echo "Creating stripe...." gstripe label -v -s 131072 $stripe_name $disks On 7/18/06, Eric Anderson wrote: > > 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. > ------------------------------------------------------------------------ > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" >