public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Javier Guerra <javier@guerrag.com>
Cc: carlopmart <carlopmart@gmail.com>, kvm@vger.kernel.org
Subject: Re: Sharing disks between two kvm guests
Date: Fri, 20 Jun 2008 21:28:47 +0300	[thread overview]
Message-ID: <485BF6DF.5030903@qumranet.com> (raw)
In-Reply-To: <90eb1dc70806200707k4e08c4d7s41708fc9f84c2a3c@mail.gmail.com>

Javier Guerra wrote:
> i tried this looong ago and didn't really work because there was some
> userspace cache on each QEMU instance.  but the -drive option has a
> 'cache=off' setting that should be enough.
>
> in theory (i haven't tested, but Avi 'blessed' it):
> - create a new image with qemu-img
> - add it to the command line using -drive file=xxx,cache=off on both
> KVM instances
> - use a cluster filesystem!
>   

This won't work with qcow images as metadata and allocation is not 
synchronized.  Use raw images.  cache=off is not strictly required, 
since the Linux pagecache will maintain coherency.

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


      parent reply	other threads:[~2008-06-20 18:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20  8:57 Sharing disks between two kvm guests carlopmart
2008-06-20 11:04 ` Felix Leimbach
2008-06-20 12:23   ` carlopmart
2008-06-20 14:07     ` Javier Guerra
2008-06-20 16:32       ` Laurent Vivier
2008-06-20 16:37         ` Anthony Liguori
2008-06-20 18:54           ` Laurent Vivier
2008-06-20 19:30             ` Anthony Liguori
2008-06-20 18:28       ` Avi Kivity [this message]

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=485BF6DF.5030903@qumranet.com \
    --to=avi@qumranet.com \
    --cc=carlopmart@gmail.com \
    --cc=javier@guerrag.com \
    --cc=kvm@vger.kernel.org \
    /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