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/
Home Products Support Community News


Re: [Xen-devel] lvm

To: Derek Glidden <dglidden@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] lvm
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 14 Jul 2004 18:13:20 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Wed, 14 Jul 2004 18:16:28 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Wed, 14 Jul 2004 12:44:04 EDT." <04679EA3-D5B5-11D8-AEF8-000A95DBAEDE@xxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> And I was going to post some more questions about it today because I'm 
> not able to get the domain to recognize the exported LVs.  (Is there a 
> xen-users list or something so I don't have to bog up the -dev list 
> with noob user questions?  Or are those just as well posted here 
> anyway?)

Here's fine. I think it might be time to split off a xen-users
when 2.0 comes out.

> I've currently created LVs with LVM2 for swap and root for the new 
> domain and changed the xmdefaults file to point to these partitions:
> disk = [ 'phy:/dev/vg_pool/lv_vm0%d_swap,hda1,w' % (vmid),
>           'phy:/dev/vg_pool/lv_vm0%d_root,hda2,w' % (vmid) ]

That's exactly what I'd do, and would expect it to work, though
haven't tested it.

What do you get if you do 'sfdisk -s /dev/vg_pool/lv_vm01_root' ?

> I haven't gone back and simply fdisk'ed the drive to try to export 
> "normal" partitions to the new domain; I've kind of picked a "hard" way 
> to do it right off the bat I guess.  I'm hoping I just have the syntax 
> wrong.  (Is there another type than "phy" ?)   I dug through the python 
> for "xm" but didn't see anything that screamed out at any "right" way 
> to do it.

The 'phy:' syntax is a legacy of 1.2

xend should print out a line something like the following,
providing the debug hasn't been quietened down too much:

 blkif_dev_create> 35 2049 w {'device': 774, 'type': 'Disk', 'start_sector': 
0L, 'nr_sectors': 37881206L}

Please can you post me this output and I'll take a look. I don't
really want to have to install lvm myself to debug this...


This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>