diff --git a/sanoid b/sanoid index aae3b5f..895ede3 100755 --- a/sanoid +++ b/sanoid @@ -887,7 +887,13 @@ sub getsnaps { open FH, "$zfs get -Hrpt snapshot creation ".join(" ",keys %$config)." |"; @rawsnaps = ; close FH; - + $exit_code = $? >> 8; + if ($exit_code != 0) { + print "INFO: zfs list shapshots with dataset names does not work.. retrying without dataset names (this will spin-up all disks)\n"; + open FH, "$zfs get -Hrpt snapshot creation |"; + @rawsnaps = ; + close FH; + } open FH, "> $cache.tmp" or die "Could not write to $cache.tmp!\n"; print FH @rawsnaps; close FH;