All of lore.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 10:27:53 +0300	[thread overview]
Message-ID: <4C46A179.4070400@redhat.com> (raw)
In-Reply-To: <4C469350.3080008@oss.ntt.co.jp>

On 07/21/2010 09:27 AM, Takuya Yoshikawa wrote:
> Hi,
>
>
> We are now checking about what we should do on vm fail-over.
>
> Concerning this, does anybody know about any danger about data
> consistency when we are using shared disk?
>
>
> What I'm concerning is if crashed VM-side host is still holding
> buffered data, starting a new VM instance on another node may
> result in file system corruption.
>
>   This problem may similar to live-migration but little bit different
>   in the sense that VM is crashed -> cannot do anything from that point.
>   

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.

>
> How about the combination of old or new guest OS and the following
> settings?
>
>  - writethrough
>  - writeback
>  - none
>
> If needed, we'll do sync by HA-side scripts before starting a new VM
> instance.
>   

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.

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


  reply	other threads:[~2010-07-21  7:27 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 [this message]
2010-07-21  7:43   ` Takuya Yoshikawa
2010-07-21 10:46     ` Avi Kivity
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=4C46A179.4070400@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 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.