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] /home on domU

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, xenguy@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] /home on domU
From: rajarshi das <dazio_r@xxxxxxxxx>
Date: Tue, 17 Oct 2006 22:47:27 -0700 (PDT)
Delivery-date: Tue, 17 Oct 2006 22:48:20 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=b8yxKfpOOPWgZt5RqnUS0KkbfQyJjEugKSVQ6wUBE/0+rscVhiLnCPcK1IW1+6vejBpG1THYH4YgewQQw0n8s+EnkHmmJRTRiq02+iFTUl8LKAHSkMJfBn2RrSpQWjQp2aPvoymh99enOmaaXOk8Q86pLg47pzlOMsDi57mNCqA= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E162F@xxxxxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
My query in << >>.

"Petersson, Mats" <Mats.Petersson@xxxxxxx> wrote:
 


From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of rajarshi das
Sent: 17 October 2006 16:14
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] /home on domU

Hi,
 
On SLES10, I have a separate /home partition on dom0 which is mounted read - write.
1) How do I mount a /home partition on domU? Do I need to create a file - backed VBD?
 
The second entry for disk=[ '/dev/....' ] in the sample xmexample corresponds to /usr. How do I create a entry for /home? 
 
I started by answering #2 below, but the answer here applies as well. /usr/... is almost allways read-only (unless you're instaling new applications or something), so it's feasible to mount this Read-Only across multiple domains - if the file-system is read-only by all clients, it's fine to mount it multiple times from different places, since the content isn't going to chnge ...
<<
I created a file backed VBD for /home and added a entry in the configuration file for domU as :
disk = [ 'file:/root/rootdisk,sda2,w' ] # this is the entry for / partition. /dev/sda2 is my root partition on dom0.
disk = [ 'file:/root/homedisk,sda3,w' ] # Newly created entry for /home.
 
/dev/sda3 is my /home on dom0.
 
However, when I do a xm create with the above configuration, the root device does not mount (which was mounting fine before adding an entry for /home partition). Is this because the second entry is supposed to represent /usr (and in my case it represents /home)?
>>
 
 
 
2) I created a file - backed VBD for the / partition on domU. Is it possible to mount the / (root) partition of dom0 as root partition in domU, and be able to write to it?  
 
 
Not unless your Dom0-root is an NFS-mounted "partition" (and I doubt that you'd use the word partition in that case).
 
Any read-write mounted file-system needs to have ONE AND ONLY ONE mountee - otherwise you'll end up with a crashed file-system, because there are BIG race-conditions that are cared for by locks inside the file-system driver, but if you're using two different file-system drivers with different address spaces, that isn't going to work.
 
Read-only filesystems can be mounted multiple times, and there are "special" file-systems that are capable of supporting multiple clients, but that's not your average rootfs for Dom0... It's either a case of "copy-on-write" implementations, or "cluser-file-system" [which may be COW-implementation, of course].
 
Filesystem choice is quite frequently discussed on this mailing list, so searching the archive would probably give you more answers than you can have questions...
--
Mats
 
 
Thanks in advance,
Rajarshi

Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.


How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>