OpenVZ + DRBD + Heartbeat on Debian Etch
After quite a struggle we managed to configure HA cluster using Debian Etch, DRBD 0.7.21, Heartbeat 1.2.5-3 and OpenVZ using the article HA cluster with DRBD and Heartbeat (http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat) as a guide line. However, the article is based on CentOS, with which I'm not familiar, and it appears that there are slight differences in the way OpenVZ is installed on CentOS and the way it gets installed on Debian 'out of the box' using aptitude. In the above-mentioned article, all or most of the OpenVZ related stuff is copied to the drbd file system and symbolic links are created from the various (new) directories on the drbd file system back to the original locations. In my case I have mounted the drbd partition on /vz and copied /etc/vz, /var/lib/vz and /var/lib/vzquota to /vz and created symbolic links back to the respective locations under /etc and /var/lib. This results in: /vz (= drbd mount) |-etc (symlink -> /etc/vz) |---vz |-----conf |-----dists |-------scripts |-----names |-var |---lib |-----vz (symlink -> /var/lib/vz) |-------dump |-------lock |-------private |-------root |-------template |---------cache |-------tmp |-----vzquota (symlink -> /var/lib/vzquota) This setup initially seems to work as expectd but while experimenting with creating, starting, stopping and destroying OpenVZ VE's, two times we experienced problems which vaguely seem to be related to locking issues. Both times the problems were preceded by an unintentional Heartbeat/DRBD failover/recovery sequence but it's difficult to determine if that actually caused the problems. A third, intentional failover/recovery sequence did not cause the same problems. I have a couple of questions: - Has anybody experienced similar problems? Have they been solved and if yes how? - Is it likely that the problems are caused by the Heartbeat/DRBD failover/recovery sequence as a result of having 'moved' too much of the orginal OpenVZ directory structure to the drbd partition? - Does anybody have suggestions how to avoid this kind of pitfalls?
Re: OpenVZ + DRBD + Heartbeat on Debian Etch
Hi Pieter, have you got some error message logged, helping to solve this problem ?
Unroftunately not. I haven't been able to reproduce it (yet) either. In the mean time I have starterd a complete re-install. If I run into similar problems again, I'll try to jot down all relevant messages and other helpfull information.