Howto provide shared storage (as LVM VG) to CTs? [message #42845] |
Tue, 07 June 2011 12:38  |
ragro
Messages: 3 Registered: June 2011 Location: Berlin
|
Junior Member |
|
|
Hello,
I'm new to OpenVZ containers.
I was looking for a low overhead "virtualization" solution to provide a test environment for simulating Linux HA clustering.
Thanks to layer 3 venet and layer 2 veth virtual NICs that OpenVZ offers it seems feasible to use OpenVZ to this end.
However, I am missing a possibility to provide shared storage (which effectively in my test scenario simply would come from the HN CT0) preferably in Form of LVM VGs to the VEs. At least so far I haven't found a description in the OpenVZ Wiki how one would achieve this.
So far I have created to VEs with the pre-built OS template of scientific-6-i386 which I downloaded from the OpenVZ site.
When I entered a VE I couldn't issue LVM commands nor load dm kernel modules, why I believe that the chosen OS template was built without DM/LVM support and lacks an appropriate initrd.
As I want to set up test clusters from RedHat Cluster Suite as well as from the Linux Pacemaker stack with resources of shared (C)LVM storage I do need availability of these features in the VEs.
I am convinced that this can be achieved with OpenVZ though but have no idea how?
I think it will at least require me to furnish a custom OS template with built-in DM/LVM support, though in the OpenVZ Wiki it read that those sections that cover custom templating should be considered as deprecated and not followed anymore.
|
|
|
|
Re: Howto provide shared storage (as LVM VG) to CTs? [message #42857 is a reply to message #42845] |
Fri, 10 June 2011 07:51  |
ragro
Messages: 3 Registered: June 2011 Location: Berlin
|
Junior Member |
|
|
Seems my question isn't raising overwhelming interest among OpenVZ users and my requirement totally untipical for OpenVZ containerization.
Meanwhile I discovered in the Proxmox Wiki this article treating their (url=schema://pve.proxmox.com/wiki/Storage_Model) Storage Model (sorry, forum's SW didn't allow me inserting clickable links before my 10th posting here) wherein I found this disillusioning sentence
Quote:Note: Currently only KVM guests can benefit from these enhancements, OpenVZ containers must be located on local storage.
So, gathering from this as it looks, OpenVZ is not fit for LVM storage within containers.
For this I would have to switch to KVM virtualization.
Which is sad because, if I'm not wrong, KVM does require 64bit and CPU with HW virtualization capabilities.
So then I couldn't run it on my old laptop unlike OpenVZ as planned.
|
|
|