From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 14:44:16 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 7D93D16A4D0; Tue, 11 Nov 2003 14:44:16 -0800 (PST) Received: from mail.devrandom.org.uk (82-68-135-38.dsl.in-addr.zen.co.uk [82.68.135.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BE4E43F3F; Tue, 11 Nov 2003 14:44:15 -0800 (PST) (envelope-from howells@kde.org) Received: from localhost.invalid (unknown [192.168.1.194]) by mail.devrandom.org.uk (Postfix) with ESMTP id 898D4133AD; Tue, 11 Nov 2003 22:44:14 +0000 (GMT) From: Chris Howells Organization: K Desktop Environment To: Greg 'groggy' Lehey Date: Tue, 11 Nov 2003 22:44:01 +0000 User-Agent: KMail/1.5.93 References: <3189.192.168.1.104.1068570867.squirrel@sauron> <20031111221631.GL77527@wantadilla.lemis.com> In-Reply-To: <20031111221631.GL77527@wantadilla.lemis.com> X-GPG-Fingerprint: 5863 DF82 C34D 7291 CC63 CA1B 17C2 2ED7 3379 5A2C MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200311112244.07002.howells@kde.org> 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:44:16 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Thanks for the reply. 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 t= he=20 available space ( 149118276 - (8% of 149118276)). I was following the instructions in the Absolute BSD book which now that I'= ve=20 done it I think is confusing. > 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= =20 into the vinum.conf file... According to Absolute BSD, the right thing to d= o=20 is to read the 137179367 column, and use that value in vinum.conf. But=20 obviously that isn't using the whole disk because it does not include the 8= %=20 of the drive that is set aside for root. In all the example vinum.conf files that I could find, there was a hard-cod= ed=20 size of the vinum drive. Now I think about it more it's obvious. I think. > 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 documente= d=20 anywhere. That solves all my problems since I don't need to determine the=20 size manually now. Thanks! =2D --=20 Cheers, Chris Howells -- chris@chrishowells.co.uk, howells@kde.org Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C KDE/Qt/C++/PHP Developer: http://www.kde.org =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/sWY2F8Iu1zN5WiwRAt+xAJ4gEmcaUM0ylg4yitR/qFVsua52dQCdEA6D 7x2FHlzRBwIVoKYrYXZeiGc=3D =3DnEfS =2D----END PGP SIGNATURE-----