From owner-freebsd-hackers Wed Jul 17 0:33:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB8C637B400 for ; Wed, 17 Jul 2002 00:33:14 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D80D43E31 for ; Wed, 17 Jul 2002 00:33:14 -0700 (PDT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 436DB2A7D6 for ; Wed, 17 Jul 2002 00:33:14 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 013B74C26C for ; Wed, 17 Jul 2002 00:33:13 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 9C21D3910; Wed, 17 Jul 2002 00:33:13 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Mark W. Krentel" Cc: freebsd-hackers@freebsd.org Subject: Re: dump on mounted fs In-Reply-To: <200207170529.g6H5Tr512665@dreamscape.com> Date: Wed, 17 Jul 2002 00:33:13 -0700 From: Peter Wemm Message-Id: <20020717073313.9C21D3910@overcee.wemm.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Mark W. Krentel" wrote: > Dump still works on a mounted file system in Freebsd, right? That is, > a write that completes before dump is started will be in the dump, > even if the data is in memory? I don't mean writing to a file during > the dump, that's a separate problem. > > I only recently learned that this doesn't work in Linux and I wanted > to check that it's (still?) ok in Freebsd. Apparently, in the 2.4 > Linux kernels, the buffer and page caches make it impossible for dump > to always get the correct version of a file, even if there are no > writes during the dump. It takes a umount before dump will see all of > the changes (yuck). > > Anyone know about Solaris, IRIX, etc? Dump on a live FS is always risky. FreeBSD in 4.x and earlier will have up to about a 30 second delay before a write() makes it to physical disk. However, 5.x have snapshots where you can take a virtual snapshot of the file system device as it existed at the instant that you create it. You can then take a coherent dump that *will* be accurate. fsck uses snapshots in 5.x to do background fsck to reclaim lost resources. 5.0 should be released sometime this century. :-) Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message