From owner-freebsd-questions Wed Dec 25 23:57: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A94637B401 for ; Wed, 25 Dec 2002 23:57:07 -0800 (PST) Received: from mail.bellavista.cz (mail.bellavista.cz [62.168.44.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7947643ED1 for ; Wed, 25 Dec 2002 23:57:06 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id F2BE32D3 for ; Thu, 26 Dec 2002 08:56:52 +0100 (CET) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id A1C0D2FDB58; Thu, 26 Dec 2002 08:56:51 +0100 (CET) Date: Thu, 26 Dec 2002 08:56:51 +0100 From: Roman Neuhauser To: freebsd-questions Subject: vinum mirror Message-ID: <20021226075651.GA348@freepuppy.bellavista.cz> Mail-Followup-To: freebsd-questions Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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, 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