Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 1997 12:14:14 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        jamil@trojanhorse.ml.org
Cc:        hackers@freebsd.org
Subject:   Re: Drive Mirroring
Message-ID:  <199711282014.MAA21785@silvia.HIP.Berkeley.EDU>
In-Reply-To: <Pine.BSF.3.96.971128105430.219A-100000@trojanhorse.ml.org> (jamil@trojanhorse.ml.org)

next in thread | previous in thread | raw e-mail | index | archive | help
 * 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711282014.MAA21785>