From owner-freebsd-hackers Fri Nov 28 18:33:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA26495 for hackers-outgoing; Fri, 28 Nov 1997 18:33:25 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from trojanhorse.ml.org (mdean.vip.best.com [206.86.94.101]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA26489 for ; Fri, 28 Nov 1997 18:33:22 -0800 (PST) (envelope-from jamil@trojanhorse.ml.org) Received: from localhost (jamil@localhost) by trojanhorse.ml.org (8.8.8/8.8.5) with SMTP id SAA00891; Fri, 28 Nov 1997 18:33:05 -0800 (PST) Date: Fri, 28 Nov 1997 18:33:05 -0800 (PST) From: "Jamil J. Weatherbee" To: Satoshi Asami cc: hackers@freebsd.org Subject: Re: Drive Mirroring In-Reply-To: <199711282014.MAA21785@silvia.HIP.Berkeley.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk One problem with this: If the system is rebooted with only one drive it crashes, second you cannot do a out of the box install on ccded drives so they are pretty useless tom me for anything but data. I actually tried the exact scenario you suggest. On Fri, 28 Nov 1997, Satoshi Asami wrote: > * and dump | restore to it. Can anyone think of a way I could maintain an > * entire mirrored system without ccd, perhaps some software that nightly > * looks at the changes on one drive and puts them over to the second without > * basically rewriting the whole thing. > > Partition the drives as root / the rest, ccd the two "rest" partitions > and partition them as you wish (/var, /usr, /usr/local, etc.). Write > a script that does the following every night: > > newfs /dev/rsd1a > mount -o async /dev/sd1a /mnt > cd / > find -dx . | cpio -dump /mnt > umount /mnt > > Granted, this will leave a small window of vulnerability during the > script is running, but if the root partition is small enough, it > should be real quick. > > Satoshi >