Date: Tue, 15 May 2001 16:38:23 +0100 From: Scott Culverhouse <scott.culverhouse@opencube.co.uk> To: questions@FreeBSD.ORG Subject: Vinum and disaster recovery! Message-ID: <20010515161211.176C.SCOTT.CULVERHOUSE@opencube.co.uk>
next in thread | raw e-mail | index | archive | help
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 <scott.culverhouse@opencube.co.uk>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010515161211.176C.SCOTT.CULVERHOUSE>
