OpenVZ Forum


Home » General » Support » Howto provide shared storage (as LVM VG) to CTs?
Howto provide shared storage (as LVM VG) to CTs? [message #42845] Tue, 07 June 2011 12:38 Go to next message
ragro is currently offline  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 #42856 is a reply to message #42845] Thu, 09 June 2011 07:42 Go to previous messageGo to next message
ragro is currently offline  ragro
Messages: 3
Registered: June 2011
Location: Berlin
Junior Member
Since no one has replied yet I just want to make sure, is my issue such a no-brainer in the vein of "RTFM!", or is it indeed something OpenVZ containers weren't originally designed for?
Just an answer like, this can or cannot be done with OpenVZ, would satisfy my curiosity for starters.
Re: Howto provide shared storage (as LVM VG) to CTs? [message #42857 is a reply to message #42845] Fri, 10 June 2011 07:51 Go to previous message
ragro is currently offline  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.
Previous Topic: New Kernel RHEL6 042stab013.1 missing from yum update?
Next Topic: General questions and advice
Goto Forum:
  


Current Time: Tue Jul 29 21:01:35 GMT 2025

Total time taken to generate the page: 0.08030 seconds