Date: Wed, 6 Aug 1997 07:49:02 -0700 (PDT) From: "Jonathan M. Bresler" <jmb> To: questions Subject: CCD configuration Message-ID: <199708061449.HAA29819@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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?199708061449.HAA29819>