All of lore.kernel.org
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@gmail.com>
To: "Piotr Pawłow" <pp@siedziba.pl>
Cc: Linux Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs and LVM snapshots (Re: kernel BUG at fs/btrfs/extent-tree.c:1772)
Date: Sun, 10 Feb 2013 14:28:17 +0100	[thread overview]
Message-ID: <5117A071.8060607@gmail.com> (raw)
In-Reply-To: <5116EAA1.1030901@siedziba.pl>

On 02/10/2013 01:32 AM, Piotr Pawłow wrote:
> Hello,
>> Yeah you can't mount images, we clear out the chunk tree so
>> nothing works. Let me know if you run into any problems in the
>> future.  Thanks,
> 
> That's surprising, I haven't seen it mentioned anywhere.
> 
> With any other filesystem I could use an LVM snapshot to save the 
> original state, but with a multi-device btrfs it would be very
> risky. Origin and snapshot volumes could easily get mixed up by
> kernel and tools.
> 
> I tried that in qemu, and I've seen btrfs happily mount 1 origin and
> 1 snapshot device as a single FS. And then I've seen it mount both
> origin devices, even though one of them had old content. Naturally
> it complained a lot about bad checksums.

I can confirm that, even with a single-device btrfs filesystem. However
I am curious why you want to use the lvm snapshot capability instead of
the btrfs one.
> 
> Is there any way to avoid such mix-ups? To somehow mark devices so
> that btrfs would know these devices belong together?

Btrfs assume that every device has an "unique" uuid. However when a
device is snapshotted it uuid is copied too, so it is not unique any
more. This is the reason of the btrfs confusing.


> Regards -- To unsubscribe from this list: send the line "unsubscribe
> linux-btrfs" in the body of a message to majordomo@vger.kernel.org 
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5
ss

  reply	other threads:[~2013-02-10 13:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-03 23:37 kernel BUG at fs/btrfs/extent-tree.c:1772 "Piotr Pawłow"
2013-02-04  7:41 ` kernel BUG at fs/btrfs/extent-tree.c:1755 (was: 1772) "Piotr Pawłow"
2013-02-04  9:16   ` "Piotr Pawłow"
2013-02-04 16:58 ` kernel BUG at fs/btrfs/extent-tree.c:1772 Josef Bacik
2013-02-05  8:55   ` "Piotr Pawłow"
2013-02-05 13:51     ` Josef Bacik
2013-02-10  0:32       ` btrfs and LVM snapshots (Re: kernel BUG at fs/btrfs/extent-tree.c:1772) Piotr Pawłow
2013-02-10 13:28         ` Goffredo Baroncelli [this message]
2013-02-12 21:39           ` Piotr Pawłow

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=5117A071.8060607@gmail.com \
    --to=kreijack@gmail.com \
    --cc=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=pp@siedziba.pl \
    /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.