From owner-freebsd-questions Wed Aug 6 14:27:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA20882 for questions-outgoing; Wed, 6 Aug 1997 14:27:43 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA20872; Wed, 6 Aug 1997 14:27:33 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.6/8.8.6) with SMTP id OAA07449; Wed, 6 Aug 1997 14:27:25 -0700 (PDT) Date: Wed, 6 Aug 1997 14:27:25 -0700 (PDT) From: Jaye Mathisen To: "Jonathan M. Bresler" cc: questions@hub.freebsd.org Subject: Re: CCD configuration In-Reply-To: <199708061449.HAA29819@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hmmm, I was able to get everything but / to mirror properly in my one pass at it. Didn't invest a lot of time, just dd'd the partition from one drive to the mirror drive every few minutes or so... It would be an interesting problem, since if your ccd.conf got wiped out/was unavailable, you wouldn't be able to access root anyway. And I don't know if the boot blocks work right with non 4.2BSD disklabel, or rather recognize the ccd disklabel as valid. I wouldn't think so. On Wed, 6 Aug 1997, Jonathan M. Bresler wrote: > i am about to start using CCD to mirror a disk (RAID 1). > from reading the man pages and looking in the mail archives, > it seems that a ccd mirrors a single filesystem. > > so if i have 4 filesystems that is want to mirror, i must > create 4 ccd devices (kernel config file, and /dev/MAKEDEV). > configure each ccd to mirror a single filesystem > > safe to mirror / using ccd? > in kernel config file, root on ccd0???? > to ccd /usr, edit /etc/fstab to mount ccdn on /usr? > > anyone using ccd for /?? > > Proposed Setup: > /sys/i386/conf/ > pseudo-device ccd 4 > > create the device files: > cd /dev > ./MAKEDEV ccd0; ./MAKEDEV ccd1; ./MAKEDEV ccd2; ./MAKEDEV ccd3 > > configure the ccd's: > ccdconfig -Cv > disklabel ccd0; disklabel ccd1; disklabel ccd2; disklabel ccd3 > newfs /dev/rccd0c; newfs /dev/rccd1c; > newfs /dev/rccd2c; newfs /dev/rccd3c > > /etc/ccd.config: > ccd0 16 CCDF_MIRROR /dev/sd2a /dev/sd3a > ccd1 16 CCDF_MIRROR /dev/sd2d /dev/sd3d > ccd2 16 CCDF_MIRROR /dev/sd2e /dev/sd3e > ccd3 16 CCDF_MIRROR /dev/sd2f /dev/sd3f > > /etc/fstab: > ???? > > Recovery: > assuming that i lose /dev/sd3f > boot single user > reconfigure ccd3 as a single disk ccd using /dev/sd2f only > dd if=/dev/sd2f of=/dev/sd3f bs=1m > reconfigure ccd3 to use both /dev/sd2f and /dev/sd3f > reboot > > -- > Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG > FreeBSD--4.4BSD Unix for PC clones, source included. http://www.freebsd.org/ > PGP 2.6.2 Fingerprint: 31 57 41 56 06 C1 40 13 C5 1C E3 E5 DC 62 0E FB >