[ClusterLabs] crm resource stop VirtualDomain - how to know when/if VirtualDomain is really stopped ?
    Lentes, Bernd 
    bernd.lentes at helmholtz-muenchen.de
       
    Thu Oct 11 07:59:58 EDT 2018
    
    
  
Hi,
i'm trying to write a script which shutdown my VirtualDomains in the night for a short period to take a clean snapshot with libvirt.
To shut them down i can use "crm resource stop VirtualDomain".
But when i do a "crm resource stop VirtualDomain" in my script, the command returns immediately. How can i know if my VirtualDomains are really stopped, because the shutdown may take up to several minutes.
I know i could do something with a loop and "crm resource status" and grepping for e.g. stopped, but i would prefer a cleaner solution.
Any ideas ?
Thanks.
Bernd
-- 
Bernd Lentes 
Systemadministration 
Institut für Entwicklungsgenetik 
Gebäude 35.34 - Raum 208 
HelmholtzZentrum münchen 
[ mailto:bernd.lentes at helmholtz-muenchen.de | bernd.lentes at helmholtz-muenchen.de ] 
phone: +49 89 3187 1241 
fax: +49 89 3187 2294 
[ http://www.helmholtz-muenchen.de/idg | http://www.helmholtz-muenchen.de/idg ] 
wer Fehler macht kann etwas lernen 
wer nichts macht kann auch nichts lernen
 
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: NN
Stellv.Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter
Geschaeftsfuehrer: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich Bassler, Dr. rer. nat. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
    
    
More information about the Users
mailing list