From owner-freebsd-questions Wed Nov 25 01:17:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA13566 for freebsd-questions-outgoing; Wed, 25 Nov 1998 01:17:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA13561 for ; Wed, 25 Nov 1998 01:17:51 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id TAA17141; Wed, 25 Nov 1998 19:47:32 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id TAA10881; Wed, 25 Nov 1998 19:47:31 +1030 (CST) Message-ID: <19981125194731.Q67961@freebie.lemis.com> Date: Wed, 25 Nov 1998 19:47:31 +1030 From: Greg Lehey To: Anand Buddhdev , freebsd-questions@FreeBSD.ORG Subject: Re: help: ccd and mirroring References: <19981125115424.A19871@iconnect.co.ke> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981125115424.A19871@iconnect.co.ke>; from Anand Buddhdev on Wed, Nov 25, 1998 at 11:54:24AM +0300 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 25 November 1998 at 11:54:24 +0300, Anand Buddhdev wrote: > I've tried desperately to understand CCD for disk mirroring, but now i'm > stuck: > > The system is FreeBSD-2.2.5 release, with 2 identical 4 GB IDE disks on > disk controller wdc0. I installed the OS on the first disk wd0. The > partitions are: > > 50 MB / > 64 MB swap > 3998 MB /usr > > I initially tried to use vinum, but it fails to compile with the error: > > "Don't know how to make statetexts.h". I really need to get this working, > so I've put vinum aside for now. You forgot to read the instructions: > If you download this software, please use it and inform me of any > problems you have. I don't know which version of vinum you got, but current ones don't have that problem. You should take the latest version, and tell me if you still have problems. > I have: > > 1. Recompiled a kernel with CCD support > pseudo-device ccd 4 > > 2. cd /dev; ./MAKEDEV ccd0 > > 3. Formatted the second disk wd1, and dedicated the entire disk for > FreeBSD. I created partitions on it identical to wd0. > > 4. Now I want to enable the mirroring, but this is where I'm stuck. what I > have tried to do in single-user mode is: > > 1. Create a /etc/ccd.conf file > > ccd0 16 CCDF_MIRROR,CCDF_UNIFORM /dev/wd0 /dev/wd1 What's your system disk? If you do this, you'll overwrite *all* of your first two IDE drives. You should use a partition instead. > 2. Tried to run ccdconfig -C. This runs, and does not give and errors. So > then I try to mount the ccd0 > > mount /dev/ccd0 /mnt > > This fails with an error message: "Bad superblock". Use /dev/ccd0c. Undocumented wrinkle. > I don't understand now what is happening here. I would really > appreciate some help on this, since I need to get this system going > ASAP. It is running on its single disk for now, but the mirroring is > essential. Be *very careful*. ccd will let you shoot yourself in the foot really badly. You're quite lucky it didn't work. I'd still suggest you try vinum instead. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message