Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2002 15:14:37 +0100 (CET)
From:      Martin Blapp <mb@imp.ch>
To:        Greg Lehey <grog@FreeBSD.org>
Cc:        <freebsd-stable@FreeBSD.org>
Subject:   Re: double fault with vinum and 4.5 RC3
Message-ID:  <20020125151124.O58067-100000@levais.imp.ch>
In-Reply-To: <20020125131225.E4778@wantadilla.lemis.com>

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

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, <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?20020125151124.O58067-100000>