From owner-freebsd-questions@FreeBSD.ORG Mon Mar 14 15:30:28 2005 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 D1A4B16A4CE for ; Mon, 14 Mar 2005 15:30:28 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B89F43D1D for ; Mon, 14 Mar 2005 15:30:28 +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 j2EFUQj15904; Mon, 14 Mar 2005 10:30:26 -0500 (EST) From: Jerry McAllister Message-Id: <200503141530.j2EFUQj15904@clunix.cl.msu.edu> To: lorenl@alzatex.com (Loren M. Lang) Date: Mon, 14 Mar 2005 10:30:25 -0500 (EST) In-Reply-To: <20050313082656.GB18080@alzatex.com> from "Loren M. Lang" at Mar 13, 2005 12:26:56 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Jerry McAllister cc: Jerry McAllister cc: freebsd-questions@freebsd.org Subject: Re: What's the easiest way to do a backup and verify? 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: Mon, 14 Mar 2005 15:30:28 -0000 > > > > Is there an easy way to combine a backup and verify when doing backups > > > with dump? > > >=20 > > > I've never had a problem with backup (I backup to DAT tape), but I'd > > > feel better if every backup was followed by a verify to make sure the > > > tape is readable. > >=20 > > to the ones on disk. Any changes mean an error, even if it was a > > real change in the file between the time it was written and the > > time it was read back. > >=20 > > The only real thing you can do is to read back the tape and look > > for a couple of files with fairly high inode numbers for each file > > system dumped. If you can read them, you can assume the tape > > is readable. > > I'm not very familiar with tapes, but I think that the dump is written > straight out to something like /dev/st0 right? So then wouldn't a > second dump of the same snapshot diffed to the tape device be a good for > a verify? > > Position tape at beginning of dump > dump / | diff - /dev/st0 > No, because the condition of the files that you are dumping the second time is different from the first time. That is the same problem as using the verify option with dump. The only way to do it would be to do your dumps on a completely quiescent system - single user mode maybe. Most places cannot afford to make file systems completely unavailable for periods of time long enough (several hours, up to a couple of days) to allow dump to be run twice without any changes being made to the file system. ////jerry > Though I don't have much experience with either dump or tapes to verify. >