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] lomount + lvm

Hi Ryan,

I create my VMs using the virtual manager gui in Centos.

I then simply use an installer CD when prompted and an xvda type img file is created (I usually don't allocate all space during the creation).

During the OS installer phase (Centos/RHEL), I create default partition layouts which use LVMs.

So at the end, I have this img file that I can't figure out how to mount. I know that within that img file, that partition 2 is the root fs which is what I'd like to lomount.

- Brian




On Feb 5, 2009, at 6:26 PM, Ryan Duff wrote:

Brian Krusic wrote:
Hi all,

So on Centos/RHEL, LVMs are the default layout.

I can't figure out for the life of me, how to mount LVMs.

Any one know?

I love lomount as it allows me to check filesystems very easily, that
can't boot.

- Brian

What do you mean? Are you using LVM to create volumes then trying to
mount them with your xen config files to use as volumes in your DomUs?

If so, just use this in your config file:

disk = [ 'phy:/dev/xen/xen_machine,xvda,w', ]


Where xen is the volume group and xen_machine is the volume. Increment
xvd(a,b,c,etc) for each volume, its the volume name it will be mounted
with in the DomU. w makes it writeable.


--
Ryan Duff
web: http://www.ryanduff.net
aim: ryancduff
twitter: ryancduff

_______________________________________________
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

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