From owner-freebsd-stable Fri Jan 25 6:14:47 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 3F2A437B402; Fri, 25 Jan 2002 06:14:39 -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 g0PEEbv54375; Fri, 25 Jan 2002 15:14:38 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Fri, 25 Jan 2002 15:14:37 +0100 (CET) From: Martin Blapp To: Greg Lehey Cc: Subject: Re: double fault with vinum and 4.5 RC3 In-Reply-To: <20020125131225.E4778@wantadilla.lemis.com> Message-ID: <20020125151124.O58067-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, Does this look reasonable now ? (I Included my workaround for the vinum double fault panic problem.) REFERENCE: SUM = Single user mode MUM = Multi user mode If the disk with ID 1 crashes: ------------------------------ 1) Reboot 2) Change SCSI ID's. ID1 > ID2, ID2 > ID1 3) Boot up the previous SLAVE disk into SUM 4) Partition da1 the same as da0, set bootblock 5) Copy the disklabel of da0: $ disklabel /dev/da0c > label.txt $ disklabel -e /dev/da1c :r label.txt :s/da0/da1/g Save lable 6) $ dd bs=4096k if=/dev/da0a of=/dev/da1a 7) reboot 8) Change SCSI ID's. ID2 > ID1, ID1 > ID2 9) Boot up the previous SLAVE disk into SUM 10) $ disklabel -e /dev/da0c :s/da1/da0/g Save lable 11) $ echo "drive vinumdrive0 device /dev/da0e" >> configfile $ echo "drive vinumdrive2 device /dev/da0f" >> configfile $ echo "drive vinumdrive4 device /dev/da0g" >> configfile $ vinum create configfile 12) $ vinum start vinumdrive0 $ vinum start vinumdrive2 $ vinum start vinumdrive4 13) $ vinum stop 14) $ vinum start var.p0.s0 15) $ vinum start docsis.p0.s0 16) $ vinum start docsisvar.p0.s0 17) boot into MUM 18) Ready If the disk with ID 2 crashes: ------------------------------ 1) Cut old disk from powercable 2) $ camcontrol rescan all 3) Replace old disk, set again SCSI ID 2, plug powercable again 4) $ camcontrol rescan all 5) Partition of disk da1, set bootblock 6) Copy the disklabel of da0: $ disklabel /dev/da0c > label.txt $ disklabel -e /dev/da1c :r label.txt :s/da0/da1/g Save lable 7) Restore root partition: $ newfs /dev/da1a $ mount /dev/da1a /mnt $ cd /mnt && dump -rf 0 /dev/da0a -f - | restore -xf - $ rm /mnt/restoresytable $ umount /mnt 8) $ echo "drive vinumdrive1 device /dev/da1e" >> configfile $ echo "drive vinumdrive3 device /dev/da1f" >> configfile $ echo "drive vinumdrive5 device /dev/da1g" >> configfile $ vinum create configfile 9) $ vinum start vinumdrive1 $ vinum start vinumdrive3 $ vinum start vinumdrive5 10) $ boot into SUM ($ init 1) $ unmount all vinum devices $ vinum stop $ vinum start $ vinum start var.p1.s1 $ vinum start docsis.p1.s1 $ vinum start docsisvar.p1.s1 11) boot into MUM 12) Ready 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