diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 39fc348..b3f3e37 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -449,8 +449,12 @@ sub activate_storage { my @param = ('-o', 'name', '-H'); my $text = zfs_request($class, $scfg, undef, 'zpool_list', @param); - - if ($text !~ $scfg->{pool}) { + + # Note: $scfg->{pool} can include dataset / + my $pool = $scfg->{pool}; + $pool =~ s!/.*$!!; + + if ($text !~ $pool) { run_command("zpool import -d /dev/disk/by-id/ -a"); } return 1;