RE: add 2 lvm to guest with virt-manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Augusto,
	What you present to the VM is virtual disks.  I believe what you
want to do is create one logical volume to the VM as a disk (xda), and then
partition that virtual disk using lvm (create a logical group and logical
volumes on that virtual disk).  With partitions, you can do that by fdisking
a partition and providing the partition as the virtual disk.  i.e.: fdisk
/dev/sdb3, partition as you would a disk, provide /dev/sdb3 as xvda.
However, I don't know if it is that simple with lvm.  Alternately, assuming
that you are using hvm, you would just provide your virtual disk (something
like sdb3 or something like loggroup01/logvol03 in the config) to the vm and
install/configure lvm on hda during setup.  If using paravirtualization, I
don't know whether or not you go through the full blown manual install
process, but if you do, it would be the very similar, you would just provide
your virtual disk (something like sdb3 or something like loggroup01/logvol03
in the config) to the vm and install/configure lvm on xvda during setup.  If
you don't go through the full blown manual setup when using pv, hopefully
someone else can tell you how you would configure lvm on the virtual disk.
	Dustin

-----Original Message-----
From: fedora-xen-bounces@xxxxxxxxxx [mailto:fedora-xen-bounces@xxxxxxxxxx]
On Behalf Of Augusto Castelan Carlson
Sent: Friday, January 11, 2008 09:06
To: Mark Nielsen
Cc: fedora-xen@xxxxxxxxxx
Subject: Re:  add 2 lvm to guest with virt-manager

Hi!

> Are you trying to use 2 logical volumes to separate / and /boot inside
> the VM, or present 2 logical volumes (which would show up as 2 separate
> disks entirely, xvda and xvdb for instance) to the guest from domain-0?

I'm trying to present 2 logical volumes to the VM.

> If you are trying to present 2 logvols to the VM itself, those will show
> up as 2 separate disks inside the VM, as I mentioned (xvda, xvdb, or in
> HVM sda, sdb, .. you get the idea) and I would wonder why you would want
> to do that.

How can I present 2 logvols to the VM?

I proposed to my "boss" to present one logvols to the VM and then do
the partitioning inside the VM (xvda1 = /home, xvda2 = /groups,...),
but he wants to present 2 logvols, one to be used for /home and the
other for /groups...

Do you believe that is better to present only one logvols? If so,
please tell me, maybe a can convince him about use only one.

Thanks!

Regards,
Augusto

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen


--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux