X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id oAEB4Yq1162317 for ; Sun, 14 Nov 2010 05:04:34 -0600 X-ASG-Debug-ID: 1289732762-460103590000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id D3EC213B8C51 for ; Sun, 14 Nov 2010 03:06:02 -0800 (PST) Received: from mail.internode.on.net (bld-mail19.adl2.internode.on.net [150.101.137.104]) by cuda.sgi.com with ESMTP id w5Yqkz8vb6XBZtgv for ; Sun, 14 Nov 2010 03:06:02 -0800 (PST) Received: from dastard (unverified [121.44.100.105]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 45801276-1927428 for multiple; Sun, 14 Nov 2010 21:36:01 +1030 (CDT) Received: from dave by dastard with local (Exim 4.71) (envelope-from ) id 1PHaPH-0002id-6T; Sun, 14 Nov 2010 22:05:59 +1100 Date: Sun, 14 Nov 2010 22:05:59 +1100 From: Dave Chinner To: Eli Morris Cc: Michael Monnerie , xfs@oss.sgi.com X-ASG-Orig-Subj: Re: xfs_repair of critical volume Subject: Re: xfs_repair of critical volume Message-ID: <20101114110559.GB22876@dastard> References: <75C248E3-2C99-426E-AE7D-9EC543726796@ucsc.edu> <4CCD3CE6.8060407@hardwarefreak.com> <864DA9C9-B4A4-4B6B-A901-A457E2B9F5A5@ucsc.edu> <201011121422.28993@zmi.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Barracuda-Connect: bld-mail19.adl2.internode.on.net[150.101.137.104] X-Barracuda-Start-Time: 1289732764 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.46595 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Fri, Nov 12, 2010 at 03:01:47PM -0800, Eli Morris wrote: > > On Nov 12, 2010, at 5:22 AM, Michael Monnerie wrote: > > > On Freitag, 12. November 2010 Eli Morris wrote: > >> The filesystem must be pointing to files that don't exist, or > >> something like that. Is there a way to fix that, to say, remove > >> files that don't exist anymore, sort of command? I thought that > >> xfs_repair would do that, but apparently not in this case. > > > > The filesystem is not optimized for "I replace part of the disk contents > > with zeroes" and find that errors. You will have to look in each file if > > it's contents are still valid, or maybe bogus. .... > Let me see if I can give you and everyone else a little more > information and clarify this problem somewhat. And if there is > nothing practical that can be done, then OK. What I am looking for > is the best PRACTICAL outcome here given our resources and if > anyone has an idea that might be helpful, that would be awesome. I > put practical in caps, because that is the rub in all this. We > could send X to a data recovery service, but there is no money for > that. We could do Y, but if it takes a couple of months to > accomplish, it might be better to do Z, even though Z is riskier > or deletes some amount of data, because it is cheap and only takes > one day to do.. Well, the best thing you can do is work out where in the block device the zeroed range was, and then walk the entire filesystem running xfs_bmap on every file to work out where their physical extents are. i.e. build a physical block map of the good and bad regions, then find what files have bits in the bad regions. I've seen this done before with a perl script, and shouldn't take more than a few hours to write and run.... Cheers, Dave. -- Dave Chinner david@fromorbit.com