public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Cc: KVM list <kvm@vger.kernel.org>
Subject: Re: Question: data consistency on fail-over using shared disk
Date: Wed, 21 Jul 2010 13:46:27 +0300	[thread overview]
Message-ID: <4C46D003.5030300@redhat.com> (raw)
In-Reply-To: <4C46A505.4000503@oss.ntt.co.jp>

On 07/21/2010 10:43 AM, Takuya Yoshikawa wrote:
>
>> If the VM can't do anything, you're safe. Of course a crash doesn't mean
>> a VM can't do anything, you typically need to isolate it by resetting
>> the host or having a switch disconnect its storage and network.
>>
>>     
> Thanks,
> We are starting to manage the "only VM crashed" case by HA.
> So yes, we need to reset the host.
>   

It may be sufficient to issue a sync(2).


>> I believe nothing special is needed, as long as a crash means both the
>> qemu and host kernel crashed. If only qemu crashed, then the writeback
>> case needs buffers flushed.
>>
>>     
> My main concern is only qemu crashed and host is alive case.
>
> Host memory is typically large, so we want to eliminate flushing everything
> if possible.
>
> So we don't need to flush in the case of writethrough = RHEL default ?
>   

No. But you do need to unmount the underlying host filesystem.

I recommend using cache=none and direct volume access, this is easier to
guarantee integrity.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


  reply	other threads:[~2010-07-21 10:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-21  6:27 Question: data consistency on fail-over using shared disk Takuya Yoshikawa
2010-07-21  7:27 ` Avi Kivity
2010-07-21  7:43   ` Takuya Yoshikawa
2010-07-21 10:46     ` Avi Kivity [this message]
2010-07-22  0:41       ` Fernando Luis Vázquez Cao

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=4C46D003.5030300@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=yoshikawa.takuya@oss.ntt.co.jp \
    /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