Move to DRBD

The day before yesterday evening I shortly decided to move the Apache Tomcat loadbalancer into DRBD. Therefore I backed up the configuration file, made a tar-ball (.tar.gz) from the private directory of the container, restore that tar-ball in the DRBD partition and edited the configuration file. After these changes I installed the .deb file I made for starting this “new” type of container. It took exactly seven (7) minutes to move the machine (from stop to start including all other tasks like taring and editing).

What should I say? It works! Tomorrow I have to provide the .deb file with an additional backup script (based on cron) because the one that we provide with our openvz-common package does only cover the normal file structure (/var/lib/vz) and rsync does not sync over mount borders (and I mount the DRBD device under /var/lib/vz/drbd0).

Special thanks to Werner Fischer who leaves a comment (here)! We become acquainted with him at the LinuxTAG 09 in Berlin and have a lot of fun.

Mario

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>