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] flat file system as disk

To: "'Fajar A. Nugraha'" <fajar@xxxxxxxxx>
Subject: RE: [Xen-users] flat file system as disk
From: "Pallab Chakrabarty" <pchakrabarty@xxxxxxxxxxxxxxx>
Date: Tue, 23 Jun 2009 22:44:07 -0500 (CDT)
Cc: 'Xen User-List' <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 23 Jun 2009 20:45:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0906231950j2e6bc3e9k4fd346c24dc146e7@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: <-5114820827033456841@unknownmsgid> <7207d96f0906231950j2e6bc3e9k4fd346c24dc146e7@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acn0dtyII/A+trfMTpC9bj+SdgFk5AABms3w

Thanks for the reply, however,

I'm getting this while changed to file-system..

switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

========
kernel = "/boot/vmlinuz-2.6.18-128.1.14.el5xen"
ramdisk = "/opt/pallab/initrd-2.6.18-128.1.14.el5xen-no-scsi.img"
memory = 1024
name = "centos"
vif = [ 'mac=00:16:3e:21:f1:31,bridge=eth0' ]
dhcp = "dhcp"
disk = ['tap:aio:/tmp/pallab,sda1,w', 'phy:/dev/xen_vg/lv-swap,sda2,w' ]
root = "/dev/sda1 ro"
============

but the image works well with:

========
kernel = "/boot/vmlinuz-2.6.18-128.1.14.el5xen"
ramdisk = "/opt/pallab/initrd-2.6.18-128.1.14.el5xen-no-scsi.img"
memory = 1024
name = "centos"
vif = [ 'mac=00:16:3e:21:f1:31,bridge=eth0' ]
dhcp = "dhcp"
disk = ['tap:aio:/tmp/centos.img,sda1,w', 'phy:/dev/xen_vg/lv-swap,sda2,w'
]
root = "/dev/sda1 ro"
============


Pls advice,

- regards
   Pallab




-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Fajar A.
Nugraha
Sent: Wednesday, June 24, 2009 8:21 AM
To: Xen User-List
Subject: Re: [Xen-users] flat file system as disk

On Wed, Jun 24, 2009 at 9:32 AM, Pallab
Chakrabarty<pchakrabarty@xxxxxxxxxxxxxxx> wrote:
> I want to use a flat file system as disk instead of an image, like:
>
>   disk = ['file:/tmp/server,sda1,w', ? ]
>
>
> Pls advice if this is doable ..

It's doable, with some caveats:
- consistency-wise, file: is not recommended. You should use tap:aio:
- mapping as sda1 instead of sda means you need to use templates (like
from jailtime.org). You won't be abe to use installer (like with
virt-manager).
- I/O performance will be slower compared to block-based vbd using phy:/

--
Fajar

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

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.88/2196 - Release Date: 06/22/09
18:11:00

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