From owner-freebsd-questions@FreeBSD.ORG Tue Oct 14 22:04:17 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 7335A16A4B3 for ; Tue, 14 Oct 2003 22:04:17 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AE1643FBD for ; Tue, 14 Oct 2003 22:04:15 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 8A0D72BD37 for ; Wed, 15 Oct 2003 15:04:12 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id BE235511F9; Wed, 15 Oct 2003 14:34:09 +0930 (CST) Date: Wed, 15 Oct 2003 14:34:09 +0930 From: Greg 'groggy' Lehey To: aarong Message-ID: <20031015050409.GH13080@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Rn7IEEq3VEzCw+ji" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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: clearing Vinum configurations 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: Wed, 15 Oct 2003 05:04:17 -0000 --Rn7IEEq3VEzCw+ji Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Saturday, 11 October 2003 at 11:23:03 -0700, aarong wrote: > I've been toying with Vinum extensively these past few weeks, on 4.8, > and I've yet to come across a way to effectively and *completely* clear > a Vinum configuration. After creating a configuration, Vinum stores the > configuration on the drive or drives and resetconfig does not clear > that written config. Case in point, after reinstalling FreeBSD on a > primary drive, Vinum started up and read the previous installs > configuration from the second drive which had not been formatted. On > another install, I tried zeroing out the 265 Vinum sectors found 16 > sectors in on the primary drive, but was greeting with a "missing > operating system" on reboot. I'm going to need more information on this. It doesn't correspond at all with my experience. Here's an example: vinum -> l 7 drives: D mytest7 State: up /dev/da6s4h A: 3070/4094 MB (= 74%) D mytest6 State: up /dev/da5s4h A: 0/4094 MB (0%) D mytest5 State: up /dev/da4s1h A: 0/4094 MB (0%) D mytest4 State: up /dev/da3s4h A: 0/4094 MB (0%) D mytest3 State: up /dev/da2s4h A: 0/4094 MB (0%) D mytest2 State: up /dev/da1s4h A: 0/4094 MB (0%) D mytest1 State: up /dev/da0s4h A: 0/4094 MB (0%) =20 ... =20 vinum -> resetconfig WARNING! This command will completely wipe out your vinum configuration. All data will be lost. If you really want to do this, enter the text =20 NO FUTURE Enter text -> NO FUTURE = Vinum configuration oblitera= ted vinum -> start ** no drives found: No such file or directory vinum -> l 0 drives: 0 volumes: 0 plexes: 0 subdisks: > Two questions: > > 1) why doesn't resetnconfig clear all the configurations,=20 As far as I know, it does. > including the ones written to Vinum drives? I'm not sure I understand. Do you mean "and not just in memory"? Yes, it does that. > 2) why doesn't dd if=3D/dev/zero of=3D/dev/da0 seek=3D16 count=3D265 work? > What's in those 265 sectors that I can't touch? The second sector on the disk is protected. You can't write to it. If you start at sector 2, it will work. The Vinum label is at sector 8. That's the only sector you need to clear to manually obliterate a Vinum configuration. 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. --Rn7IEEq3VEzCw+ji Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/jNVJIubykFB6QiMRAiPUAJ9Pw09nouG5sFfvDNklrnUaRMCPYwCgoZ/k bRkMsxz6gnfhPvsvBq7vlCo= =HWn/ -----END PGP SIGNATURE----- --Rn7IEEq3VEzCw+ji--