changed die to warn if syncoid fails to zfs destroy a sync snapshot - no good reason to stop a sync for that
This commit is contained in:
parent
e99306094b
commit
adb14d2343
2
syncoid
2
syncoid
|
@ -664,7 +664,7 @@ sub pruneoldsyncsnaps {
|
||||||
if ($debug) { print "DEBUG: pruning up to $maxsnapspercmd obsolete sync snapshots...\n"; }
|
if ($debug) { print "DEBUG: pruning up to $maxsnapspercmd obsolete sync snapshots...\n"; }
|
||||||
if ($debug) { print "DEBUG: $rhost $prunecmd\n"; }
|
if ($debug) { print "DEBUG: $rhost $prunecmd\n"; }
|
||||||
system("$rhost $prunecmd") == 0
|
system("$rhost $prunecmd") == 0
|
||||||
or die "CRITICAL ERROR: $rhost $prunecmd failed: $?";
|
or warn "WARNING: $rhost $prunecmd failed: $?";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue