From owner-freebsd-questions Tue May 15 8:39: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from legion.openhost.co.uk (sip212021125069.ras.network-i.net [212.21.125.69]) by hub.freebsd.org (Postfix) with ESMTP id 240BD37B422 for ; Tue, 15 May 2001 08:38:53 -0700 (PDT) (envelope-from scott.culverhouse@opencube.co.uk) Received: from SCULVERHOUSE (sculverhouse.eastonneston [194.194.0.47] (may be forged)) by legion.openhost.co.uk (2.0/2.0) with ESMTP id f4FFd4e66706 for ; Tue, 15 May 2001 16:39:09 +0100 (BST) (envelope-from scott.culverhouse@opencube.co.uk) Date: Tue, 15 May 2001 16:38:23 +0100 From: Scott Culverhouse To: questions@FreeBSD.ORG Subject: Vinum and disaster recovery! Message-Id: <20010515161211.176C.SCOTT.CULVERHOUSE@opencube.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.05 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I need some help on recovering from a boot drive failure. This is not a real disaster just trying to simulate it and formulate some instructions! We have var and usr on a "e" partition mirrored across two drive see below for config (the vinum config is correct) I have got procedures for recovering the second drive (ie not the bootdisk) but now need to sort the boot disk. These are the step I have taken and they should work except when I try to mount the recovered volumes I get "incorrect super block":- (BTW the da1s1a is an exact copy of the root partition and that seems to be ok!) - Remove failed drive (Can be done live) - Install replacement drive - Boot off the install CDROM - Skip kernel configuration - Create the Partition and Labels as above - Select Fixit from the menu and choose Floppy (You'll need the fixit floppy) - # umount /mnt2/dev/da0s1a - # dd if=/mnt2/dev/da1s1a of=/mnt2/dev/da0s1a bs=2048 (da1s1a=whatever a copy of the root is) - # mount /mnt2/dev/da0s1a /mnt - # disklabel -e da0s1 (Change e partition it vinum) - # vi /mnt/etc/fstab (hash out the vinum volumes) Reboot - Press any key when the boot prompt appears - ? Boot -s - # /sbin/mount /dev/fd0 /mnt - # /sbin/vinum vinum -> create /mnt/etc/vinum.conf.nosetup << This file has the config in less the setupstate option vinum -> l 2 drives: D a State: up Device /dev/da0s1e Avail: 2029/32749 MB (6%) D b State: up Device /dev/da1s1e Avail: 2029/32749 MB (6%) 2 volumes: V var State: up Plexes: 2 Size: 9 GB V usr State: up Plexes: 2 Size: 19 GB 4 plexes: P var.p0 S State: up Subdisks: 2 Size: 9 GB P var.p1 S State: faulty Subdisks: 2 Size: 9 GB P usr.p0 S State: up Subdisks: 2 Size: 19 GB P usr.p1 S State: faulty Subdisks: 2 Size: 19 GB 8 subdisks: S var.p0.s0 State: up PO: 0 B Size: 5119 MB S var.p0.s1 State: up PO: 273 kB Size: 5119 MB S var.p1.s0 State: empty PO: 0 B Size: 5119 MB S var.p1.s1 State: empty PO: 273 kB Size: 5119 MB S usr.p0.s0 State: up PO: 0 B Size: 9 GB S usr.p0.s1 State: up PO: 273 kB Size: 9 GB S usr.p1.s0 State: empty PO: 0 B Size: 9 GB S usr.p1.s1 State: empty PO: 273 kB Size: 9 GB vinum -> start var.p1 vinum -> saveconfig vinum -> quit - # mount /dev/vinum/var /var mount: /dev/vinum/var: incorrect super block Any help would be apreciated! -- Scott Culverhouse Config below ======================== drive a device /dev/da0e drive b device /dev/da1e volume var setupstate plex org striped 273k sd length 5g drive a sd length 5g drive b plex org striped 273k sd length 5g drive b sd length 5g drive a volume usr setupstate plex org striped 273k sd length 10g drive a sd length 10g drive b plex org striped 273k sd length 10g drive b sd length 10g drive a ======================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message