From owner-freebsd-stable Thu Jan 24 10:14:19 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by hub.freebsd.org (Postfix) with ESMTP id DAD8437B400; Thu, 24 Jan 2002 10:14:11 -0800 (PST) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.11.1/8.11.1) with ESMTP id g0OIEAv84911; Thu, 24 Jan 2002 19:14:10 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Thu, 24 Jan 2002 19:14:10 +0100 (CET) From: Martin Blapp To: Cc: Subject: double fault with vinum and 4.5 RC3 Message-ID: <20020124184810.M47234-100000@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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, ------------------------------------------------------------------ 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