Idea on Using Block Storage (iSCSI/DRBD) for OpenVZ Containers

e100

Renowned Member
Nov 6, 2010
1,268
45
88
Columbus, Ohio
ulbuilder.wordpress.com
OpenVZ containers must be stored on a real file system.
Maybe we could use a cluster file system on top of iSCSI or DRBD but that just adds unnecessary complexities and reduces performance.

I was thinking of a how to use OpenVZ on top of DRBD and came up with a simple idea.
Should not be too difficult to implement this either.

When creating the new container a volume would be created on the iSCSI or DRBD lvm group.
A new file system would be created on the new volume.
That file system would be mounted and the container created on that new file system.

Whenever the container is stopped the file system would be unmounted
When the container is started the file system would be mounted, then the container started.

During live migration, at the right moment, the file system would be dismounted on the source node, then mounted on the destination node.
That would ensure that the file system is only ever mounted on one node at a time.

Does this seem like a viable solution?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!