Skip site navigation (1)Skip section navigation (2)
Date:      01 Apr 2001 19:33:41 -0500
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-fs@freebsd.org
Subject:   Re: My Vinum heart attack
Message-ID:  <87g0fsi1i2.fsf@pooh.honeypot>
In-Reply-To: <20010402082816.J77617@wantadilla.lemis.com>
References:  <87vgooi7kz.fsf@pooh.honeypot> <20010402082816.J77617@wantadilla.lemis.com>

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

At 2001-04-01T22:58:16Z, Greg Lehey <grog@lemis.com> writes:

> > During the reboot-into-single-user
> > process, I watched in abject horror as vinum started, tried to read
> > its configuration, didn't like what it found, and TOTALLY WIPED
> > everything in /dev/vinum (including subdirectories).

> This is a feature, not a bug.  Don't confuse a device node (in /dev)
> with the device itself.

I didn't suppose that it was a bug - just a nerve-wrecking response to a set
of input data.

> > After regaining consciousness, I realized that I had a live tape
> > backup online, so I restored /dev/vinum,

> You shouldn't have done that.

What would've been the proper response?  I don't have a log of the errors
(/var/log/vinum_history has nothing, and neither does /var/log/messages),
but they were along the lines of:

  Could not create /dev/vinum/plex - directory already exists

or something very similar.  The end result was an empty /dev/vinum.  'vinum
list' gave a huge dump of invalid volumes, plexes, subdrives, and drives.

> Well, if you had kept the log files, we could check.  The only change
> made to Vinum in that time was a minor one fixing a panic when
> starting striped plexes.  Take a look at
> http://www.vinumvm.org/vinum/how-to-debug.html and let me know what
> info you have.

I'm sorry, Greg, but there were no log files to keep.  The only scraps of
possible interest were a backup of the resultant /dev/vinum directory:

drwxr-xr-x  6 root  wheel       512 Mar 31 16:29 .
drwxr-xr-x  6 root  wheel     15872 Mar 31 17:47 ..
crw-------  1 root  wheel   91, 0x40000001 Mar 31 16:26 Control
crw-------  1 root  wheel   91, 0x40000002 Mar 31 16:26 control
crw-------  1 root  wheel   91, 0x40000000 Mar 31 16:26 controld
drwxr-xr-x  2 root  wheel       512 Mar 31 16:26 drive
drwxr-xr-x  2 root  wheel       512 Mar 31 16:26 plex
drwxr-xr-x  2 root  wheel       512 Mar 31 16:26 sd
drwxr-xr-x  3 root  wheel       512 Mar 31 16:26 vol

./vol:
total 3
drwxr-xr-x  3 root  wheel  512 Mar 31 16:26 .
drwxr-xr-x  6 root  wheel  512 Mar 31 16:29 ..
drw-r----x  2 root  wheel  512 Mar 31 16:26 .plex

./vol/.plex:
total 2
drw-r----x  2 root  wheel  512 Mar 31 16:26 .
drwxr-xr-x  3 root  wheel  512 Mar 31 16:26 ..

and a copy of vinum.core.  Everything else was dumped to console, AFAIK.
-- 
Kirk Strauser

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




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