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] Convert from image to LVM

To: Bruce Edge <bruce.edge@xxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Convert from image to LVM
From: Jonathan Tripathy <jonnyt@xxxxxxxxxxx>
Date: Sat, 26 Jun 2010 21:16:19 +0100
Cc:
Delivery-date: Sat, 26 Jun 2010 13:18:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTilu12tBCB1aFadiV0KCoGMpse5AA5iz8JsdKEY5@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: <4C264259.6070500@xxxxxxxxxxx> <4C26440A.7050705@xxxxxxxxxxx> <AANLkTiltLMq4L3LbxOAmyEqpGmA6sEWyGdBGcGvc9Q9_@xxxxxxxxxxxxxx> <4C265084.20302@xxxxxxxxxxx> <AANLkTilu12tBCB1aFadiV0KCoGMpse5AA5iz8JsdKEY5@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
Sorry everyone,

I had forgotton that I had "root=" specified in the DomU config. I was looking at the parameters inside the disk itself

It's all working now once I changed root=/dev/xvda1 in the DomU config

Thanks


On 26/06/10 21:02, Bruce Edge wrote:
On Ubuntu you'll need to install the parted package 
Just run parted on dom0 and you'll see the embedded partitions show up under /dev/mapper.
eg:

0 kaan-22  ~ #> ls -l /dev/mapper 
total 0

brw-rw---- 1 root disk 251,  4 Jun 25 09:09 system-dpm_0
0 kaan-22  ~ #> partprobe 

0 kaan-22  ~ #> ls -l /dev/mapper
total 0
brw-rw---- 1 root disk 251,  4 Jun 25 09:09 system-dpm_0
brw-rw---- 1 root disk 251, 11 Jun 26 13:01 system-dpm_0p1
brw-rw---- 1 root disk 251, 12 Jun 26 13:01 system-dpm_0p2
brw-rw---- 1 root disk 251, 13 Jun 26 13:01 system-dpm_0p5

You can mount these as regular partitions now.

-Bruce


On Sat, Jun 26, 2010 at 12:09 PM, Jonathan Tripathy <jonnyt@xxxxxxxxxxx> wrote:
How do I use partprobe with LVM?

Thanks


On 26/06/10 20:06, Bruce Edge wrote:
Have you tried using root=UUID=... instead?

Use partprobe to discover the embedded lvm partitions so you can get their UUIDs.

-Bruce


On Sat, Jun 26, 2010 at 11:16 AM, Jonathan Tripathy <jonnyt@xxxxxxxxxxx> wrote:
By changing the config from xvda to sda, it work normal. However I wish to use xvda as I think it's te "standard" for the future..

So clearly there is some setting in my Ubuntu that is still making it look for sda1 instead of hda1. It's as if it's ignoring the "root=" argument in pygrub...

On 26/06/10 19:09, Jonathan Tripathy wrote:
Hi Everyone,

I'm trying to convert my Ubuntu PV Guest from image based disk to LVM. It uses pygrub.

What I did, was I created a new LV and used dd to copy the contents of the image over to the LV. I then changed the domU config file to use phy:/

Now, when I start the DomU, the kernel boots, however it can't seem to mount root properly. It says that /dev/sda1 doesn't exist. What is strange is that in the Dom0, I mounted the LV and changed the root= parameter of the kernel line to point to /dev/hda1, however the previous error still shows

Any ideas?

Thanks
_______________________________________________ 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


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