Date: Wed, 12 Nov 2003 08:46:31 +1030 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Chris Howells <howells@kde.org> Cc: freebsd-questions@freebsd.org Subject: Re: Vinum and reserved space Message-ID: <20031111221631.GL77527@wantadilla.lemis.com> In-Reply-To: <3189.192.168.1.104.1068570867.squirrel@sauron> References: <3189.192.168.1.104.1068570867.squirrel@sauron>
next in thread | previous in thread | raw e-mail | index | archive | help
--T3X/gqwmxfK0WLE8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 11 November 2003 at 17:14:27 -0000, Chris Howells wrote: > Hi, > > 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. > Therefore I was wondering if I should turn the reserved space down > to 0%, check the space using df, and use that in my vinum.conf. The > reasoning is that when I run 'newfs /dev/vinum/sauron1', more drive > space will be reserved, so I'll have two lots of reserved space on > each drive which seems 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. > Currently df -h output looks like this, which isn't too impressive for > 160GB drives: > > /dev/vinum/sauron1 131G 1.0K 120G 0% /vinum > > vinum.conf looks like: > > drive alpha device /dev/ad6s1e > drive beta device /dev/ad7s1e > volume sauron1 setupstate > plex org concat > sd length 141537128k drive alpha > plex org concat > sd length 141537128k drive beta 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. 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. --T3X/gqwmxfK0WLE8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/sV+/IubykFB6QiMRAhmxAJ9BgB6jSuXITClFIZntlnFegAFs4wCfWqYi Nx2SWIBocSv2EGX8qbKiku0= =Y9IC -----END PGP SIGNATURE----- --T3X/gqwmxfK0WLE8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031111221631.GL77527>