From: Chris Mason <clm@fb.com>
To: "lists@colorremedies.com" <lists@colorremedies.com>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
"1i5t5.duncan@cox.net" <1i5t5.duncan@cox.net>
Subject: Re: systemd-journal, nodatacow, was: Is anyone using btrfs send/receive for backups instead of rsync?
Date: Mon, 30 Dec 2013 16:00:53 +0000 [thread overview]
Message-ID: <1388419281.11341.4.camel@ret.masoncoding.com> (raw)
In-Reply-To: <9B8C24F7-2F6C-4879-9A21-6A6D940BE4C1@colorremedies.com>
On Sun, 2013-12-29 at 17:38 -0700, Chris Murphy wrote:
> On Dec 29, 2013, at 5:39 AM, Duncan <1i5t5.duncan@cox.net> wrote:
>
> > Yes, it does turn off checksumming as well as COW, but given the write-
> > into scenario, that's actually best anyway, because otherwise btrfs has
> > to keep updating the checksums
>
> On second thought, I'm less concerned with bitrot and checksumming being lost with nodatacow, than I am with significantly increasing the chance the journal is irreparably lost due to corruption during an unclean shutdown.
So first, send/receive + nowcow aren't a great combination. NOCOW won't
update the generation numbers send/receive needs to find changes. The
best send/receive can do in that case is send over the entire file.
>
> > But in all these cases, it's also quite common for the application doing
> > the writing to have its own checksumming/error-detection and possible
> > correction -- it pretty much comes with the territory -- in which case
> > btrfs attempting to do the same is simply superfluous even if it weren't
> > a race-condition trigger.
>
> I don't know what kind of checksumming systemd performs on the journal, but whenever Btrfs has found corruption with the journal file(s), systemd-journald has also found corruption and starts a new log. So it makes sense to rely on its own mechanisms, than Btrfs's.
>
The autodefrag mode was really made for the small databases like
systemd. I'd prefer that we use that for systemd instead of suggesting
NOCOW. I'm finally dusting off my work to improve db performance, so
hopefully we can do much better in the near future.
-chris
next prev parent reply other threads:[~2013-12-30 16:01 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-28 17:19 Is anyone using btrfs send/receive for backups instead of rsync? Marc MERLIN
2013-12-28 17:37 ` Hugo Mills
2013-12-28 18:01 ` Emil Karlson
2013-12-28 19:34 ` Richard Michael
2013-12-28 19:52 ` Emil Karlson
2013-12-28 20:34 ` Richard Michael
2013-12-28 23:11 ` Chris Murphy
2013-12-28 23:55 ` Emil Karlson
2013-12-29 0:08 ` Chris Murphy
2013-12-29 12:39 ` Duncan
2013-12-30 0:38 ` systemd-journal, nodatacow, was: " Chris Murphy
2013-12-30 8:07 ` Duncan
2013-12-30 16:00 ` Chris Mason [this message]
2013-12-28 18:07 ` Marc MERLIN
2013-12-28 18:20 ` Marc MERLIN
2013-12-30 16:05 ` Chris Mason
2013-12-30 16:17 ` Marc MERLIN
2013-12-30 16:26 ` Chris Mason
2013-12-30 17:10 ` Marc MERLIN
2013-12-30 17:48 ` Chris Murphy
2013-12-30 17:57 ` Marc MERLIN
2013-12-30 18:39 ` Chris Murphy
2014-01-03 20:15 ` Marc MERLIN
2014-01-03 20:35 ` Chris Mason
2014-01-07 10:49 ` Is anyone using btrfs send/receive howto? Marc MERLIN
2014-01-07 10:53 ` Hugo Mills
2014-01-08 8:02 ` Marc MERLIN
2014-03-21 17:29 ` Send/Receive howto and script for others to use (was Re: Is anyone using btrfs send/receive) Marc MERLIN
2014-03-22 19:44 ` Brendan Hide
2014-03-22 19:53 ` Brendan Hide
2014-03-22 20:00 ` Marc MERLIN
2014-03-22 21:02 ` Brendan Hide
2014-03-22 21:11 ` Marc MERLIN
2014-03-23 7:12 ` Brendan Hide
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=1388419281.11341.4.camel@ret.masoncoding.com \
--to=clm@fb.com \
--cc=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.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;
as well as URLs for NNTP newsgroup(s).