Received: with ECARTIS (v1.0.0; list linux-xfs); Sun, 29 Aug 2004 13:44:49 -0700 (PDT) Received: from pimout2-ext.prodigy.net (pimout2-ext.prodigy.net [207.115.63.101]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i7TKij7w009363 for ; Sun, 29 Aug 2004 13:44:47 -0700 Received: from taniwha.stupidest.org (adsl-63-202-174-89.dsl.snfc21.pacbell.net [63.202.174.89]) by pimout2-ext.prodigy.net (8.12.10 milter /8.12.10) with ESMTP id i7TKiVK6084734; Sun, 29 Aug 2004 16:44:31 -0400 Received: by taniwha.stupidest.org (Postfix, from userid 38689) id DCC3D115C874; Sun, 29 Aug 2004 13:44:30 -0700 (PDT) Date: Sun, 29 Aug 2004 13:44:30 -0700 From: Chris Wedgwood To: mike Cc: linux-xfs@oss.sgi.com Subject: Re: Linux/XFS equivalents of defrag, chkdsk? Message-ID: <20040829204430.GA11930@taniwha.stupidest.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-archive-position: 4005 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: cw@f00f.org Precedence: bulk X-list: linux-xfs Content-Length: 1182 Lines: 37 On Sun, Aug 29, 2004 at 01:24:22PM -0700, mike wrote: > Are there Linux equivalents for the XFS filesystem for chkdsk (fsck > -n seemed like the only possibility and it does not work) or defrag? yes and no xfs_repair can detect and repair damage for file-systems which are *not* in use xfs_fsr tries to reduce the fragmention of files there are not really the sane and windows chkdsk or defrag though > Perhaps the way XFS runs, defrag is useless/not required. file fragmentation shouldn't be a big issue with the exception of a a few applications / usage patterns (p2p applications are actually make this hard but that's true for all filesystems pretty much) > But it would be nice to be able to check filesystem consistency > (while it's mounted, so it'd be read-only checking obviously) can't really be done reliably, i guess you could snapshot, clone and check the clone, but it's really a hack > before something happens or while it's not in the process of booting > the machine. most people don't need to check the fs whilst it's mounted, file-system problems shouldn't occur that often if they are, something is wrong and it should be fixed --cw