<div dir="auto">Pacemaker always knows where its resources are running. Query it, stop the domain, then use the queried location as the host to which to issue the snapshot?<div dir="auto"><br></div><div dir="auto">Cheers, </div><div dir="auto"><br></div><div dir="auto">Peter </div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 15 Oct 2018, 20:36 Lentes, Bernd, <<a href="mailto:bernd.lentes@helmholtz-muenchen.de">bernd.lentes@helmholtz-muenchen.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
i have a two node cluster with virtual guests as resources.<br>
I'd like to snapshot the guests once in the night and thought i had a procedure.<br>
But i realize that things in a cluster are a bit more complicated than expected :-))<br>
<br>
I will shutdown the guests to have a clean snapshot.<br>
I can shutdown the guests via pacemaker.<br>
But then arises the first problem:<br>
<br>
When i issue a "virsh snapshot-create-as" libvirt needs the domain name as a parameter.<br>
but libvirt does not know the domains any longer. When the guests are shutdown a "virsh list --all"<br>
on both nodes does not show any domain.<br>
<br>
A look in the respective resource agent VirtualDomain explains why:<br>
The domain is started with virsh create:<br>
<br>
"# The 'create' command guarantees that the domain will be<br>
# undefined on shutdown, ...<br>
<br>
OK: Now i could of course define all domains with a virsh define.<br>
<br>
But then i have immediately the next problem. Now i'd create the snapshots with<br>
"virsh snapshot-create-as" and starts the domains afterwards via cluster.<br>
But let's assume i issue that on node 1 and some guests are started afterwards via pacemaker on node 2.<br>
I can't predict on which node the guests are starting.<br>
<br>
Then i don't get a snapshot, right ?<br>
<br>
What to do ?<br>
<br>
Bernd<br>
<br>
<br>
<br>
-- <br>
<br>
Bernd Lentes <br>
Systemadministration <br>
Institut für Entwicklungsgenetik <br>
Gebäude 35.34 - Raum 208 <br>
HelmholtzZentrum münchen <br>
[ mailto:<a href="mailto:bernd.lentes@helmholtz-muenchen.de" target="_blank" rel="noreferrer">bernd.lentes@helmholtz-muenchen.de</a> | <a href="mailto:bernd.lentes@helmholtz-muenchen.de" target="_blank" rel="noreferrer">bernd.lentes@helmholtz-muenchen.de</a> ] <br>
phone: +49 89 3187 1241 <br>
fax: +49 89 3187 2294 <br>
[ <a href="http://www.helmholtz-muenchen.de/idg" rel="noreferrer noreferrer" target="_blank">http://www.helmholtz-muenchen.de/idg</a> | <a href="http://www.helmholtz-muenchen.de/idg" rel="noreferrer noreferrer" target="_blank">http://www.helmholtz-muenchen.de/idg</a> ] <br>
<br>
wer Fehler macht kann etwas lernen <br>
wer nichts macht kann auch nichts lernen<br>
<br>
<br>
Helmholtz Zentrum Muenchen<br>
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)<br>
Ingolstaedter Landstr. 1<br>
85764 Neuherberg<br>
<a href="http://www.helmholtz-muenchen.de" rel="noreferrer noreferrer" target="_blank">www.helmholtz-muenchen.de</a><br>
Aufsichtsratsvorsitzende: NN<br>
Stellv.Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter<br>
Geschaeftsfuehrer: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich Bassler, Dr. rer. nat. Alfons Enhsen<br>
Registergericht: Amtsgericht Muenchen HRB 6466<br>
USt-IdNr: DE 129521671<br>
<br>
<br>
_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank" rel="noreferrer">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a></blockquote></div>