From owner-freebsd-questions Sun Mar 12 15:22:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 6D06A37B960 for ; Sun, 12 Mar 2000 15:22:35 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA71765; Mon, 13 Mar 2000 09:52:18 +1030 (CST) Date: Mon, 13 Mar 2000 09:52:18 +1030 From: Greg Lehey To: Johan Pettersson Cc: FreeBSD question Subject: Re: vinum, 24G hd Message-ID: <20000313095217.I6807@freebie.lemis.com> References: <20000309185022.A5708@b41.ryd.student.liu.se> <20000310153010.A842@freebie.lemis.com> <20000310182115.A9258@b41.ryd.student.liu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20000310182115.A9258@b41.ryd.student.liu.se> 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 Friday, 10 March 2000 at 18:21:15 +0100, Johan Pettersson wrote: > On Fri, Mar 10, 2000 at 03:30:10PM +1030, Greg Lehey wrote: >> On Thursday, 9 March 2000 at 18:50:22 +0100, Johan Pettersson wrote: >>> Hello! >>> >>> Have problem whith vinum (again=) >>> Got following error: >>> ------------------------------------------------- >>> vinum -> create config1 >>> 8: sd length 24405m drive c >>> ** 8 No space for on c: No space left on device >>> Configuration summary >>> >>> Drives: 3 (4 configured) >>> Volumes: 1 (4 configured) >>> Plexes: 1 (8 configured) >>> Subdisks: 2 (16 configured) >>> >>> D a State: up Device /dev/wd1h Avail: 0/6149 MB (0%) >>> D b State: up Device /dev/wd2h Avail: 0/6149 MB (0%) >>> D c State: up Device /dev/wd3h Avail: 48809/24405 MB (200%) >>> >>> V daemon State: up Plexes: 1 Size: 12 GB >>> >>> P daemon.p0 C State: up Subdisks: 2 Size: 12 GB >>> >>> S daemon.p0.s0 State: up PO: 0 B Size: 6149 MB >>> S daemon.p0.s1 State: up PO: 6149 MB Size: 6149 MB >>> ---------------------------------------------------- >>> Can't vinum handle a 24G hd ? >>> >>> ---------config1------------------------------------ >>> drive a device /dev/wd1h >>> drive b device /dev/wd2h >>> drive c device /dev/wd3h >>> volume daemon >>> plex org concat >>> sd length 6149m drive a >>> sd length 6149m drive b >>> sd length 24405m drive c >>> ----------------------------------------------------- >> >> Sure. But it needs 131.5 kB of space for its configuration. What >> puzzles me more is how you were able to configure the other two >> subdisks. That may be a bug, but I can't see it in the code. Which >> version of FreeBSD are you using? > > Dmesg: > ---------8<-------------------- > wd3: 24405MB (49981680 sectors), 49585 cyls, 16 heads, 63 S/T, 512 B/S > ---------8<-------------------- > > when I changed the config from 24405 to 24404 it seems to work! > > ---------8<-------------------- > sd length 24404m drive c > ---------8<-------------------- > > vinum -> create config1 > Configuration summary > > Drives: 3 (4 configured) > Volumes: 1 (4 configured) > Plexes: 1 (8 configured) > Subdisks: 3 (16 configured) > > D a State: up Device /dev/wd1h Avail: 0/6149 MB (0%) > D b State: up Device /dev/wd2h Avail: 0/6149 MB (0%) > D c State: up Device /dev/wd3h Avail: 0/24405 MB (0%) > > V daemon State: up Plexes: 1 Size: 35 GB > > P daemon.p0 C State: up Subdisks: 3 Size: 35 GB > > S daemon.p0.s0 State: up PO: 0 B Size: 6149 MB > S daemon.p0.s1 State: up PO: 6149 MB Size: 6149 MB > S daemon.p0.s2 State: up PO: 12 GB Size: 23 GB > vinum -> > > maybe someone can explain for me what happend ? Sure, it's a rounding error. As I mentioned before, Vinum uses 131.5 kB (265 sectors) at the beginning of each drive for config information. You can't put subdisks in this area. You've specified sizes in MB, which is a bad idea, because you can end up wasting up to 1 MB space. In this particular case, you have 24405 MB and 240 additional sectors, not quite enough. In the case of the other drives, the space left over was enough. You could have specified the size of the subdisk as 0 (use the largest chunk available) or as 49981415 sectors (the size of the drive - 265). Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message