From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q3K8LWmF200194 for ; Fri, 20 Apr 2012 03:21:34 -0500 Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by cuda.sgi.com with ESMTP id yJm5Xj1kNiSDkItP for ; Fri, 20 Apr 2012 01:21:30 -0700 (PDT) Date: Fri, 20 Apr 2012 18:21:27 +1000 From: Dave Chinner Subject: Re: XFS restored to lost and found Message-ID: <20120420082127.GF9541@dastard> References: <4F90F45F.2010507@neulion.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4F90F45F.2010507@neulion.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Nick Hollingsworth Cc: xfs@oss.sgi.com On Thu, Apr 19, 2012 at 10:30:07PM -0700, Nick Hollingsworth wrote: > Hi all, > > So I've managed to corrupt an XFS files system running on software > RAID. How exactly I'm not sure....it may have been when using CentOS > rescue when trying to get the system to boot. > > Using xfs_repair with various options I've managed to get the FS to > a state where it'll mount but there are no directories only inode > numbers in the lost and found directory. Sounds like the root directory got corrupted/overwritten by something and so the entire directory heirarchy got moved into lost+found. The inode numbers are used because the names are held in the directory blocks and they couldn't be found. > Is there any way to remap these back to directories? You'll need to examine the contents of every directory and file in lost+found to work out where they cames from. if you are lucky, it'll only be the root directory entries that are in lost_found and the rest of the directories heirarchy will still be intact.... > Any ideas how I may have gotten into this mess? No. It's too late to try an diagnose now, too. Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs