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



_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to