Am Dienstag, 16. März 2010 11:14:57 schrieb Alain.Moulle: > Hi > > I've a question about the start of a VM with VirtualDomain , knowing > that I have configured this : > > crm configure primitive vm15 ocf:heartbeat:VirtualDomain params > config="/root/vms/vm15.xml" \ > monitor_scripts="/usr/sbin/hakvm" force_stop="true" \ > meta target-role="stopped" migration-threshold="1" \ > op start on-fail="stop" \ > op monitor start-delay=120 timeout=120 interval=60 > > when I do : > crm resource start vm15 > > I can see in traces that as soon as the start vm is launched successfully : > with virsh start ( rc=0 ) in VirtualDomain, there is a status request from > VirtualDomain which returns : status=running > and juste after several monitoring requests with the monitor_scripts > given at configuration so /usr/sbin/hakvm (a script of mine which does > ssh towards the vm). > > The problem is that the vm is "starting" but it takes a while before to get > really "started" and reachable (about 30s) and the monitoring > request from Pacemaker should not be launched before that. > > I tried to play on op monitor values but it seems to not be relative to > my problem ... > > Where do I miss something ?
Hi, Add a start-delay to your monitoring operation. You monitoring will only start after that delay when the virtual server is able to answer your requests. Greetings, -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: [email protected] web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
