From owner-freebsd-hackers Fri Nov 28 12:55:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA08230 for hackers-outgoing; Fri, 28 Nov 1997 12:55:32 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from dihelix.com (caliban.dihelix.com [198.180.136.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA08222 for ; Fri, 28 Nov 1997 12:55:26 -0800 (PST) (envelope-from langfod@dihelix.com) Received: (from langfod@localhost) by dihelix.com (8.8.7/8.8.8) id KAA25809; Fri, 28 Nov 1997 10:54:19 -1000 (HST) (envelope-from langfod) Message-Id: <199711282054.KAA25809@dihelix.com> Subject: Re: Drive Mirroring In-Reply-To: <199711282014.MAA21785@silvia.HIP.Berkeley.EDU> from Satoshi Asami at "Nov 28, 97 12:14:14 pm" To: asami@cs.berkeley.edu (Satoshi Asami) Date: Fri, 28 Nov 1997 10:54:18 -1000 (HST) Cc: jamil@trojanhorse.ml.org, hackers@FreeBSD.ORG From: "David Langford" X-blank-line: This space intentionaly left blank. X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Any thought on what is required to make a "snapshot" feature in FreeBSD? -David Langford langfod@dihelix.com