From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 15:26:18 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CE9D16A4CE for ; Fri, 13 Feb 2004 15:26:18 -0800 (PST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B97A43D1D for ; Fri, 13 Feb 2004 15:26:18 -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 03DFC2BD49 for ; Sat, 14 Feb 2004 10:26:15 +1100 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 09C3B5120A; Sat, 14 Feb 2004 09:56:12 +1030 (CST) Date: Sat, 14 Feb 2004 09:56:11 +1030 From: Greg 'groggy' Lehey To: Vincent Rioux , Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20040213232611.GP61632@wantadilla.lemis.com> References: <3109.192.168.1.147.1076687025.squirrel@internet.centrenad.com> <3109.192.168.1.147.1076687025.squirrel@internet.centrenad.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FRaepaAnLTQkJ4tS" Content-Disposition: inline In-Reply-To: <3109.192.168.1.147.1076687025.squirrel@internet.centrenad.com> 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-current@freebsd.org Subject: Re: Vinum dumpconfig returns nothing ?!? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 23:26:18 -0000 --FRaepaAnLTQkJ4tS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 13 February 2004 at 10:43:45 -0500, Vincent Rioux wrote: > Hello, > > I am trying to setup a software raid5 volume using Vinum on FreeBSD 5.2. > So far I did successfully complete these tasks : > > > - Created the config file : > drive d0 device /dev/ad10 > drive d1 device /dev/ad11 > (etc) These are disk devices, not disk 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. > plex org raid5 433k The stripe size should be a multiple of the UFS block size, normally 16 kB. Not doing so will not stop Vinum working, but it will impact on the performance. > Now the problem is that everytime I reboot the machine to test if > the volume automounts correctly (yes, start_vinum="YES" is in > rc.conf), all the configuration is lost and I must recreate and > reinitialize the volume (effectively losing all my data)... Well, no, just not finding it. It's all still there. > Now what's weird, just after setting everything up and finishing > initializing the volume, I just can't seem to be able to dump the > config from the disks! This is a bug introduced in Vinum as the result of some recent changes in the bio layer. Previously it would have refused to create the drives unless they were a partition of type "vinum". > Even if I do a saveconfig (which I shouldn't have to do since > config. updates are not disabled), there's nothing returned from > dumpconfig! : > vinum -> saveconfig > vinum -> dumpconfig Yes, if you don't have a configuration, you don't save anything. On Friday, 13 February 2004 at 17:04:45 +0100, Dag-Erling Smrgrav wrote: > "Vincent Rioux" writes: >> I am trying to setup a software raid5 volume using Vinum on FreeBSD 5.2. > > Vinum does not play along with GEOM and should therefore be considered > broken in 5.x. No, that is not correct. The only thing that doesn't work is swap on a Vinum volume. > Lukas Ertl is working on adapting Vinum to GEOM; see the > freebsd-geom list archives for more details. That is correct. Greg -- See complete headers for address and phone numbers. --FRaepaAnLTQkJ4tS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFALV0TIubykFB6QiMRAislAJ9R5+e381f+j5g4LMXKimIwmnoxDgCgpFMF Lvxijo18FGLzE7ufHOoipbs= =xrCq -----END PGP SIGNATURE----- --FRaepaAnLTQkJ4tS--