From 495c575021960fdd9516a7e23b923d78ea34b417 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 26 Jul 2018 07:35:04 +0200 Subject: [PATCH] Wait longer after chunkfs umount Or snapshot deletion might fail --- virt-backup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virt-backup b/virt-backup index d9d7e5c..ab2bd3f 100644 --- a/virt-backup +++ b/virt-backup @@ -634,8 +634,8 @@ sub run_cleanup{ ); rmdir $mp || die $!; } - # Just wait 2 seconds to be sure all fuse resources has been released - sleep(2); + # Just wait a few seconds to be sure all fuse resources has been released + sleep(10); # Now, standard filesystems foreach (@mounts){ my @info = split(/\s+/, $_); @@ -652,7 +652,7 @@ sub run_cleanup{ } if (open SNAPLIST, "<$backupdir.meta/snapshots"){ - sleep(1); + sleep(2); foreach (){ # Destroy snapshot listed here is they exists # and only if the end with _ and 10 digits