
----- On Mar 2, 2016, at 3:15 PM, Dominique Ramaekers dominique.ramaekers@cometal.be wrote:
Van: libvirt-users-bounces@redhat.com [mailto:libvirt-users-bounces@redhat.com] Namens Lentes, Bernd Verzonden: woensdag 2 maart 2016 15:04 Aan: libvirt-ML Onderwerp: [libvirt-users] VM's in a HA-configuration - synchronising vm config files
Hi,
i'd like to establish a HA-Cluster with two nodes. My services will run inside vm's, the vm's are stored on a FC SAN, so every host has access to the vm's. But how can i keep the config files >(xml-files under /etc/libvirt/qemu) synchronised ? Is there a possibility to store the config files somewhere else ? E.g. a partitition with ocfs2 on the SAN ? If not, what would you do ? Otherweise i'm thinking of a cron-job who synchronises the file each minute with rsync.
Bernd
--
This looks simple enough...
On host 1, virsh dumpxml for every running vm to a shared location On host 2, virsh define for these vm's
Do the same the other way around...
Hi Dominique, i don't see a way to write with dumpxml directly into a file. Or do you mean by redirection ? Bernd Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Alfons Enhsen, Renate Schlusen (komm.) Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671