[libvirt-users] VM's in a HA-configuration - synchronising vm config files

Dominique Ramaekers dominique.ramaekers at cometal.be
Wed Mar 2 14:53:39 UTC 2016


> >>
> >>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 ?

Yes, somthing like: virsh dumpxml $VM > $VM.xml

Dominique.

> 
> 
> 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
> 
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users




More information about the libvirt-users mailing list