[pve-devel] [PATCH] Handle bug 868, freeze hang

Gerrit Venema gmoniker at gmail.com
Thu Jan 14 21:57:27 CET 2016


Hello All,

The lxc-freeze program loops around until the freezer.state
becomes FROZEN. This can take an unacceptably long time.

Suggested solution/workaround is to add a timeout to invoking lxc-freeze.
Downside is, not all processes are guaranteed to be frozen, but on the upside
any processes popping up into the scheduler will be frozen anyway.

This patch removes some code duplication and adds the timeout to the invoke.

Gerrit Venema (1):
  [FIX] Avoid indefinite wait on lxc-freeze command.

 src/PVE/LXC.pm        | 27 ++++++++++++++++++++-------
 src/PVE/VZDump/LXC.pm |  4 ++--
 2 files changed, 22 insertions(+), 9 deletions(-)

-- 
2.1.4




More information about the pve-devel mailing list