From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 13:42:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8494616A4CE for ; Wed, 23 Jun 2004 13:42:24 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D6AA43D53 for ; Wed, 23 Jun 2004 13:42:24 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i5NDg6g18473; Wed, 23 Jun 2004 09:42:06 -0400 (EDT) From: Jerry McAllister Message-Id: <200406231342.i5NDg6g18473@clunix.cl.msu.edu> To: ruben@bloemgarten.demon.nl Date: Wed, 23 Jun 2004 09:42:05 -0400 (EDT) In-Reply-To: from "Ruben Bloemgarten" at Jun 23, 2004 03:14:57 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: md5 of a filesystem / verifying filesystem integrity after X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 13:42:24 -0000 > > Hi all, > > Does someone know how to reliably run a checksum of sorts on a filesystem, > to be able > > to verify filesystem integrity after a restore from dump level 0 has > occurred? Unless you made a checksum of everything before doing the dump and made absolutely no changes, there is no way that I know of. Even some little things such as block arrangements being a little different after a restore - irrelevant to the integrity of the files - would make a checksum come out differently if the whole filesystem were checksummed. You can do an fsck(8) and see if there are any problems in file pointers. But, that is hardly worth bothering with since it is done at boot time anyway and it doesn't check the content of the files, only the pointers/chains. On some versions of dump either older or from other sources (vendors) dump had a verify flag that would read back everything and check it with what is on disk. I don't see it in FreeBSD's dump. Anyway, it was almost useless since the system would have to be down for the whole dump and the whole verify pass. Most people do dumps with the system up and running and in this case the files can change during the dump and verify times, thus making verify always fail. It is a rare system that can afford to be down long enough to do even a single user mode dump, let alone adding on the verify. So, it doesn't surprise me to see that option gone. ////jerry > > Thanks, > > Ruben >