linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Anton Shepelev <anton.txt@gmail.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: CRC mismatch
Date: Wed, 17 Oct 2018 07:59:39 -0400	[thread overview]
Message-ID: <6e6fc20f-94ef-55e6-66da-cc6947b86ce9@gmail.com> (raw)
In-Reply-To: <CAJCQCtRrqOf+AzkH+-z++GTx9+Mh0-wA5PqQB9g0kDhBBCJ2qQ@mail.gmail.com>

On 2018-10-16 16:27, Chris Murphy wrote:
> On Tue, Oct 16, 2018 at 9:42 AM, Austin S. Hemmelgarn
> <ahferroin7@gmail.com> wrote:
>> On 2018-10-16 11:30, Anton Shepelev wrote:
>>>
>>> Hello, all
>>>
>>> What may be the reason of a CRC mismatch on a BTRFS file in
>>> a virutal machine:
>>>
>>>      csum failed ino 175524 off 1876295680 csum 451760558
>>>      expected csum 1446289185
>>>
>>> Shall I seek the culprit in the host machine on in the guest
>>> one?  Supposing the host machine healty, what operations on
>>> the gueest might have caused a CRC mismatch?
>>>
>> Possible causes include:
>>
>> * On the guest side:
>>    - Unclean shutdown of the guest system (not likely even if this did
>> happen).
>>    - A kernel bug on in the guest.
>>    - Something directly modifying the block device (also not very likely).
>>
>> * On the host side:
>>    - Unclean shutdown of the host system without properly flushing data from
>> the guest.  Not likely unless you're using an actively unsafe caching mode
>> for the guest's storage back-end.
>>    - At-rest data corruption in the storage back-end.
>>    - A bug in the host-side storage stack.
>>    - A transient error in the host-side storage stack.
>>    - A bug in the hypervisor.
>>    - Something directly modifying the back-end storage.
>>
>> Of these, the statistically most likely location for the issue is probably
>> the storage stack on the host.
> 
> Is there still that O_DIRECT related "bug" (or more of a limitation)
> if the guest is using cache=none on the block device?
I had actually forgotten about this, and I'm not quite sure if it's 
fixed or not.
> 
> Anton what virtual machine tech are you using? qemu/kvm managed with
> virt-manager? The configuration affects host behavior; but the
> negative effect manifests inside the guest as corruption. If I
> remember correctly.
> 


  parent reply	other threads:[~2018-10-17 11:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-16 15:30 CRC mismatch Anton Shepelev
2018-10-16 15:42 ` Austin S. Hemmelgarn
2018-10-16 20:27   ` Chris Murphy
2018-10-17  9:15     ` Anton Shepelev
2018-10-17 11:59     ` Austin S. Hemmelgarn [this message]
2018-10-18 12:02 ` Anton Shepelev
2018-10-18 12:34   ` 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=6e6fc20f-94ef-55e6-66da-cc6947b86ce9@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=anton.txt@gmail.com \
    --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).