From owner-freebsd-fs@FreeBSD.ORG Wed Jan 10 13:38:02 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2960916A40F for ; Wed, 10 Jan 2007 13:38:02 +0000 (UTC) (envelope-from victorloureirolima@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id E3C1513C459 for ; Wed, 10 Jan 2007 13:38:01 +0000 (UTC) (envelope-from victorloureirolima@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so30866ana for ; Wed, 10 Jan 2007 05:38:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mbmBt1zkr5r7JOZOP2TNsjidi9hArK6N+veWlWRHARqDxTubrB9NhTgEMqGdA7u2K9G+6oo5emcmntmCReBQoeAVs/1WP7YmO4SgKszPGLWHEflZAWHvosbdc4ZYD6shTIL/65dNXQ2qXPYpRifykILusDTCW6VY7UZl0Lg4/u0= Received: by 10.100.48.7 with SMTP id v7mr237186anv.1168436281374; Wed, 10 Jan 2007 05:38:01 -0800 (PST) Received: by 10.100.109.16 with HTTP; Wed, 10 Jan 2007 05:38:01 -0800 (PST) Message-ID: Date: Wed, 10 Jan 2007 11:38:01 -0200 From: "Victor Loureiro Lima" To: freebsd-fs@freebsd.org, freebsd@scottevil.com In-Reply-To: <200701101139.l0ABdJ9K088810@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45A3C96A.6030307@scottevil.com> <200701101139.l0ABdJ9K088810@lurza.secnetix.de> Cc: Subject: Re: skipping fsck with soft-updates enabled X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 13:38:02 -0000 >From rc.conf man page: --- background_fsck_delay (int) The amount of time in seconds to sleep before starting a background fsck(8). It defaults to sixty seconds to allow large applications such as the X server to start before disk I/O bandwidth is monopolized by fsck(8). --- You can set the delay as long as you want, so it wont have to start right away, in fact it can start as late as a year (if thats really what you want ;)) att, victor loureiro lima 2007/1/10, Oliver Fromme : > Scott Oertel wrote: > > I am wondering what kind of problems would occur, besides lost space, if > > after a system crash a fsck is skipped. According to the documentation, > > with soft-updates enabled, the file system would be consistant, there > > would just be lost resources to be recovered which I am assuming can be > > safely done at a later time to avoid long periods of downtime during > > peek hours. > > I think that's exactly what the background fsck feature > does. If you enable it (which is even the default), the > fsck process doesn' start right away, so the system comes > up in multi-user mode immediately. Then a snapshot is > created on the file system, and fsck runs on the snap- > shot, freeing the lost space in the file system. > > Of course, it only works reliably with soft-updates enabled, > _and_ there must not be any unexpected inconsistencies. > However, with some common setups (e.g. cheap disks lying > about completed write operation) it is difficult to > guarantee the consistency. Soft-updates is rather fragile > when the hardware doesn't work exactly as it's supposed to. > I've witnessed breakage in the past, and for that reason > I always disable the background fsck feature. And it's the > reason I'm looking forward to gjournal to become stable, > because it seems to be less fragile in the presence of > imperfect hardware. > > Best regards > Oliver > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing > Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd > Any opinions expressed in this message may be personal to the author > and may not necessarily reflect the opinions of secnetix in any way. > > "C++ is to C as Lung Cancer is to Lung." > -- Thomas Funke > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >