Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any supported way besides using a SAN (with one VE on a LUN) to have migration and failover in an OpenVZ cluster? From what I've read, things like NFS will not work, but I haven't seen any definitive information in English.

share|improve this question
up vote 1 down vote accepted

I did try (using 2.6.26 OpenVZ from Debian) running VE file-systems over NFS (I had vzquota disabled, but don't know if it's required) and it worked, although somewhat slowly compared to local disk performance (which is expected).

I would suggest some kind of block level fail-over instead of NFS (DRBD is already suggested), but than again your NFS NAS might be better than my test environment :-)

I can't really recommend using cluster file-system over shared storage, because I actually tried to make OpenVZ highly available using OCFS2 and HP Eva storage, but it was quite slow (partly because of storage, partly because of OCFS2) and had unpredictable performance characteristics (I think that is storage's fault).

share|improve this answer

I can't think of any reason why OpenVZ VMs over NFS wouldn't work, although I haven't tried it myself. The problem with using NFS is that you're just moving your single point of failure from the OpenVZ server to the NFS server, so unless that's HA as well, you're not really any better off.

My favourite file storage replication mechanism is DRBD, and that should work rather nicely with something like Heartbeat to manage the failover.

share|improve this answer
DRBD is fine, but we'll be running a 16-way cluster, so it doesn't really work there, afaik. For NFS, just old mailing list posts say it doesn't work, and the wiki page doesn't seem to say it's ok on the hosts. – MichaelGG May 8 '09 at 17:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.