[ovirt-users] oVirt VM backup and restore
Nathanaël Blanchet
blanchet at abes.fr
Thu Mar 9 10:39:35 UTC 2017
Le 09/03/2017 à 10:25, Gianluca Cecchi a écrit :
> On Wed, Mar 8, 2017 at 6:05 PM, Gianluca Cecchi
> <gianluca.cecchi at gmail.com <mailto:gianluca.cecchi at 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
> saves memory and so this implies pause of VM
Saving memory is essential in some apàplications like DB, so you won't
bypass vm pauses for such a stuff
> In the mean time I verified changing backup.py this way solves the
> problem (the 3.6 api deprecation still in place... ;-):
>
> $ diff backup.py backup.py.orig
> 123c123
> <
> vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
> vm=vm,persist_memorystate=False))
> ---
> >
> vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
> vm=vm))
>
> 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
> <
> vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
> vm=vm,persist_memorystate=config.get_persist_memorystate()))
> ---
> >
> vm.snapshots.add(params.Snapshot(description=config.get_snapshot_description(),
> vm=vm))
>
>
> 2)
> $ diff config.py config.py.orig
> 34d33
> < self.__persist_memorystate =
> 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=False
>
> It could be further improved if one wants to differentiate save memory
> for some VMs and not for other ones....
>
> HIH other ones,
> Gianluca
--
Nathanaël Blanchet
Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet at abes.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170309/0b395b39/attachment.html>
More information about the Users
mailing list