This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] Sharing file/folder

Subject: Re: [Xen-users] Sharing file/folder
From: "lucianobarreto@xxxxxxxxx" <lucianobarreto@xxxxxxxxx>
Date: Mon, 14 Feb 2011 20:22:46 -0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 14 Feb 2011 14:49:31 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; bh=cIei7AJu9VABAsE4kPY5zkhlPz8JSEZP+pdwmDRZMlg=; b=lhCRd2FdXbIPaupwhAAiwUZOV/FvIekeBMiBa09FOM2wp33V2Kvl1jyVDnbVhVYjgy Kc7DHWfxcF6364XJyop5ASvsnjS71P7vYar1nUX4w5/VX5HyOyBd8kJytYpZgSQ91aFh CP+cCH5B/xFIazAocVpHhDmr9Ed1VdrW6wZZY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; b=gTbBO9C4zxfMzOCLx3CNEvro+7xZVmfq7/R/1qDTsaKPPKO6jh5en7e/yyHng808lJ eedzJAsDr8XEGax4zuWYgp6RcaLvSZx9RIEliOT2839zLJ6ukc+eIwC1K7lolh+HiK/k J4pYE6tDYfI6wppvHYZDv1pu207IDZOsTjxMo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTik2fj5qwPAsZn7GVTyqDVzi6uEfPTJjzjFPm2cA@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimvqmWz5F7mGBHBZtjRP2tVX38t0j=rnvSHfbJ=@xxxxxxxxxxxxxx> <AANLkTinfdUEUh8Ckbw=ZHRGHbjNhuhNthJznaykXm0+J@xxxxxxxxxxxxxx> <AANLkTi=Rt1BxTjswcCdQGaArc_eKs400+Ee0G1p5qbzK@xxxxxxxxxxxxxx> <AANLkTik2fj5qwPAsZn7GVTyqDVzi6uEfPTJjzjFPm2cA@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks, ill see it. I dont need really synchronize files... just have 4 txt files that are shared in just one place, disponible to read and write.. But thanks, ill read about it too..

2011/2/14 Melody Bliss <melodybliss@xxxxxxxxx>
Another option is to use something like unison, which is a file synchronizer.


You'd have independent filesystems, but have unison synchronize
(bi/multidirectionally) the files there. It works similarly to rsync
but changes can happen in either direction and it allows for N-way

The only problem being that you could theoretically modify a file in
multiple places. Unison will detect this and not perform an update
with user intervention.


On Mon, Feb 14, 2011 at 12:41 PM, lucianobarreto@xxxxxxxxx
<lucianobarreto@xxxxxxxxx> wrote:
> Sorry if duplicated...
> Thanks guys, let me expose my problem. I'm prototyping a fault tolerance
> server (byzantine fault tolerance). Vms need do comunicate each order for
> make decisions about requests. My host will be out of network (cant access
> anything) and my Vms can comunicate to the external world, but the decision
> need to be local. Yes, I could comunicate via network inside VM to exchange
> information but my propose is to have a reliable local share to do it. In
> another work a friend used a Virtualbox folder share to do it, but now I
> need increase performance and use Xen to do it.
> About clustered filesystems, any options to use it in a normal block device
> like Sata HD or SCSI? I understand..."clustered"... but any option?
> Thanks and I will get more information about clustered filesystems
> 2011/2/14 Javier Guerra Giraldez <javier@xxxxxxxxxxx>
>> On Mon, Feb 14, 2011 at 1:37 PM, lucianobarreto@xxxxxxxxx
>> <lucianobarreto@xxxxxxxxx> wrote:
>> > I need to share some files between VMs. This files will be used to
>> > transfer
>> > some information (read/write). But I need do it without any network
>> > resource
>> > (NFS or others). I've tried to do it sharing a partition just for test
>> > proposes, but i see that when i create a file on one VM another can't
>> > see it
>> > and there isnt any concurrence in this approach.
>> > Anyone can help me??
>> to share files, you need a shared filesystem.  there are two main
>> classes of these:
>> - network filesystems: NFS, Samba, 9p, etc.  these work really well;
>> you shouldn't reject them without good reason.
>> - clustered filesystems: GFS, OCFS2, CXFS, etc. they're designed for
>> SAN systems where several hosts access the same storage box.  in VM
>> case, if you create a single partition accessible from several VMs you
>> get exactly the same situation, (shared block device) and need the
>> same solution.
>> what definitely won't work is to use a 'normal' filesystem (ext3/4,
>> XFS, ReiserFS, FAT, HPFS, NTFS, etc) on a shared partition (just like
>> it won't work in a shared block device).  Since every filesystem
>> aggressively caches metadata to avoid rereading the disk for every
>> access, a VM won't be 'notified' if another one modifies a directory,
>> so it won't 'notice' any change.  and worse, since now the cached
>> metadata isn't consistent with the content of the disk, any write will
>> result in a heavily corrupted filesystem.
>> better go with NFS
>> --
>> Javier
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
> --
> Luciano Barreto
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

Melody Bliss
Usenix, SAGE and LOPSA Charter Member
Patron Member of the NRA

Luciano Barreto
Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>