Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2003 14:34:09 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        aarong <aarong@megapathdsl.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: clearing Vinum configurations
Message-ID:  <20031015050409.GH13080@wantadilla.lemis.com>
In-Reply-To: <F3834D06-FC17-11D7-B107-000393A364C4@megapathdsl.net>
References:  <F3834D06-FC17-11D7-B107-000393A364C4@megapathdsl.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031015050409.GH13080>