From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 14:57:59 2003 Return-Path: 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 B572716A4CE for ; Tue, 11 Nov 2003 14:57:59 -0800 (PST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BAEF43FDD for ; Tue, 11 Nov 2003 14:57:58 -0800 (PST) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 1B7B22BD34 for ; Wed, 12 Nov 2003 09:57:56 +1100 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 5D95A511FB; Wed, 12 Nov 2003 09:27:54 +1030 (CST) Date: Wed, 12 Nov 2003 09:27:54 +1030 From: Greg 'groggy' Lehey To: Chris Howells Message-ID: <20031111225754.GQ77527@wantadilla.lemis.com> References: <3189.192.168.1.104.1068570867.squirrel@sauron> <20031111221631.GL77527@wantadilla.lemis.com> <200311112244.07002.howells@kde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="j7iCko5qf//nELnG" Content-Disposition: inline In-Reply-To: <200311112244.07002.howells@kde.org> User-Agent: Mutt/1.4.1i 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 cc: freebsd-questions@freebsd.org Subject: Re: Vinum and reserved space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 22:57:59 -0000 --j7iCko5qf//nELnG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 11 November 2003 at 22:44:01 +0000, Chris Howells wrote: > On Tuesday 11 November 2003 22:16, Greg 'groggy' Lehey wrote: > >>> I've just bought 2 x 160GB drives which I want to RAID 1 with vinum. I >>> used /stand/sysinstall to fdisk and disklabel them, mounted them as >>> /temp1 and /temp2 and checked the size of them using 'df' to stick into >>> my vinum.conf file. >>> >>> I'm a bit confused though; the output of df does not include the 8% or >>> whatever of the slice that is reserved for root by default. >> >> It looks like it to me. > > What I mean is that e.g. in the output from df: > > /dev/vinum/sauron1 149118276 9447 137179367 0% /vinum > > the 149118276 (k) is the total size of the disk, whereas the 137179367 is the > available space ( 149118276 - (8% of 149118276)). Correct. df reports on the file system. > I was following the instructions in the Absolute BSD book which now > that I've done it I think is confusing. I haven't seen that. What does it say? It may be wrong. >> You're confusing Vinum and UFS. Vinum is a virtual disk. UFS is a >> file system. It's UFS which reserves 8% or so of the file system (not >> of the slice, which is a term which relates neither to UFS nor to >> Vinum). If you reserve space on the disk and don't give it to Vinum, >> Vinum doesn't use it. Period. > > Right. My confusion was on how to determine the size of the slice to stick > into the vinum.conf file... According to Absolute BSD, the right thing to do > is to read the 137179367 column, and use that value in vinum.conf. That's wrong. Could you quote the text, please? > But obviously that isn't using the whole disk because it does not > include the 8% of the drive that is set aside for root. None of the drive is set aside for root. > In all the example vinum.conf files that I could find, there was a > hard-coded size of the vinum drive. There are others. In the man page, for example. >> That's because you haven't used all the space. If the drives are the >> same, use 'length 0' for the subdisks and you'll get all the space in >> the volume. > > Aha. I didn't know that you could set 'length 0', didn't see that documented > anywhere. This looks like an RTFM. 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. --j7iCko5qf//nELnG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/sWlyIubykFB6QiMRAh/8AJsESM87zWc+iITfnx6gIV5Ucwu8OgCcCb5c M/tHhDA0Oc+BXBZj5FKw3dw= =UrAq -----END PGP SIGNATURE----- --j7iCko5qf//nELnG--