Date: Wed, 6 Aug 1997 14:27:25 -0700 (PDT) From: Jaye Mathisen <mrcpu@cdsnet.net> To: "Jonathan M. Bresler" <jmb@FreeBSD.ORG> Cc: questions@hub.freebsd.org Subject: Re: CCD configuration Message-ID: <Pine.NEB.3.95.970806142546.973I-100000@mail.cdsnet.net> In-Reply-To: <199708061449.HAA29819@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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/<kernel config file> > 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970806142546.973I-100000>