From owner-freebsd-hackers Fri Nov 28 12:14:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA05766 for hackers-outgoing; Fri, 28 Nov 1997 12:14:30 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from silvia.HIP.Berkeley.EDU (ala-ca34-55.ix.netcom.com [207.93.143.183]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA05755 for ; Fri, 28 Nov 1997 12:14:23 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.8/8.6.9) id MAA21785; Fri, 28 Nov 1997 12:14:14 -0800 (PST) Date: Fri, 28 Nov 1997 12:14:14 -0800 (PST) Message-Id: <199711282014.MAA21785@silvia.HIP.Berkeley.EDU> To: jamil@trojanhorse.ml.org CC: hackers@freebsd.org In-reply-to: (jamil@trojanhorse.ml.org) Subject: Re: Drive Mirroring From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * 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