From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12908 invoked from network); 13 Dec 1999 20:44:20 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Dec 1999 20:44:20 -0000 Received: from apollo.astro.washington.edu (apollo.astro.washington.edu [128.95.98.50]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA17219 for ; Mon, 13 Dec 1999 15:44:19 -0500 Received: from localhost (reschke@localhost) by apollo.astro.washington.edu (8.8.7/8.8.7) with ESMTP id MAA18184; Mon, 13 Dec 1999 12:43:26 -0800 X-Authentication-Warning: apollo.astro.washington.edu: reschke owned process doing -bs Date: Mon, 13 Dec 1999 12:43:26 -0800 (PST) From: Chance Reschke To: Greg Lindahl cc: axp-list@redhat.com, recipient list not shown: ; Subject: RE: Installing five identical systems... In-Reply-To: <000e01bf435c$199f8480$e4844b89@hptilap.hpti.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 10 Dec 1999, Greg Lindahl wrote: > > Using fsk to check the validity of the target isn't a reliable check > > because the copy is done below the filesystem level. > > The second clause of this sentence is true, but the first clause doesn't go > with it. Since all the files you care about aren't changing, this technique > does work, and I've used it about 1000 times with no failures. If you are > really worried, boot into single user mode, remount the source partition > read only, and then make the copy. But it's a waste of your time. The second clause does, in fact, go with the first. Under certain circumstances, making a blockwise copy from from a rw mounted disk to another might be "safe"; however, running fsk isn't necessarily sufficient to identify copying problems. If dd has already copied the inode table for a given set of filesystem blocks, then, before dd completes writing these blocks, they are changed, fsck will be unable to identify the copying problem. This means that any file which is written to during the copy is vulnerable to undetectable (with fsck) corruption. This means what? That fsck "isn't a reliable check" of blockwise copies of rw mounted filesystems. Anyone planing to use dd to duplicate disks should be aware of this. > > If you create a minimal system which allows you to boot from a diskette > > and connect to a network, you can perform this type of disk duplication > > over your LAN (dd if=/dev/sda | rsh somehost 'dd of=/dev/sda'). > > This is impossible on an alpha, because the binaries are too big. Intead I > wrote a program which compiles down to just 30 kbytes which configs the > interface and does the copy and uncompress. When you are ready to release this I'm sure many people would find it useful. - C