From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] qemu: use statically allocate 512 byte buffer in the stack for sector in bdrv_commit Date: Mon, 07 Jan 2008 20:32:12 +0200 Message-ID: <4782702C.1080007@qumranet.com> References: <20080104071138.GB9285@tapir> <4781F08E.8060407@qumranet.com> <1199701358.19008.1.camel@frecb07144> <4782034C.4000805@qumranet.com> <1199719004.23380.22.camel@frecb07144> <90eb1dc70801070734l2062cac6r7a7bed1d6d3d2c0c@mail.gmail.com> <1199720749.23380.29.camel@frecb07144> <90eb1dc70801070803w1a863acs75677e707446f79a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Laurent Vivier To: Javier Guerra Return-path: In-Reply-To: <90eb1dc70801070803w1a863acs75677e707446f79a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Javier Guerra wrote: > to test a cluster filesystem, i need two (virtual) machines with some > shared storage. i tried long ago something like this (with (k)qemu): > > - create a disk image, call it hda-1.img > - boot and install linux on it, shutdown > - copy to hda-2.img > - boot it (with new MAC) and change IP, hostname, little things, shutdown > - boot both with the same bridge, check that network works between them > - create a new disk image, call id hdb-shr.img > - boot both VMs, sharing hdb-shr.img: > > qemu -hda=hda-1.img -hdb-shr.img > qemu -hda=hda-2.img -hdb-shr.img > > - try to setup a cluster filesystem on hdb > > it almost worked... but some writes didn't propagate to the other > until some extra writes to hdb; so i guessed that each qemu instance > had some caching on file I/O > > hopefully, it would now work with "-cache=off", don't you think? > > cache=off is not necessary. However you need raw format images (not qcow/vmdk/etc). -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace