OpenVZ Forum


Home » Mailing lists » Users » RE: lvm and openvz
Re: lvm and openvz [message #45664 is a reply to message #45657] Wed, 28 March 2012 07:49 Go to previous messageGo to previous message
David Brown is currently offline  David Brown
Messages: 5
Registered: March 2012
Junior Member
On 27/03/2012 17:02, Mark Olliver wrote:
> Hi All,
>
> I am setting up a new openvz setup and am looking to have each guest
> store its data on its own lvm partition. Can anyone give me a clue what
> options I should say to the vzctl create script?
>
> I would guess I tell it the private is the root of the lvm partition for
> the guest, then root is in the normal place as that is a runtime mount?
>
> Thanks
>
> Mark
>

I have an lvm partition for each of my openvz virtual machines. The way
I organise it is to have a base directory /vz, with subdirectories for
each machine. I mount the lvm logical disk for server1 on /vz/server1,
and then create the virtual machine with "vzctl create --root
/vz/server1/root --private /vz/server1/private" (plus other options,
obviously).

If you need multiple lvm partitions in the same virtual machine, I guess
you mount them within /vz/server1/private before starting the machine -
though I haven't needed to do that.

I /really/ wish the openvz developers would move beyond kernel 2.6.32 -
kernal 2.6.33 introduced snapshot merging to LVM which would play
wonderfully with this setup.

mvh.,

David
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ploop
Next Topic: Hornet Queue (jboss) vs sever resource shortage
Goto Forum:
  


Current Time: Tue Jul 16 07:24:49 GMT 2024

Total time taken to generate the page: 0.02549 seconds