From owner-freebsd-questions Thu Oct 24 17:15:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8ADC37B401 for ; Thu, 24 Oct 2002 17:15:11 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3866D43E4A for ; Thu, 24 Oct 2002 17:15:10 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 9DD01812D6; Fri, 25 Oct 2002 09:45:07 +0930 (CST) Date: Fri, 25 Oct 2002 09:45:07 +0930 From: Greg 'groggy' Lehey To: Drew Tomlinson Cc: FreeBSD Questions Subject: Re: Vinum Error - No space left on drive Message-ID: <20021025001507.GA53469@wantadilla.lemis.com> References: <019201c27bba$4dec71f0$6e2a6ba5@TAGALONG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <019201c27bba$4dec71f0$6e2a6ba5@TAGALONG> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] Please don't wrap computer output. On Thursday, 24 October 2002 at 17:06:01 -0700, Drew Tomlinson wrote: > I'm sure the answer to my question is on the Net somewhere but after a > day and a half of searching, I've decided to plea for help. :) > > The error I get when I attempt to create the volume is: > > vinum -> create ftp_vinum.conf > 4: sd length 76319m drive ftp1 > ** 4 No space for on ftp1: No space left on device > > The disk, volume, and plex are created but the subdisk is not: Yes, that's what the message above is trying to tell you. > I have an 80G IDE drive (ad1) that I wish to use for a vinum volume. > I have read the example at http://www.freebsddiary.org/vinum.php. > It tells me that the first step is to determine the size of my drive > by using fdisk. Well, no, the first thing it tells you is that this is necessary because the two disks he was using were of different size. It's incorrect, anyway: disklabel tells you the size of your slices. > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 156301488 0 unused 0 0 # (Cyl. 0 - 9729*) > h: 156301488 0 vinum # (Cyl. 0 - 9729*) > > Then I created my configuration file: > > blacklamb# cat ftp_vinum.conf > drive ftp1 device /dev/ad1s1h > volume ftp > plex org concat > sd length 76319m drive ftp1 Well, presumably you first tried to convert sectors to megabytes, which was a bit of a waste of time, since you can specify the size in sectors in the process. You made an error in this conversion: 156301223 sectors are 74.530231 MB. If you specify the size in megabytes, you lose the fractional part. As the man page explains, however, all this is unnecessary. Just write sd length 0m drive ftp1 and Vinum will allocate as much as it can for you. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html 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