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] Partition Manager for Xen

Do you have LVM running ontop of file backed images?
This can be done it's just very frustrating to do so...

It looks something like this:

First install kpartx

Then mount the image file as a loopback device (where loop0 is a free loopback device)
#losetup /dev/loop0 /path/to/image

Allow dom0 to see LVs on the image
#kpartx -av /dev/loop0

Run a vgscan:
#vgscan

Make the LVs active (where volgroup0 is the name of the volume group on the domU)
#vgchange -ay volgroup0

The LVs should now be accessible, you can list them using the standard tools and they should be visible in /dev/volgroup0
#ls /dev/volgroup0

Annoying but it works, I think that's about as pretty as you are going to get as a partition manager.

Joseph.

On 1 September 2011 19:07, Wendy William <kotakomputer@xxxxxxxxx> wrote:
Is there a Partition Manager Software which can run in Dom-0 but alter/manage
File Based VPS?
So, I can open dom-u-001.img then alter the LVM inside this image file.

 Regards, Wendy


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



--
Founder | Director | VP Research
Orion Virtualisation Solutions
 | www.orionvm.com.au | Phone: 1300 56 99 52 | Mobile: 0428 754 846

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>