Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 19:14:10 +0100 (CET)
From:      Martin Blapp <mb@imp.ch>
To:        <grog@freebsd.org>
Cc:        <freebsd-stable@freebsd.org>
Subject:   double fault with vinum and 4.5 RC3
Message-ID:  <20020124184810.M47234-100000@levais.imp.ch>

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

Hi Greg,

I've solved my issues differently. But unfortunatly I'm not able to
recover from a simulated disk-crash. Here is what I made:

Two disks: da0, da0, both 35GB

1) Installed FreeBSD on da0s1a

2) mount so single user mode
dd bs=4096k if=/dev/da0 of=/dev/da1

(to have the root on disk 2 too, I did this cold mirror)

I plan to do a cold mirror procedure each evening, since
the root will be mostly static anyway.

mount /dev/da1a /mnt
cd /mnt && dump -rf 0 /dev/da0a -f - | restore -xf -
rm /mnt/restoresytable
umount /mnt

3) I edited the disklabels and set da0e, da0f, da0g
to type vinum

# vinum mirror -n var /dev/da0e /dev/da1e
# vinum mirror -n docsis /dev/da0f /dev/da1f
# vinum mirror -n docsisvar /dev/da0g /dev/da1g

# newfs -v /dev/vinum/var
# newfs -v /dev/vinum/docsis
# newfs -v /dev/vinum/docsisvar

and then I mounted everything.

/dev/da0s1b             none            swap    sw              0       0
/dev/da0s1a             /               ufs     rw              1       1
/dev/vinum/var          /newvar         ufs     rw              1       1
/dev/vinum/docsis       /docsis         ufs     rw              1       1
/dev/vinum/docsisvar    /docsis/var     ufs     rw              1       1

Fine, that worked wonderful

But now I tried what happens if the disk 0 fails, I mean da0.
I took da0 out and replaced it with a new disk. I switched
jumpers, so da0 got da1, and da1 got da0 and rebooted.

I could boot fine, vinum failed to start and I was in single user
mode. The I saw:

# vinum start
Warning: defective objects

D vinumdrive0           State: referenced       Device  Avail: 0/0 MB
D vinumdrive2           State: referenced       Device  Avail: 0/0 MB
D vinumdrive4           State: referenced       Device  Avail: 0/0 MB
P var.p0              C State: faulty   Subdisks:     1 Size:       1023
P docsis.p0           C State: faulty   Subdisks:     1 Size:       6143
P docsisvar.p0        C State: faulty   Subdisks:     1 Size:         22
S var.p0.s0             State: stale    PO:        0  B Size:       1023
S docsis.p0.s0          State: stale    PO:        0  B Size:       6143
S docsisvar.p0.s0       State: stale    PO:        0  B Size:         22

where is p1 ???

Then I tried to do:

# echo "drive evar device /dev/da1e" >> configfile
# echo "drive edocsis device /dev/da1f" >> configfile
# echo "drive edocsisvar device /dev/da1g" >> configfile
# vinum create configfile

And boom I got a double fault.

Strange thing is that I can vinum start, see the error messages,
and then can mount all this "mirrors" fine, but indead they are
not mirrors. It's just this disk which I can see.

How can I get vinum to recover from this ? Infact I just need to add
da1e, da1g, da1f as mirror partition, nothing else. This cannot
be that complicated, can it ?

Martin

Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org>
------------------------------------------------------------------
Improware AG, UNIX solution and service provider
Zurlindenstrasse 29, 4133 Pratteln, Switzerland
Phone: +41 061 826 93 00: +41 61 826 93 01
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------


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




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