We now perform a 'sync' after 'lxc-freeze' and before creating the snapshot, since we now mount snapshots with '-o noload' which skips the journal entirely. --- src/PVE/LXC.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index c01b401..c5a1409 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1719,20 +1719,19 @@ sub snapshot_create { my $conf = load_config($vmid); - my $cmd = "/usr/bin/lxc-freeze -n $vmid"; my $running = check_running($vmid); eval { if ($running) { - PVE::Tools::run_command($cmd); + PVE::Tools::run_command(['/usr/bin/lxc-freeze', '-n', $vmid]); + PVE::Tools::run_command(['/bin/sync']); }; my $storecfg = PVE::Storage::config(); my $rootinfo = parse_ct_mountpoint($conf->{rootfs}); my $volid = $rootinfo->{volume}; - $cmd = "/usr/bin/lxc-unfreeze -n $vmid"; if ($running) { - PVE::Tools::run_command($cmd); + PVE::Tools::run_command(['/usr/bin/lxc-unfreeze', '-n', $vmid]); }; PVE::Storage::volume_snapshot($storecfg, $volid, $snapname); -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel