Tuesday, February 23, 2016

How to add a shared directory between OpenVZ containers?

This is how I share a directory between 2 or more OpenVZ containers.  Basically I use a process called:

Mounting a Directory from Hardware Node:

http://proxmox-openvz.blogspot.com/2016/02/how-to-mount-directory-from-hardware.html


When you are able to mount a directory from Hardware Node you can have many OpenVZ containers mounting the same directory, which makes sharing directory between OpenVZ containers a reality.

You can even share directory between different physical servers. To do this, just create a network file sharing directory between your physical servers first (for example you can use NFS). Then you can mount all of these NFS mounted directories into your OpenVZ containers.

Simple and it works!

No comments:

Post a Comment