From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: parent transid verify failed on snapshot deletion
Date: Sun, 13 Mar 2016 03:54:45 +0000 (UTC) [thread overview]
Message-ID: <pan$c954b$14267bd6$8ef1d5a7$ce601fa2@cox.net> (raw)
In-Reply-To: 20160312204847.2092f3f3@natsu
Roman Mamedov posted on Sat, 12 Mar 2016 20:48:47 +0500 as excerpted:
> I wonder what's the best way to proceed here. Maybe try btrfs-zero-log?
> But the difference between transid numbers of 6 thousands is concerning.
btrfs-zero-log is a very specific tool designed to fix a very specific
problem, and transid differences >1 are not it.
I read your followup, posting btrfs check output and wondering about
enabling --repair, as well.
As long as you have a backup, shouldn't be a problem, even if it does
cause further damage (which it doesn't appear like it will in your case).
If you don't have a backup it shouldn't be a problem either, since the
very fact that you don't have a backup, indicates by your actions that
you consider the data at risk as of less value than the time, effort and
resources necessary to have that backup in the first place. As such,
even if you lose the data, you saved what was obviously more important
than that data to you, the time, effort and resources that you would have
otherwise put into making and testing that backup, so you're still coming
out ahead. =:^)
Which means the only case not clearly covered is that of data worth
having backed up, which you do, but the backup is somewhat stale, and as
long as the risk was theoretical, you didn't consider the chance of
something happening to the data updated since the backup worth more than
the cost of updating that backup. But now that the theoretical chance
has become reality, while loss of that incremental data isn't earth
shattering in its consequences, you'd prefer not to lose it if you can
save it without too much trouble. That's quite understandable, and is
the exact position I've been in myself a couple times.
In both my cases where I did end up actually giving up on repair and
eventually blowing away the filesystem, btrfs restore (before that blow-
away) was able to get me back the incremental changes since my last
proper backup. If it hadn't worked I'd have certainly lost some work and
been less than absolutely happy, but as I _did_ have backups (which by
the fact that I had them indicated I actually valued the data at risk at
something above trivial), they were simply somewhat stale, it wouldn't
have been the end of the world.
Of course in your case you _can_ mount, if only in read-only mode. So
take the opportunity you've been handed and update your backups (and of
course backups that haven't been verified readable/restorable aren't yet
completed backups, as a would-be backup isn't complete and can't really
be considered a backup yet, until that verification is done), just in
case, and then even in the worst-case scenario, btrfs check --repair
can't do more than inconvenience you a bit if it makes the problem worse
instead of fixing it, since you have current backups and will only need
to blow away the filesystem and recreate it fresh, in ordered to restore
them.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2016-03-13 3:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-12 15:48 parent transid verify failed on snapshot deletion Roman Mamedov
2016-03-12 17:15 ` Roman Mamedov
2016-03-13 9:24 ` Roman Mamedov
2016-03-13 17:03 ` Duncan
2016-03-13 17:24 ` Roman Mamedov
2016-03-13 20:10 ` Chris Murphy
2016-03-13 20:55 ` Roman Mamedov
2016-03-13 21:52 ` Chris Murphy
2016-03-17 8:39 ` Roman Mamedov
2016-03-13 3:54 ` Duncan [this message]
2016-03-13 20:54 ` Sylvain Joyeux
2016-03-17 8:32 ` "Fixed", " Roman Mamedov
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='pan$c954b$14267bd6$8ef1d5a7$ce601fa2@cox.net' \
--to=1i5t5.duncan@cox.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).