From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 18:44:56 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 B5FFF16A4CE for ; Fri, 26 Dec 2003 18:44:56 -0800 (PST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id A211B43D4C for ; Fri, 26 Dec 2003 18:44:54 -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 25A952BD32 for ; Sat, 27 Dec 2003 13:44:52 +1100 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 567565120A; Sat, 27 Dec 2003 13:14:50 +1030 (CST) Date: Sat, 27 Dec 2003 13:14:50 +1030 From: Greg 'groggy' Lehey To: MarciOnMaillist@web.de Message-ID: <20031227024450.GG38246@wantadilla.lemis.com> References: <3FEC42C6.6010304@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mVonZaCXjkyW6e25" Content-Disposition: inline In-Reply-To: <3FEC42C6.6010304@web.de> 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 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: Sat, 27 Dec 2003 02:44:56 -0000 --mVonZaCXjkyW6e25 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 26 December 2003 at 15:16:38 +0100, MarciOnMaillist@web.de wrote: > hello folks, i have a little problem with my vinum on > -> FreeBSD 5.1 > > i wanted to create an LogVol with vinum. I have 4 physikal hard drives > in my pc. and i wanted to combine 3 of them with vinum. > After i have read the handbook and the manpages i configured my vinum > without problems, but after restart all my configs are lost. > Here are the steps I've done: > > touch /etc/vinum.conf > -> vinum create -f -v /etc/vinum.conf > > In this file there are these entrys: > > drive d1 device /dev/ad1s1 > drive d2 device /dev/ad2s1 > drive d3 device /dev/ad3s1 These are slices, not partitions. From the man page: DRIVE LAYOUT CONSIDERATIONS vinum drives are currently BSD disk partitions. They must be of type vinum in order to avoid overwriting data used for other purposes. Use disklabel -e to edit a partition type definition. The following display shows a typical partition layout as shown by disklabel(8): 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 81920 344064 4.2BSD 0 0 0 # (Cyl. 240*- 297*) b: 262144 81920 swap # (Cyl. 57*- 240*) c: 4226725 0 unused 0 0 # (Cyl. 0 - 2955*) e: 81920 0 4.2BSD 0 0 0 # (Cyl. 0 - 57*) f: 1900000 425984 4.2BSD 0 0 0 # (Cyl. 297*- 1626*) g: 1900741 2325984 vinum 0 0 0 # (Cyl. 1626*- 2955*) In this example, partition ``g'' may be used as a vinum partition. Par- titions ``a'', ``e'' and ``f'' may be used as UFS file systems or ccd partitions. Partition ``b'' is a swap partition, and partition ``c'' represents the whole disk and should not be used for any other purpose. > volume doc1s1 setupstate > plex org concat > sd length 0 drive d1 > sd length 0 drive d2 > sd lenght 0 drive d3 > > > after I did this, all plexes are up without errors. Yes, this is a bug. You shouldn't be able to do this. > then I did: > > -> newfs /dev/vinum/doc1s1 > -> disklabel -e /dev/vinum/doc1s1 You shouldn't run disklabel on the volume. Run it on /dev/ad1s1, /dev/ad2s1 and /dev/ad3s1 instead. Then create drives on, say, /dev/ad1s1g, /dev/ad2s1g and /dev/ad3s1g, modify your configuration file, and all should be well. 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. --mVonZaCXjkyW6e25 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/7PIiIubykFB6QiMRArbAAJwM+RSu1xbpfsUuzDtuAzR2NEsa+gCgnrbv 2bgKJ2xYETM8V43/5VrN9Ss= =BrVb -----END PGP SIGNATURE----- --mVonZaCXjkyW6e25--