
This is a multi-part message in MIME format. --------------DF760123B34BA11C0A26BA44 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 09/03/2017 =C3=A0 10:25, Gianluca Cecchi a =C3=A9crit :
On Wed, Mar 8, 2017 at 6:05 PM, Gianluca Cecchi=20 <gianluca.cecchi@gmail.com <mailto:gianluca.cecchi@gmail.com>> wrote:
NOTE: during the snapshot creation I see in web admin console the VM in paused state and also not responsive in both console and ssh session. After a couple of seconds it comes back and as a confirmation I see this in its messages:
Mar 8 17:38:57 T-ORACLE73 chronyd[616]: System clock wrong by 19.077230 seconds, adjustment started
Is this expected?
Possibly the default changed at some point in time, so that now it=20 saves memory and so this implies pause of VM Saving memory is essential in some ap=C3=A0plications like DB, so you won= 't=20 bypass vm pauses for such a stuff In the mean time I verified changing backup.py this way solves the=20 problem (the 3.6 api deprecation still in place... ;-):
$ diff backup.py backup.py.orig 123c123 <=20 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_desc= ription(),=20 vm=3Dvm,persist_memorystate=3DFalse)) ---
=20 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_desc= ription(),=20 vm=3Dvm))
The snapshot doesn't include memory and no problem at VM OS side now
Tested also getting the parameter from config file
Modifications needed in this case:
1) $ diff backup.py backup.py.orig 123c123 <=20 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_desc= ription(),=20 vm=3Dvm,persist_memorystate=3Dconfig.get_persist_memorystate())) ---
=20 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_desc= ription(),=20 vm=3Dvm))
2) $ diff config.py config.py.orig 34d33 < self.__persist_memorystate =3D=20 config_parser.getboolean(section, "persist_memorystate") 113,116d111 < < < def get_persist_memorystate(self): < return self.__persist_memorystate
And in config file called add:
# Save Memory in snapshot persist_memorystate=3DFalse
It could be further improved if one wants to differentiate save memory=20 for some VMs and not for other ones....
HIH other ones, Gianluca
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------DF760123B34BA11C0A26BA44 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty= pe"> </head> <body bgcolor=3D"#FFFFFF" text=3D"#000000"> <p><br> </p> <br> <div class=3D"moz-cite-prefix">Le 09/03/2017 =C3=A0 10:25, Gianluca C= ecchi a =C3=A9crit=C2=A0:<br> </div> <blockquote cite=3D"mid:CAG2kNCy-F6KF0ckEbFqWuXYQkroMZRVigPHvuhsrK=3DEvBBOTpQ@mail.gm= ail.com" type=3D"cite"> <div dir=3D"ltr"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote">On Wed, Mar 8, 2017 at 6:05 PM, Gianluca Cecchi <span dir=3D"ltr"><<a moz-do-not-send=3D"true" href=3D"mailto:gianluca.cecchi@gmail.com" target=3D"_blan= k">gianluca.cecchi@gmail.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div dir=3D"ltr"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"><br> <div><br> </div> <div>NOTE: during the snapshot creation I see in web admin console the VM in paused state and also not responsive in both console and ssh session.</div> <div>After a couple of seconds it comes back and as a confirmation I see this in its messages:</div> <div><br> </div> <div>Mar =C2=A08 17:38:57 T-ORACLE73 chronyd[616]: Sy= stem clock wrong by 19.077230 seconds, adjustment started<br> </div> <div><br> </div> <div>Is this expected?</div> <div><br> </div> <span class=3D"gmail-HOEnZb"><font color=3D"#888888"> <div><br> </div> <div><br> </div> </font></span></div> </div> </div> </blockquote> </div> <br> </div> <div class=3D"gmail_extra">Possibly the default changed at some point in time, so that now it saves memory and so this implies pause of VM</div> </div> </blockquote> Saving memory is essential in some ap=C3=A0plications like DB, so you won't bypass vm pauses for such a stuff<br> <blockquote cite=3D"mid:CAG2kNCy-F6KF0ckEbFqWuXYQkroMZRVigPHvuhsrK=3DEvBBOTpQ@mail.gm= ail.com" type=3D"cite"> <div dir=3D"ltr"> <div class=3D"gmail_extra">In the mean time I verified changing backup.py this way solves the problem (the 3.6 api deprecation still in place... ;-):</div> <div class=3D"gmail_extra"><br> </div> <div class=3D"gmail_extra"> <div class=3D"gmail_extra">$ diff backup.py backup.py.orig=C2=A0= </div> <div class=3D"gmail_extra">123c123</div> <div class=3D"gmail_extra">< =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_descri= ption(), vm=3Dvm,persist_memorystate=3DFalse))</div> <div class=3D"gmail_extra">---</div> <div class=3D"gmail_extra">> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_descri= ption(), vm=3Dvm))</div> <div class=3D"gmail_extra"><br> </div> <div class=3D"gmail_extra">The snapshot doesn't include memory and no problem at VM OS side now</div> <div class=3D"gmail_extra"><br> </div> <div class=3D"gmail_extra">Tested also getting the parameter from config file</div> <div class=3D"gmail_extra"><br> </div> <div class=3D"gmail_extra">Modifications needed in this case:</= div> <div class=3D"gmail_extra"><br> </div> <div class=3D"gmail_extra">1)</div> <div class=3D"gmail_extra">$ diff backup.py backup.py.orig=C2=A0= <br> </div> <div class=3D"gmail_extra"> <div class=3D"gmail_extra">123c123</div> <div class=3D"gmail_extra">< =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_descri= ption(), vm=3Dvm,persist_memorystate=3Dconfig.get_persist_memorystate()))</div> <div class=3D"gmail_extra">---</div> <div class=3D"gmail_extra">> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 vm.snapshots.add(params.Snapshot(description=3Dconfig.get_snapshot_descri= ption(), vm=3Dvm))</div> <div><br> </div> <div><br> </div> <div>2)</div> <div> <div>$ diff config.py config.py.orig=C2=A0</div> <div>34d33</div> <div>< =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.__= persist_memorystate =3D config_parser.getboolean(section, "persist_memorystate")<= /div> <div>113,116d111</div> <div><=C2=A0</div> <div><=C2=A0</div> <div>< =C2=A0 =C2=A0 def get_persist_memorystate(self):<= /div> <div>< =C2=A0 =C2=A0 =C2=A0 =C2=A0 return self.__persist= _memorystate</div> </div> <div><br> </div> <div><br> </div> <div>And in config file called add:</div> <div><br> </div> </div> <div> <div># Save Memory in snapshot</div> <div>persist_memorystate=3DFalse</div> </div> <div><br> </div> <div>It could be further improved if one wants to differentiate save memory for some VMs and not for other ones....</div> <div><br> </div> <div>HIH other ones,</div> <div>Gianluca</div> </div> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------DF760123B34BA11C0A26BA44--