Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2002 08:56:51 +0100
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   vinum mirror
Message-ID:  <20021226075651.GA348@freepuppy.bellavista.cz>

next in thread | raw e-mail | index | archive | help
I'm trying to setup a mirrored volume, but haven't gotten too far.

A freshly installed 4.7-RELEASE, with
ad0s1{a,b,e} - /, swap, /usr
da{0,1}s1{b,e} - swap, <future-mirrored-var>

right now, I have /var on da0s1e, the goal is to have it mirrorred on
da1s1e. I've read www.vinumvm.org/vinum/fullintro.html (a bit over my
head), and am trying to go along /usr/share/doc/articles/vinum/.

> boot -s
# ^J
# cd /root
# disklabel -R da0s1 dl.da0s1
# disklabel -R da1s1 dl.da1s1
# fsck -p /
# mount -u /
# vinum create mirror.a
# fsck -p /
# mount -u /
# vinum create mirror.a
vinum loaded
vinum drive a is up
vinum mirror.p0 is up
vinum mirror is up
1 drives:
D a                    State: up        Device /dev/da0s1e      Avail: 34047/34047 MB (100%)

1 volumes:
V mirror               State: up        Plexes:       1 Size:         33 GB

1 plexes:
P mirror.p0          C State: up        Subdisks:     0 Size:         33 GB

1 subdisks:
S mirror.p0.s0         State: up        PO:        0  B Size:         33 GB
# fsck -n /dev/vinum/mirror
** /dev/vinum/mirror (NO WRITE)
BAD SUPER BLOCK: MAGIC NUMBER WRONG
/dev/vinum/mirror: CANNOT FIGURE OUT FILE SYSTEM PARTITION

diff -u dl.da0s1.orig dl.da0s1
--- dl.da0s1.orig       Thu Dec 26 06:44:15 2002
+++ dl.da0s1    Thu Dec 26 07:23:13 2002
@@ -19,6 +19,6 @@
 
 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
-  b:  2097408        0      swap                       # (Cyl.    0 - 130*)
+  b:  2097143        0      swap                       # (Cyl.    0 - 130*)
   c: 71826552        0    unused        0     0        # (Cyl.    0 - 4470*)
-  e: 69729144  2097408    4.2BSD     2048 16384    89  # (Cyl.  130*- 4470*)
+  e: 69729409  2097143     vinum     2048 16384    89  # (Cyl.  130*- 4470*)


What's up, what have I done wrong?

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html

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?20021226075651.GA348>