Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Feb 2004 18:10:03 +0000
From:      Rob <robert@irrelevant.com>
To:        questions@freebsd.org
Subject:   vinum - device crashed.
Message-ID:  <5.1.1.6.0.20040201174740.01f63008@albert>

next in thread | raw e-mail | index | archive | help
Hi!

I've been setting up a new machine, using 5.2-RELEASE (downloaded the ISO 
images, couple of weeks ago.)

I'd installed on an old-ish 8Gb drive OK, and set up vinum to mirror it to 
another 8Gb as per http://devel.reinikainen.net/docs/how-to/Vinum/

Everything worked fine, machine has been up and down many times, no 
problems at all.  I built a custom kernel (just removed devices I don't 
have, nothing otherwise different) and not had a single problem with it, 
except swap doesn't work on /dev/vinum/swap - I've seen a couple of 
messages about this, but not worried about fixing it yet.

As this is going to be a database server, I added a further two ~40Gb 
drives on a new Maxtor ultra ata/133 card, and set vinum up to straight 
mirror these two drives.  I created a single filesystem, and shared it off 
with nfs, and setup mysql sever with it's database on the same filesystem.

Everything has been fine up to today, the machine has been working great, 
had a test website accessing the data via nfs and mysql, all hunky dorey.

Today, I mounted the data volume via nfs from the existing server, and 
tried to copy over all the live websites again.  Only about 280Mb.   And 
the new server died, with nothing in /var/log/messages.  When I got to the 
console, it had rebooted and was complaining that /dev/vinum/mirror (the 
new drives) was at fault.  vinum list shows me both subdiscs as crashed. 
(plexes 	faulty, volume down, see below).

fsck on the volume just gives
rebecca# fsck -n -t ufs /dev/vinum/mirror
Can't open /dev/vinum/mirror: Input/output error


I tried doing a "setstate up" on the subdisc, to force the volume back up 
but if I do that, any access to the volume (eg fsck, mount, anything) 
causes a kernel panic.

So what else can I try?  Have I lost the data that was already one the 
drive (I assume I can just amend the disklabel back from vinum and mount 
one drive normally to recover it?)  Do I need to download a later version 
of vinum than was in the iso's I used?   if so, how and where from?  Would 
it just be better to stick to 4.9 for now?


I would like to get this working - I've had rather too many hard discs die 
in the past and would like to have some resilience in this new machine.


Thanks in advance for any ideas,

Rob

2 drives:
D UpWindow              State: up       /dev/ad2s1h     A: 0/8056 MB (0%)
D YouCrazy              State: up       /dev/ad0s1h     A: 0/8056 MB (0%)
D vinumdrive0           State: referenced       unknown A: 0/0 MB
D vinumdrive1           State: referenced       unknown A: 0/0 MB

6 volumes:
V root                  State: up       Plexes:       2 Size:       2048 MB
V swap                  State: up       Plexes:       2 Size:       1023 MB
V home                  State: up       Plexes:       2 Size:       2048 MB
V tmp                   State: up       Plexes:       2 Size:       1500 MB
V var                   State: up       Plexes:       2 Size:       1436 MB
V mirror                State: down     Plexes:       2 Size:         38 GB

12 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       2048 MB
P swap.p0             C State: up       Subdisks:     1 Size:       1023 MB
P home.p0             C State: up       Subdisks:     1 Size:       2048 MB
P tmp.p0              C State: up       Subdisks:     1 Size:       1500 MB
P var.p0              C State: up       Subdisks:     1 Size:       1436 MB
P root.p1             C State: up       Subdisks:     1 Size:       2048 MB
P swap.p1             C State: up       Subdisks:     1 Size:       1023 MB
P home.p1             C State: up       Subdisks:     1 Size:       2048 MB
P tmp.p1              C State: up       Subdisks:     1 Size:       1500 MB
P var.p1              C State: up       Subdisks:     1 Size:       1436 MB
P mirror.p0           C State: faulty   Subdisks:     1 Size:         38 GB
P mirror.p1           C State: faulty   Subdisks:     1 Size:         37 GB

12 subdisks:
S root.p0.s0            State: up       D: YouCrazy     Size:       2048 MB
S swap.p0.s0            State: up       D: YouCrazy     Size:       1023 MB
S home.p0.s0            State: up       D: YouCrazy     Size:       2048 MB
S tmp.p0.s0             State: up       D: YouCrazy     Size:       1500 MB
S var.p0.s0             State: up       D: YouCrazy     Size:       1436 MB
S root.p1.s0            State: up       D: UpWindow     Size:       2048 MB
S swap.p1.s0            State: up       D: UpWindow     Size:       1023 MB
S home.p1.s0            State: up       D: UpWindow     Size:       2048 MB
S tmp.p1.s0             State: up       D: UpWindow     Size:       1500 MB
S var.p1.s0             State: up       D: UpWindow     Size:       1436 MB
S mirror.p0.s0          State: crashed  D: vinumdrive0  Size:         38 GB
S mirror.p1.s0          State: crashed  D: vinumdrive1  Size:         37 GB
vinum ->




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