From: Noah Massey <noah.massey@gmail.com>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Kernel Dump scanning directory
Date: Fri, 8 May 2015 18:06:31 -0400 [thread overview]
Message-ID: <CADfjVrh9_-0OMxFjfOS4WP2Z6jLfs6RDEvGm7Y_fZOQXi2Kd9Q@mail.gmail.com> (raw)
In-Reply-To: <D7C742B6-7DD3-49F3-B49A-4C8FD5B97527@plack.net>
On Fri, May 8, 2015 at 5:37 PM, Anthony Plack <tmy@plack.net> wrote:
>
>> On May 8, 2015, at 3:58 PM, Duncan <1i5t5.duncan@cox.net> wrote:
>>
>> And then I wasn't quite so concerned either about losing something
>> critical in the log, or the safety of simply blowing it away, since by
>> design, the log only deals with what hasn't been committed yet, and the
>> commits are themselves designed to be atomic and leave the filesystem in
>> a known good state.
>>
>
> Duncan,
> Thank you for joining me in my monolog here.
>
> 30 seconds on a server can be allot of data, and is to small of a time span for adequate backups to occur. What you say makes sense, however, without this fixed going forward, BTRFS can never become a serious data storage file system.
>
Standard disclaimer: not a dev, just a user.
I believe the email Duncan referred to was
http://www.spinics.net/lists/linux-btrfs/msg43407.html
and my understanding was slightly different than his summary.
If I understood correctly, by the time an fsync returns success, the
BTRFS log will contain all the data needed to comply with the fsync
guarantee ("This data has been safely written to media").
If the system goes down before the next full transaction commit
(default 30 seconds), then on next rw mount, BTRFS will replay log.
The resulting filesystem state is the state of last transaction +
fsynced data.
In the event of log corruption, BTRFS may experience failures replaying the log.
In this case, you can zero the log: then the filesystem state becomes
the last transaction, without the last 30 seconds.
Normal operation should not result in a corrupt log, since the log is
it's own COW tree and is coherently on media before fsync returns.
next prev parent reply other threads:[~2015-05-08 22:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 21:56 Kernel Dump scanning directory Anthony Plack
2015-05-07 14:33 ` Anthony Plack
2015-05-07 21:30 ` Anthony Plack
2015-05-08 16:44 ` Anthony Plack
2015-05-08 20:58 ` Duncan
2015-05-08 21:37 ` Anthony Plack
2015-05-08 22:06 ` Duncan
2015-05-08 22:06 ` Noah Massey [this message]
2015-05-08 21:18 ` Hugo Mills
2015-05-08 21:49 ` Anthony Plack
2015-05-08 22:37 ` Hugo Mills
2015-05-11 17:30 ` Anthony Plack
2015-05-12 6:33 ` Duncan
2015-05-08 22:01 ` Kernel Dump scanning directory - New Scary Issue Anthony Plack
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=CADfjVrh9_-0OMxFjfOS4WP2Z6jLfs6RDEvGm7Y_fZOQXi2Kd9Q@mail.gmail.com \
--to=noah.massey@gmail.com \
--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).