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] Questions on qcow, qcow2 versus LVM

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Questions on qcow, qcow2 versus LVM
From: "Matthew Law" <matt@xxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Jan 2010 13:08:02 -0000
Cc: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 04 Jan 2010 05:14:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <7207d96f1001040437m5dfc196o5587cadb99df40a6@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: <85d612f65fb86eb0162ba0d50f5a294b.squirrel@xxxxxxxxxxxxxxxxxxxxxx> <7207d96f1001040437m5dfc196o5587cadb99df40a6@xxxxxxxxxxxxxx>
Reply-to: matt@xxxxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.19
On Mon, January 4, 2010 12:37 pm, Fajar A. Nugraha wrote:
> udev should create the partition block device file (i.e /dev/xvda1) as
> necessary. Try doing "fdisk -l" and "ls -la /dev/xvda1".
> If that doesn't work, you could always try mapping it as hda/sda
> instead of xvda. It should work with 2.6.18 kernel.

fdisk -l

Disk /dev/xvda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/xvda doesn't contain a valid partition table

Here are the exact commands I ran to create and partition the LV, based on
your previous suggestions:

lvcreate -C y -L 40G -n testvm VolGroupVM
echo \"1,,L,*\" | sfdisk /dev/VolGroupVM/testvm
mkfs.ext3 /dev/mapper/VolGroupVM-testvm

Have I missed something?


Thanks again,

Matt.


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