Wait longer after chunkfs umount

Or snapshot deletion might fail
tags/virt-backup-0.2.17-1
Daniel Berteaud 6 years ago
parent a2dce22966
commit 495c575021
  1. 6
      virt-backup

@ -634,8 +634,8 @@ sub run_cleanup{
); );
rmdir $mp || die $!; rmdir $mp || die $!;
} }
# Just wait 2 seconds to be sure all fuse resources has been released # Just wait a few seconds to be sure all fuse resources has been released
sleep(2); sleep(10);
# Now, standard filesystems # Now, standard filesystems
foreach (@mounts){ foreach (@mounts){
my @info = split(/\s+/, $_); my @info = split(/\s+/, $_);
@ -652,7 +652,7 @@ sub run_cleanup{
} }
if (open SNAPLIST, "<$backupdir.meta/snapshots"){ if (open SNAPLIST, "<$backupdir.meta/snapshots"){
sleep(1); sleep(2);
foreach (<SNAPLIST>){ foreach (<SNAPLIST>){
# Destroy snapshot listed here is they exists # Destroy snapshot listed here is they exists
# and only if the end with _ and 10 digits # and only if the end with _ and 10 digits

Loading…
Cancel
Save