public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Carsten Aulbert <carsten.aulbert@aei.mpg.de>
Cc: xfs@oss.sgi.com
Subject: Re: Map a disk LBA to filename?
Date: Mon, 27 Oct 2008 22:49:45 +1100	[thread overview]
Message-ID: <20081027114945.GE4985@disturbed> (raw)
In-Reply-To: <4905A3FB.6080709@aei.mpg.de>

On Mon, Oct 27, 2008 at 12:20:27PM +0100, Carsten Aulbert wrote:
> Hi all,
> 
> I have not found it in the archive, thus my question to all:
> 
> Along the lines of this doc
> http://smartmontools.sourceforge.net/BadBlockHowTo.txt
> 
> I would like to find out if that's also possible for XFS, i.e. I have a
> disk which tells me, that there is a problem with LBA x and I identify
> that this block is within the range of a largish XFS file system.
> 
> Now, I would like to identify the file which is possibly broken and
> repair it if I can without taking the machine down for hours running the
> manufacturers DOS tools. With simple ext[23] this is possible, but I'm
> not getting anywhere with reading xfs_db and xfs_ncheck man pages to get
> there.
> 
> Anyone here with a brief recipe I can get along with?

Use xfs_bmap to find the location on disk of the extents in each
file. Recurse over the filesystem until you find the file that owns
the block that went bad.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2008-10-27 11:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 11:20 Map a disk LBA to filename? Carsten Aulbert
2008-10-27 11:49 ` Dave Chinner [this message]
2008-10-27 12:31   ` Carsten Aulbert
2008-10-27 13:03     ` Michal Soltys
2008-10-27 13:54       ` Carsten Aulbert
2008-10-27 15:56         ` Michal Soltys
2008-10-27 23:35       ` Dave Chinner
2008-10-28  7:11         ` Carsten Aulbert
2008-10-28  7:21           ` Dave Chinner
2008-10-28  7:38             ` Carsten Aulbert
2008-10-28  7:52               ` KELEMEN Peter
2008-10-28  9:14               ` Carsten Aulbert
2008-10-28  9:38                 ` KELEMEN Peter
2008-10-28  9:52                   ` Justin Piszcz
2008-10-30  5:23                   ` Dave Chinner
2008-10-28  9:51                 ` Michal Soltys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081027114945.GE4985@disturbed \
    --to=david@fromorbit.com \
    --cc=carsten.aulbert@aei.mpg.de \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox