linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Calvin Walton <calvin.walton@kepstin.ca>
To: OmegaPhil <OmegaPhil@startmail.com>,
	Duncan <1i5t5.duncan@cox.net>,
	linux-btrfs@vger.kernel.org, Hugo Mills <hugo@carfax.org.uk>
Subject: Re: Unable to allocate for space usage in particular btrfs volume
Date: Fri, 06 Nov 2015 15:15:56 -0500	[thread overview]
Message-ID: <1446840956.3899.13.camel@kepstin.ca> (raw)
In-Reply-To: <563B3323.8080609@startmail.com>

On Thu, 2015-11-05 at 10:44 +0000, OmegaPhil wrote:
> On 05/11/15 04:18, Duncan wrote:
> > OmegaPhil posted on Wed, 04 Nov 2015 21:53:09 +0000 as excerpted:
> > VM image files (and large database files, for the same reason) are
> > a bit 
> > of a problem on btrfs, and indeed, any COW-based filesystem, since
> > the 
> > random rewrite pattern matching that use-case is pretty much the
> > absolute 
> > worst-case match for a COW-based filesystem there is.
> > Since you're not doing snapshotting (which conflicts with this
> > option, 
> > with an imperfect workaround), setting nocow on those files may
> > well 
> > eliminate the problem, but be aware if you aren't already that (1)
> > nocow 
> > does turn off checksumming as well, in ordered to avoid a race that
> > could 
> > easily lead to data corruption, and (2) you can't just activate

> So a couple of gig still unaccountable but irrelevant. Thanks,
> problem
> solved! Although hopefully checksumming will be allowed on nocow
> files
> in the future as thats currently 17% of all data unprotected and will
> get worse...

There's actually an interesting workaround to this: Although the VM
disk images aren't checksummed on the host filesystem, you can use
btrfs *inside* the VMs and enable checksumming there. The downside is
that you can only verify the VM data by booting the VM and running a
scrub from inside.

This of course doesn't help if your VMs are Windows or legacy versions
of Linux without btrfs support. On BSD you could try ZFS.

-- 
Calvin Walton <calvin.walton@kepstin.ca>


  parent reply	other threads:[~2015-11-06 20:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04 21:10 Unable to allocate for space usage in particular btrfs volume OmegaPhil
2015-11-04 21:30 ` Hugo Mills
2015-11-04 21:53   ` OmegaPhil
2015-11-05  4:18     ` Duncan
2015-11-05 10:44       ` OmegaPhil
2015-11-05 11:49         ` Hugo Mills
2015-11-06 20:15         ` Calvin Walton [this message]
2015-11-06 20:35           ` Austin S Hemmelgarn

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=1446840956.3899.13.camel@kepstin.ca \
    --to=calvin.walton@kepstin.ca \
    --cc=1i5t5.duncan@cox.net \
    --cc=OmegaPhil@startmail.com \
    --cc=hugo@carfax.org.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 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).