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] read only disk option in domUs

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] read only disk option in domUs
From: list user <xktnniuymlla@xxxxxxxxxxxxxx>
Date: Tue, 25 Apr 2006 18:16:22 -0700
Delivery-date: Tue, 25 Apr 2006 18:14:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <444E8425.7030002@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/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: <444E8425.7030002@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)
list user wrote:
Hi all,

Successfully running a built from source xen 3.0.2-2 & linux 2.6.16 on
fedora 4 with lvm.

I'm trying to share a read only /usr across multiple domU's.

Logical volume "/dev/vg0/usr" is read only.  Within the domU's fstab
/usr is "ro".  Here is the disk option from the domU definition.

disk = [ 'phy:vg0/fc4,hda1,w' ,
         'phy:vg0/usr,hda2,r' ,
         'phy:vg0/swap,hda3,w' ]

This fails with an unable to write block error.

Now if the vg0/usr volume is specified with 'w' it works without
complaint until I try to use it in a different domU.  Then the complaint
is that it is already in use in another guest domain.

Q 1: is inability to specify a phy: as read only a bug?
Q 2: what is the proper way to share/use a read only volume among domU's?

Following up on the resolution:

I tried various combinations of ro/rw at different levels of the filesystem hierarchy from lvm -> xen domU -> fstab using ext2 & ext3.

The only thing that worked for me 'read-only' was "ext2" formatting.

That said, the other domU's now *happily* share /usr.

:m)


Thanks for any help,
Mike Wright


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



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