All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Christian Wimmer <telefonchris@icloud.com>
Cc: Chris Murphy <lists@colorremedies.com>,
	Qu Wenruo <quwenruo.btrfs@gmx.com>, Qu WenRuo <wqu@suse.com>,
	Anand Jain <anand.jain@oracle.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: 12 TB btrfs file system on virtual machine broke again (fourth time)
Date: Mon, 13 Jan 2020 13:03:10 -0700	[thread overview]
Message-ID: <CAJCQCtRyr17kdSdozU4_ZxJL_VdCWZe7DCCuUuz0cy2AiJs3=A@mail.gmail.com> (raw)
In-Reply-To: <5EFA3F48-29DA-4D02-BF14-803DBEEB6BB2@icloud.com>

On Mon, Jan 13, 2020 at 12:41 PM Christian Wimmer
<telefonchris@icloud.com> wrote:
>
> Hi guys,
>
> just to update you.
>
> I tried a 4th time with a brand new 12 TB archive and right after setting up everything and putting some data on it I performed a controlled suspend and restore and so on and yes, it broke again with that terrible messages that it can not mount any more the file system.
>
> Then I decided to create only 2TB archives (hard disks) as the slider in the Parallels VM suggests to do.
> I created 4 x 2TB files, one with persistent size and three expandable.
> I filled up all hard discs with data and rebooted 5 times (even when writing data to it) and everything runs very stable.
>
> So to resume, the Parallels Virtual machine has a problem when the virtual disk is being selected bigger than 2TB. There is (and was) never a problem with the btrfs files system I think.
>
> Sorry for bothering you all the time with my bad setup.
>
> Thanks a lot for all your help!

Yeah it's no problem. I mean, there's no way to know in advance that
the setup is bad, it has to be proven. And with any complicated setup,
it's really tedious to find out where the problem is happening. And
even still it's not certain if this is some bug flushing to Parallels,
or if it's getting the flush and not doing it completely for very
large backing files, or if the host OS file system or block device
drive is dropping something.

There are definitely bugs in Btrfs too so you can't absolutely exclude
the possibility, but those look different. They tend to be pernicious.
Whereas in your case these problems appeared quickly, back to back.
But also it's super complicated, multiple layers have to all work
exactly right or there will be problems. I would be very skeptical of
VM guest suspend with any file system. It should be true there is fs
sync that happens when the guest kernel is told to suspend, but then
what happens to that flush once it's in the VM or hypervisor? *shrug*
How long does it take to actually get from VM all the way to stable
media?

Because necessarily you have to consider worst case scenario, like
doing file writes and a complete loss of power. Since Btrfs and kernel
block layers aren't directly responsible for writing to the disks,
it's ambiguous exactly when and in what order, the writes do get to
stable media.

Ok so now what? It's entirely possible you've totally eliminated the
problem. Or it might be possible you've only reduced the chance it'll
happen - meaning something like it will happen at some point.

Is it superfluous extra work for no benefit, to unmount this Btrfs
file system, or use fsfreeze, prior to suspending the VM? Or never
suspend the VM? Or maybe the non-default mount option flushoncommit is
useful in this case? It's a huge hassle to have to rebuild a 12TB
volume, it's a high penalty.

-- 
Chris Murphy

  reply	other threads:[~2020-01-13 20:03 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06  3:44 [PATCH] btrfs-progs: Skip device tree when we failed to read it Qu Wenruo
2019-12-06  6:12 ` Anand Jain
2019-12-06 15:50   ` Christian Wimmer
2019-12-06 16:34   ` Christian Wimmer
     [not found]   ` <762365A0-8BDF-454B-ABA9-AB2F0C958106@icloud.com>
2019-12-07  1:16     ` Qu WenRuo
2019-12-07  3:47       ` Christian Wimmer
2019-12-07  4:31         ` Qu Wenruo
2019-12-07 13:03           ` Christian Wimmer
2019-12-07 14:10             ` Qu Wenruo
2019-12-07 14:25               ` Christian Wimmer
2019-12-07 16:44               ` Christian Wimmer
2019-12-08  1:21                 ` Qu WenRuo
2019-12-10 21:25                   ` Christian Wimmer
2019-12-11  0:36                     ` Qu Wenruo
2019-12-11 15:57                       ` Christian Wimmer
     [not found]           ` <9FB359ED-EAD4-41DD-B846-1422F2DC4242@icloud.com>
2020-01-04 17:07             ` 12 TB btrfs file system on virtual machine broke again Christian Wimmer
2020-01-05  4:03               ` Chris Murphy
2020-01-05 13:40                 ` Christian Wimmer
2020-01-05 14:07                   ` Martin Raiber
2020-01-05 14:14                     ` Christian Wimmer
2020-01-05 14:23                       ` Christian Wimmer
2020-01-05  4:25               ` Qu Wenruo
2020-01-05 14:17                 ` Christian Wimmer
2020-01-05 18:50                   ` Chris Murphy
2020-01-05 19:18                     ` Christian Wimmer
2020-01-05 19:36                       ` Chris Murphy
2020-01-05 19:49                         ` Christian Wimmer
2020-01-05 19:52                         ` Christian Wimmer
2020-01-05 20:34                           ` Chris Murphy
2020-01-05 20:36                             ` Chris Murphy
     [not found]                         ` <3F43DDB8-0372-4CDE-B143-D2727D3447BC@icloud.com>
2020-01-05 20:30                           ` Chris Murphy
2020-01-05 20:36                             ` Christian Wimmer
2020-01-05 21:13                               ` Chris Murphy
2020-01-05 21:58                                 ` Christian Wimmer
2020-01-05 22:28                                   ` Chris Murphy
2020-01-06  1:31                                     ` Christian Wimmer
2020-01-06  1:33                                     ` Christian Wimmer
2020-01-11 17:04                                     ` 12 TB btrfs file system on virtual machine broke again (third time) Christian Wimmer
2020-01-11 17:23                                     ` Christian Wimmer
2020-01-11 19:46                                       ` Chris Murphy
2020-01-13 19:41                                         ` 12 TB btrfs file system on virtual machine broke again (fourth time) Christian Wimmer
2020-01-13 20:03                                           ` Chris Murphy [this message]
2020-01-31 16:35                                             ` btrfs not booting any more Christian Wimmer
2020-05-08 12:20                                             ` btrfs reports bad key ordering after out of memory situation Christian Wimmer
2020-01-05 23:50                   ` 12 TB btrfs file system on virtual machine broke again Qu Wenruo
2020-01-06  1:32                     ` Christian Wimmer
2020-01-11  7:25                     ` Andrei Borzenkov
2021-10-15 21:01                     ` need help in a broken 2TB BTRFS partition Christian Wimmer
2021-10-16 10:08                       ` Qu Wenruo
2021-10-16 17:29                         ` Christian Wimmer
2021-10-16 22:55                           ` Qu Wenruo
2021-10-16 17:35                         ` Christian Wimmer
2021-10-16 23:27                           ` Qu Wenruo

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='CAJCQCtRyr17kdSdozU4_ZxJL_VdCWZe7DCCuUuz0cy2AiJs3=A@mail.gmail.com' \
    --to=lists@colorremedies.com \
    --cc=anand.jain@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo.btrfs@gmx.com \
    --cc=telefonchris@icloud.com \
    --cc=wqu@suse.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 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.