WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] modifying file-systems in Dom0 while mounted read-only i

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] modifying file-systems in Dom0 while mounted read-only in DomU
From: Reinhard Brandstädter <reinhard.brandstaedter@xxxxxx>
Date: Wed, 28 Mar 2007 09:02:25 +0200
Delivery-date: Wed, 28 Mar 2007 00:01:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070327131019.GA12416@xxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200703271454.46695.reinhard.brandstaedter@xxxxxx> <20070327131019.GA12416@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
Hi,

> > Although this is a nice feature  - in my case these two DomUs are forming
> > a cluster and the common configuration resides on the read-only disk - it
> > seems dangerous to me.
> >
> > Although with this feature I could seamless change the configuration of
> > the cluster :-) :
> > - mount the partitition in Dom0
> > - restart one DomU and let it gain the service with changed configuration
> > - restart the second DomU with the new configuration
>
> You should be able to see new data without rebooting by droping cache:
> echo 3 > /proc/sys/vm/drop_caches

For the purposes I'd use this feature that works great. I understand the 
dangers imposed by this procedure (as Luciano mentioned them earlier). But 
I'd only use it if the services are shut down on the VMs, flush the cache and 
force a "reload" of the contents. This saves me from rebooting the VMs

>
> But I suggest using a cluster filesystem instead (OCFS2, GFS, etc.). Then
> the changes will be visible everywhere you mount the filesystem.

Well I thought of that, but a cluster filesystem would mean more complexity in 
the VMs, which I want to avoid. And after all my VMs don't need to write to 
that partition in any case, and it would be quite a overhead setting up a CFS 
if all participants except one only have read-only access.

> IIRC, you'll have to specify the virtual disk to xen with '...,w!' to
> allow multiple mounting of the same partition in read/write mode.

Thats exactly what I want to avoid :-)

Reinhard

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>