All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin <m_btrfs@ml1.co.uk>
To: linux-btrfs@vger.kernel.org
Subject: btrfs recovery: What do the commands actually do?
Date: Fri, 04 Oct 2013 16:47:19 +0100	[thread overview]
Message-ID: <l2mntu$416$1@ger.gmane.org> (raw)

There's ad-hoc comment for various commands to recover from filesystem
errors.

But what do they actually do and when should what command be used?

(The wiki gives scant indication other than to 'blindly' try things...)


There's:

mount "-o recovery,noatime"

btrfsck:
    --repair                    try to repair the filesystem
    --init-csum-tree            create a new CRC tree
    --init-extent-tree          create a new extent tree

And there is "scrub"...


What do they do exactly and what are the indicators to try using them?

Or when should you 'give up' on a filsystem and just retrieve whatever
data can be read and start again?


All that lot sounds good for a wiki page ;-)

Thanks,
Martin



             reply	other threads:[~2013-10-04 15:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04 15:47 Martin [this message]
2013-10-04 18:32 ` btrfs recovery: What do the commands actually do? Duncan
2013-10-04 18:54   ` Martin

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='l2mntu$416$1@ger.gmane.org' \
    --to=m_btrfs@ml1.co.uk \
    --cc=linux-btrfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.