From owner-freebsd-questions Mon Jun 14 23:10:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 58C5E14D79 for ; Mon, 14 Jun 1999 23:10:15 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA19460; Tue, 15 Jun 1999 15:40:12 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id PAA75802; Tue, 15 Jun 1999 15:40:07 +0930 (CST) Date: Tue, 15 Jun 1999 15:40:07 +0930 From: Greg Lehey To: Greg Skafte Cc: freebsd-questions@FreeBSD.ORG Subject: Re: vinum Message-ID: <19990615154006.M75176@freebie.lemis.com> References: <19990612144402.A3806@gras-varg.worldgate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990612144402.A3806@gras-varg.worldgate.com>; from Greg Skafte on Sat, Jun 12, 1999 at 02:44:02PM -0600 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 12 June 1999 at 14:44:02 -0600, Greg Skafte wrote: > I've just created a series of strip sets > > drive home1 device /dev/wd0s1g > drive home2 device /dev/wd2s1g > volume home > plex org striped 256k > sd length 1535M drive home1 > sd length 1535M drive home2 > drive usr1 device /dev/wd0s1e > drive usr2 device /dev/wd2s1e > volume usr > plex org striped 256k > sd length 1535M drive usr1 > sd length 1535M drive usr2 > > drive var1 device /dev/wd0s1g > drive var2 device /dev/wd2s1g > volume var > plex org striped 256k > sd length 1023M drive var1 > sd length 1023M drive var2 > > now when I do a vinum printconfig > > drive usr1 device /dev/wd0e > drive home1 device /dev/wd0g > drive usr2 device /dev/wd2e > drive home2 device /dev/wd2g > drive var1 device /dev/wd0s1g > drive var2 device /dev/wd2s1g > volume usr > volume home > volume var > plex name usr.p0 org striped 512b vol usr > plex name home.p0 org striped 512b vol home > plex name var.p0 org striped 512b vol var > [rest of stuff deleted] > > If I read the printconfig correctly it states thata the plexes are stripped on > 512b (bytes) but I've created them to be 256k (kbytes). 'b' is an abbreviation for 'block' of 512 bytes. > Is this a reporting error, or is somethingelse happening that I'm > mis-interpreting. You're misinterpreting it. However, looking at vinum(8): Some configuration file parameters specify a size (lengths, stripe sizes). These lengths can be specified as bytes, as sectors of 512 bytes (by appending the letter s), as kilobytes (by appending the letter k), as megabytes (by appending the letter m) or as gigabytes (by appending the letter g). These quantities represent the values 2**10, 2**20 and 2**30 respectively. For example, the value 16777216 bytes can also be written as 16m, 16384k or 32768b. For reasons of compatibility, vinum takes the letter b (block) to be equivalent to s (sector). The use of this abbreviation is deprecated, since the size of a block is very dependent on the context. This suggests I should be reporting the sizes as 's', not 'b'. I'll fix that some time soon. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message