]> git.proxmox.com Git - qemu-server.git/commit - PVE/QMPClient.pm
increase timeout from guest-fsfreeze-freeze
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Nov 2016 10:40:41 +0000 (11:40 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Nov 2016 05:09:46 +0000 (06:09 +0100)
commitcfb7a70165199eca25f92272490c863551efcd89
treeb7ec82bdb8f01e34cfa055546cc522e08117439d
parent4c3a2d3b53b6f5a780f9be7d00472ce73faf5ee3
increase timeout from guest-fsfreeze-freeze

The qmp command 'guest-fsfreeze-freeze' issues in linux a FIFREEZE
ioctl call on all mounted guest FS.
This ioctl call locks the filesystem and gets it into an consistent
state. For this all caches must be synced after blocking new writes
to the FS, which may need a relative long time, especially under high
IO load on the backing storage.

In windows a VSS (Volume Shadow Copy Service) request_freeze will
issued. As of the closed Windows nature the exact mechanisms cannot
be checked but some microsoft blog posts and other forum post suggest
that it should return fast but certain workloads can still trigger a
long delay resulting an similar problems.

Thus try to minimize the error probability and increase the timeout
significantly.
We use 60 minutes as timeout as this seems a limit which should not
get trespassed in a somewhat healthy system.

See:
https://forum.proxmox.com/threads/22192/

see the 'freeze_super' and 'thaw_super' function in fs/super.c from
the linux kernel tree for more details on the freeze behavior in
Linux guests.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QMPClient.pm