From owner-freebsd-questions Thu Mar 7 3:19:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from beta.netcraft.com (beta.netcraft.com [195.92.95.67]) by hub.freebsd.org (Postfix) with ESMTP id D657137B419 for ; Thu, 7 Mar 2002 03:19:50 -0800 (PST) Received: from ducky.netcraft.com (nobody@ducky.netcraft.com [195.92.95.32]) by beta.netcraft.com (8.11.6/8.11.4) with ESMTP id g27BJn246242 for ; Thu, 7 Mar 2002 11:19:50 GMT (envelope-from jon@netcraft.com) Date: Thu, 7 Mar 2002 11:19:49 +0000 (GMT) From: Jon Wilson To: Subject: questions about dump on live filesystems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi folks, Here is a question regarding the integrity of backups made using dump on live filesystems (i.e. mounted read-write, machine in multi-user state). dump does 4 passes: scanning of inodes for directories and files, archiving of data in those inodes for both directories and files. So between the scan and the actual transfer of data to (e.g.) tape, there is a dely, which in a live system the inode could be freed and reused by another file. Looking at the code for dump, it appears to notice if an inode is changed from being a directory to a file, or vice-versa, and does not backup data from that inode. My question: what happens if an inode is freed and assigned to a different file during the dump process? Will I end up with an erroneous bit of data in my restored file? Or can I at least rely on dump to leave things in a state such that (for instance) I will get a valid backup of the file at the next level-$n++ dump? A backup strategy of level-0 multi-user r/w, followed by a level-1 r/o is what I would like to be doing, but various people here have doubts about this producing valid backups 100% of the time. Please note that I am a sysadmin and application code developer, with only basic C knowledge, and not a OS developer, so I may need pointing in the right direction of the relevant file-system code and/or docs. Thanks, Jon -- Jon Wilson Netcraft Ltd. Tel: +44 (0)1225 867975 jon@netcraft.com Fax: +44 (0)1225 867700 http://www.netcraft.com Mob: +44 (0)7776 137939 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message